This removes a restriction wrt. scf.for loops during One-Shot Bufferization. Such IR was previously rejected. It is still rejected by default because the bufferized IR could be slow. But such IR can now be bufferized with `allow-return-allocs`. Differential Revision: https://reviews.llvm.org/D121529
37 lines
683 B
CMake
37 lines
683 B
CMake
add_mlir_dialect_library(MLIRSCFTransforms
|
|
BufferizableOpInterfaceImpl.cpp
|
|
Bufferize.cpp
|
|
ForToWhile.cpp
|
|
LoopCanonicalization.cpp
|
|
LoopPipelining.cpp
|
|
LoopRangeFolding.cpp
|
|
LoopSpecialization.cpp
|
|
ParallelLoopCollapsing.cpp
|
|
ParallelLoopFusion.cpp
|
|
ParallelLoopTiling.cpp
|
|
StructuralTypeConversions.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SCF
|
|
|
|
DEPENDS
|
|
MLIRSCFPassIncGen
|
|
|
|
LINK_LIBS PUBLIC
|
|
MLIRAffine
|
|
MLIRAffineAnalysis
|
|
MLIRArithmetic
|
|
MLIRBufferization
|
|
MLIRBufferizationTransforms
|
|
MLIRDialectUtils
|
|
MLIRIR
|
|
MLIRMemRef
|
|
MLIRPass
|
|
MLIRSCF
|
|
MLIRSCFUtils
|
|
MLIRSupport
|
|
MLIRTensor
|
|
MLIRTransforms
|
|
MLIRTransformUtils
|
|
)
|