Andy Kaylor 39ce99589b
[CIR] Upstream cir-canonicalize pass (#131891)
This change introduces the cir-canonicalize pass. This is a simple
cir-to-cir transformation that eliminates empty scopes and redundant
branches. It will be expanded in future changes to simplify other
redundant instruction sequences.

MLIR verification and mlir-specific command-line option handling is also
introduced here.
2025-03-19 09:42:03 -07:00

27 lines
408 B
CMake

set(LLVM_LINK_COMPONENTS
Core
Support
)
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
add_clang_library(clangCIRFrontendAction
CIRGenAction.cpp
DEPENDS
MLIRCIROpsIncGen
MLIRCIROpInterfacesIncGen
MLIRBuiltinOpsIncGen
LINK_LIBS
clangAST
clangBasic
clangFrontend
clangCIR
clangCIRLoweringCommon
clangCIRLoweringDirectToLLVM
clangCodeGen
MLIRCIR
MLIRIR
)