2020-03-11 03:20:24 +08:00
|
|
|
set(LLVM_OPTIONAL_SOURCES
|
|
|
|
CallInterfaces.cpp
|
|
|
|
ControlFlowInterfaces.cpp
|
2020-03-12 07:14:54 +08:00
|
|
|
DerivedAttributeOpInterface.cpp
|
2020-03-11 03:20:24 +08:00
|
|
|
InferTypeOpInterface.cpp
|
2020-03-15 04:36:42 +08:00
|
|
|
LoopLikeInterface.cpp
|
2020-03-11 03:25:08 +08:00
|
|
|
SideEffects.cpp
|
2020-03-11 03:20:24 +08:00
|
|
|
)
|
|
|
|
|
2020-03-20 07:42:05 +08:00
|
|
|
add_mlir_library(MLIRCallInterfaces
|
2020-03-11 03:20:24 +08:00
|
|
|
CallInterfaces.cpp
|
|
|
|
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Interfaces
|
|
|
|
)
|
|
|
|
add_dependencies(MLIRCallInterfaces
|
|
|
|
MLIRCallInterfacesIncGen
|
|
|
|
)
|
|
|
|
target_link_libraries(MLIRCallInterfaces
|
|
|
|
PUBLIC
|
|
|
|
MLIRIR
|
|
|
|
)
|
|
|
|
|
2020-03-20 07:42:05 +08:00
|
|
|
add_mlir_library(MLIRControlFlowInterfaces
|
2020-03-11 03:20:24 +08:00
|
|
|
ControlFlowInterfaces.cpp
|
|
|
|
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Interfaces
|
|
|
|
)
|
|
|
|
add_dependencies(MLIRControlFlowInterfaces
|
|
|
|
MLIRControlFlowInterfacesIncGen
|
|
|
|
)
|
|
|
|
target_link_libraries(MLIRControlFlowInterfaces
|
|
|
|
PUBLIC
|
|
|
|
MLIRIR
|
|
|
|
)
|
|
|
|
|
2020-03-20 07:42:05 +08:00
|
|
|
add_mlir_library(MLIRDerivedAttributeOpInterface
|
2020-03-12 07:14:54 +08:00
|
|
|
DerivedAttributeOpInterface.cpp
|
|
|
|
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Interfaces
|
|
|
|
)
|
|
|
|
add_dependencies(MLIRDerivedAttributeOpInterface
|
|
|
|
MLIRDerivedAttributeOpInterfaceIncGen
|
|
|
|
)
|
|
|
|
target_link_libraries(MLIRDerivedAttributeOpInterface
|
|
|
|
PUBLIC
|
|
|
|
MLIRIR
|
|
|
|
)
|
|
|
|
|
2020-03-20 07:42:05 +08:00
|
|
|
add_mlir_library(MLIRInferTypeOpInterface
|
2020-03-11 03:20:24 +08:00
|
|
|
InferTypeOpInterface.cpp
|
|
|
|
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Interfaces
|
|
|
|
)
|
|
|
|
add_dependencies(MLIRInferTypeOpInterface
|
|
|
|
MLIRInferTypeOpInterfaceIncGen
|
|
|
|
)
|
|
|
|
target_link_libraries(MLIRInferTypeOpInterface
|
|
|
|
PUBLIC
|
|
|
|
MLIRIR
|
|
|
|
)
|
2020-03-11 03:25:08 +08:00
|
|
|
|
2020-03-20 07:42:05 +08:00
|
|
|
add_mlir_library(MLIRLoopLikeInterface
|
2020-03-15 04:36:42 +08:00
|
|
|
LoopLikeInterface.cpp
|
|
|
|
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Interfaces
|
|
|
|
)
|
|
|
|
add_dependencies(MLIRLoopLikeInterface
|
|
|
|
MLIRLoopLikeInterfaceIncGen
|
|
|
|
)
|
|
|
|
target_link_libraries(MLIRLoopLikeInterface
|
|
|
|
PUBLIC
|
|
|
|
MLIRIR
|
|
|
|
)
|
|
|
|
|
2020-03-20 07:42:05 +08:00
|
|
|
add_mlir_library(MLIRSideEffects
|
2020-03-11 03:25:08 +08:00
|
|
|
SideEffects.cpp
|
|
|
|
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Interfaces
|
|
|
|
)
|
|
|
|
add_dependencies(MLIRSideEffects
|
|
|
|
MLIRSideEffectOpInterfacesIncGen
|
|
|
|
)
|
|
|
|
target_link_libraries(MLIRSideEffects
|
|
|
|
PUBLIC
|
|
|
|
MLIRIR
|
|
|
|
)
|