llvm/mlir/examples/Linalg/Linalg3/CMakeLists.txt
Nicolas Vasilache 56c7a957bf Parsing support for Range, View and Slice operations
This CL implements the previously unsupported parsing for Range, View and Slice operations.
    A pass is introduced to lower to the LLVM.
    Tests are moved out of C++ land and into mlir/test/Examples.
    This allows better fitting within standard developer workflows.

--

PiperOrigin-RevId: 245796600
2019-05-06 08:20:55 -07:00

61 lines
893 B
CMake

add_definitions(-DLINALG_STEP=3)
add_subdirectory(lib)
set(LLVM_LINK_COMPONENTS
Core
OrcJIT
Support
native
)
set(LLVM_OPTIONAL_SOURCES
Conversion.cpp
Example.cpp
Execution.cpp
)
add_llvm_example(linalg-conversion-3
Conversion.cpp
)
add_llvm_example(linalg-example-3
Example.cpp
)
add_llvm_example(linalg-execution-3
Execution.cpp
)
target_link_libraries(linalg-example-3
PRIVATE
Linalg3
Linalg3DialectConstruction
)
whole_archive_link(linalg-example-3
MLIRAffineOps
MLIRStandardOps
)
target_link_libraries(linalg-conversion-3
PRIVATE
Linalg3
Linalg3DialectConstruction
)
whole_archive_link(linalg-conversion-3
MLIRStandardOps
)
target_link_libraries(linalg-execution-3
PRIVATE
MLIRExecutionEngine
Linalg3
Linalg3DialectConstruction
)
whole_archive_link(linalg-execution-3
MLIRStandardOps
)