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-05-14 01:27:19 +08:00
|
|
|
SideEffectInterfaces.cpp
|
2020-04-22 23:16:34 +08:00
|
|
|
ViewLikeInterface.cpp
|
2020-03-11 03:20:24 +08:00
|
|
|
)
|
|
|
|
|
2020-05-14 02:46:06 +08:00
|
|
|
function(add_mlir_interface_library name)
|
|
|
|
add_mlir_library(MLIR${name}
|
|
|
|
${name}.cpp
|
2020-05-05 03:41:43 +08:00
|
|
|
|
2020-05-14 02:46:06 +08:00
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Interfaces
|
2020-03-11 03:20:24 +08:00
|
|
|
|
2020-05-14 02:46:06 +08:00
|
|
|
DEPENDS
|
|
|
|
MLIR${name}IncGen
|
2020-03-12 07:14:54 +08:00
|
|
|
|
2020-05-14 02:46:06 +08:00
|
|
|
LINK_LIBS PUBLIC
|
|
|
|
MLIRIR
|
|
|
|
)
|
|
|
|
endfunction(add_mlir_interface_library)
|
2020-04-17 03:27:16 +08:00
|
|
|
|
2020-05-05 03:41:43 +08:00
|
|
|
|
2020-05-14 02:46:06 +08:00
|
|
|
add_mlir_interface_library(CallInterfaces)
|
|
|
|
add_mlir_interface_library(ControlFlowInterfaces)
|
|
|
|
add_mlir_interface_library(DerivedAttributeOpInterface)
|
|
|
|
add_mlir_interface_library(InferTypeOpInterface)
|
|
|
|
add_mlir_interface_library(LoopLikeInterface)
|
|
|
|
add_mlir_interface_library(SideEffectInterfaces)
|
|
|
|
add_mlir_interface_library(ViewLikeInterface)
|
2020-03-11 03:25:08 +08:00
|
|
|
|