1set(LLVM_OPTIONAL_SOURCES
2  CallInterfaces.cpp
3  ControlFlowInterfaces.cpp
4  CopyOpInterface.cpp
5  DerivedAttributeOpInterface.cpp
6  InferTypeOpInterface.cpp
7  LoopLikeInterface.cpp
8  SideEffectInterfaces.cpp
9  VectorInterfaces.cpp
10  ViewLikeInterface.cpp
11  )
12
13function(add_mlir_interface_library name)
14  add_mlir_library(MLIR${name}
15    ${name}.cpp
16
17    ADDITIONAL_HEADER_DIRS
18    ${MLIR_MAIN_INCLUDE_DIR}/mlir/Interfaces
19
20    DEPENDS
21    MLIR${name}IncGen
22
23    LINK_LIBS PUBLIC
24    MLIRIR
25    )
26endfunction(add_mlir_interface_library)
27
28
29add_mlir_interface_library(CallInterfaces)
30add_mlir_interface_library(ControlFlowInterfaces)
31add_mlir_interface_library(CopyOpInterface)
32add_mlir_interface_library(DerivedAttributeOpInterface)
33add_mlir_interface_library(InferTypeOpInterface)
34add_mlir_interface_library(LoopLikeInterface)
35add_mlir_interface_library(SideEffectInterfaces)
36add_mlir_interface_library(VectorInterfaces)
37add_mlir_interface_library(ViewLikeInterface)
38
39