There are several pieces of pattern rewriting infra in IR/ that really shouldn't be there. This revision moves those pieces to a better location such that they are easier to evolve in the future(e.g. with PDL). More concretely this revision does the following: * Create a Transforms/GreedyPatternRewriteDriver.h and move the apply*andFold methods there. The definitions for these methods are already in Transforms/ so it doesn't make sense for the declarations to be in IR. * Create a new lib/Rewrite library and move PatternApplicator there. This new library will be focused on applying rewrites, and will also include compiling rewrites with PDL. Differential Revision: https://reviews.llvm.org/D89103
26 lines
422 B
CMake
26 lines
422 B
CMake
add_mlir_library(MLIRTransformUtils
|
|
DialectConversion.cpp
|
|
FoldUtils.cpp
|
|
GreedyPatternRewriteDriver.cpp
|
|
InliningUtils.cpp
|
|
LoopFusionUtils.cpp
|
|
LoopUtils.cpp
|
|
RegionUtils.cpp
|
|
Utils.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Transforms
|
|
|
|
DEPENDS
|
|
MLIRStandardOpsIncGen
|
|
|
|
LINK_LIBS PUBLIC
|
|
MLIRAffine
|
|
MLIRAnalysis
|
|
MLIRLoopAnalysis
|
|
MLIRSCF
|
|
MLIRPass
|
|
MLIRRewrite
|
|
MLIRStandard
|
|
)
|