[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / mlir / lib / Dialect / LLVMIR / CMakeLists.txt
blobfce24b556036f300c9a4d33b382a66925b0d7518
1 add_subdirectory(Transforms)
3 add_mlir_dialect_library(MLIRLLVMDialect
4   IR/FunctionCallUtils.cpp
5   IR/LLVMAttrs.cpp
6   IR/LLVMDialect.cpp
7   IR/LLVMInterfaces.cpp
8   IR/LLVMMemorySlot.cpp
9   IR/LLVMTypes.cpp
10   IR/LLVMTypeSyntax.cpp
12   ADDITIONAL_HEADER_DIRS
13   ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR
15   DEPENDS
16   MLIRLLVMOpsIncGen
17   MLIRLLVMTypesIncGen
18   MLIRLLVMIntrinsicOpsIncGen
19   MLIRLLVMInterfacesIncGen
20   MLIROpenMPOpsIncGen
21   intrinsics_gen
23   LINK_COMPONENTS
24   AsmParser
25   BinaryFormat
26   BitReader
27   BitWriter
28   Core
30   LINK_LIBS PUBLIC
31   MLIRCallInterfaces
32   MLIRControlFlowInterfaces
33   MLIRDataLayoutInterfaces
34   MLIRFunctionInterfaces
35   MLIRInferTypeOpInterface
36   MLIRIR
37   MLIRMemorySlotInterfaces
38   MLIRSideEffectInterfaces
39   MLIRSupport
40   )
42 add_mlir_dialect_library(MLIRNVVMDialect
43   IR/NVVMDialect.cpp
44   IR/BasicPtxBuilderInterface.cpp
46   ADDITIONAL_HEADER_DIRS
47   ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR
49   DEPENDS
50   MLIRGPUCompilationAttrInterfacesIncGen
51   MLIRNVVMOpsIncGen
52   MLIRNVVMConversionsIncGen
53   MLIRBasicPtxBuilderInterfaceIncGen
54   intrinsics_gen
56   LINK_COMPONENTS
57   AsmParser
58   Core
60   LINK_LIBS PUBLIC
61   MLIRIR
62   MLIRLLVMDialect
63   MLIRSideEffectInterfaces
64   )
66 add_mlir_dialect_library(MLIRROCDLDialect
67   IR/ROCDLDialect.cpp
69   ADDITIONAL_HEADER_DIRS
70   ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR
72   DEPENDS
73   MLIRGPUCompilationAttrInterfacesIncGen
74   MLIRROCDLOpsIncGen
75   MLIRROCDLConversionsIncGen
76   intrinsics_gen
78   LINK_COMPONENTS
79   AsmParser
80   Core
82   LINK_LIBS PUBLIC
83   MLIRIR
84   MLIRLLVMDialect
85   MLIRSideEffectInterfaces
86   )
88 add_mlir_dialect_library(MLIRVCIXDialect
89   IR/VCIXDialect.cpp
91   ADDITIONAL_HEADER_DIRS
92   ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR
94   DEPENDS
95   MLIRGPUCompilationAttrInterfacesIncGen
96   MLIRVCIXOpsIncGen
97   MLIRVCIXConversionsIncGen
98   intrinsics_gen
100   LINK_COMPONENTS
101   AsmParser
102   Core
104   LINK_LIBS PUBLIC
105   MLIRIR
106   MLIRLLVMDialect
107   MLIRSideEffectInterfaces
108   )