Make it so that PDL in pattern rewrites can be optionally disabled. PDL is still enabled by default and not optional bazel. So this should be a NOP for most folks, while enabling other to disable. This only works with tests disabled. With tests enabled this still compiles but tests fail as there is no lit config to disable tests that depend on PDL rewrites yet.
23 lines
372 B
CMake
23 lines
372 B
CMake
add_mlir_conversion_library(MLIRMathToLibm
|
|
MathToLibm.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/MathToLibm
|
|
|
|
DEPENDS
|
|
MLIRConversionPassIncGen
|
|
|
|
LINK_COMPONENTS
|
|
Core
|
|
|
|
LINK_LIBS PUBLIC
|
|
MLIRArithDialect
|
|
MLIRDialectUtils
|
|
MLIRFuncDialect
|
|
MLIRMathDialect
|
|
MLIRPass
|
|
MLIRTransformUtils
|
|
MLIRVectorDialect
|
|
MLIRVectorUtils
|
|
)
|