This is just code refactoring done as a preparation for adding MLIR inliner cost model hook(s). Related discussion: https://discourse.llvm.org/t/inliner-cost-model/2992 The logic of SCC-based MLIR inliner is separated into the Inliner implementation. The MLIR inliner pass becomes, well, just a pass that invokes the SCC-based MLIR inliner.
27 lines
567 B
CMake
27 lines
567 B
CMake
add_mlir_library(MLIRTransformUtils
|
|
CFGToSCF.cpp
|
|
CommutativityUtils.cpp
|
|
ControlFlowSinkUtils.cpp
|
|
DialectConversion.cpp
|
|
FoldUtils.cpp
|
|
GreedyPatternRewriteDriver.cpp
|
|
Inliner.cpp
|
|
InliningUtils.cpp
|
|
LoopInvariantCodeMotionUtils.cpp
|
|
OneToNTypeConversion.cpp
|
|
RegionUtils.cpp
|
|
TopologicalSortUtils.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Transforms
|
|
|
|
LINK_LIBS PUBLIC
|
|
MLIRAnalysis
|
|
MLIRControlFlowInterfaces
|
|
MLIRFunctionInterfaces
|
|
MLIRLoopLikeInterface
|
|
MLIRSideEffectInterfaces
|
|
MLIRSubsetOpInterface
|
|
MLIRRewrite
|
|
)
|