
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.
27 lines
408 B
CMake
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
|
|
)
|