This reverts commit4e5ce2056e. This relands commit1350c9887d. Reinstates the range analysis with the build issue fixed. Differential Revision: https://reviews.llvm.org/D126926
25 lines
513 B
CMake
25 lines
513 B
CMake
# Exclude tests from libMLIR.so
|
|
add_mlir_library(MLIRTestTransforms
|
|
TestConstantFold.cpp
|
|
TestControlFlowSink.cpp
|
|
TestInlining.cpp
|
|
TestIntRangeInference.cpp
|
|
|
|
EXCLUDE_FROM_LIBMLIR
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Transforms
|
|
|
|
LINK_LIBS PUBLIC
|
|
MLIRAnalysis
|
|
MLIRInferIntRangeInterface
|
|
MLIRTestDialect
|
|
MLIRTransforms
|
|
)
|
|
|
|
target_include_directories(MLIRTestTransforms
|
|
PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../Dialect/Test
|
|
${CMAKE_CURRENT_BINARY_DIR}/../Dialect/Test
|
|
)
|