[SampleProfileLoader] Fix integer overflow in generateMDProfMetadata (#90217)
[llvm-project.git] / mlir / lib / Target / LLVMIR / CMakeLists.txt
blob93032c3ce103875a6847985370630e1eb606f9c3
1 add_subdirectory(Dialect)
3 set(LLVM_OPTIONAL_SOURCES
4   ConvertFromLLVMIR.cpp
5   ConvertToLLVMIR.cpp
6   DataLayoutImporter.cpp
7   DebugTranslation.cpp
8   DebugImporter.cpp
9   LoopAnnotationImporter.cpp
10   LoopAnnotationTranslation.cpp
11   ModuleTranslation.cpp
12   ModuleImport.cpp
13   TypeToLLVM.cpp
14   TypeFromLLVM.cpp
15   )
18 add_mlir_translation_library(MLIRTargetLLVMIRExport
19   DebugTranslation.cpp
20   LoopAnnotationTranslation.cpp
21   ModuleTranslation.cpp
22   TypeToLLVM.cpp
23   Dialect/OpenMPCommon.cpp
25   ADDITIONAL_HEADER_DIRS
26   ${MLIR_MAIN_INCLUDE_DIR}/mlir/Target/LLVMIR
28   DEPENDS
29   intrinsics_gen
31   LINK_COMPONENTS
32   Core
33   FrontendOpenMP
34   TransformUtils
35   TargetParser
37   LINK_LIBS PUBLIC
38   MLIRDLTIDialect
39   MLIRLLVMDialect
40   MLIRLLVMIRTransforms
41   MLIRTranslateLib
42   MLIRTransformUtils
43   )
45 add_mlir_translation_library(MLIRToLLVMIRTranslationRegistration
46   ConvertToLLVMIR.cpp
48   LINK_LIBS PUBLIC
49   MLIRArmNeonToLLVMIRTranslation
50   MLIRArmSMEToLLVMIRTranslation
51   MLIRArmSVEToLLVMIRTranslation
52   MLIRAMXToLLVMIRTranslation
53   MLIRBuiltinToLLVMIRTranslation
54   MLIRGPUToLLVMIRTranslation
55   MLIRX86VectorToLLVMIRTranslation
56   MLIRLLVMToLLVMIRTranslation
57   MLIRNVVMToLLVMIRTranslation
58   MLIROpenACCToLLVMIRTranslation
59   MLIROpenMPToLLVMIRTranslation
60   MLIRROCDLToLLVMIRTranslation
61   MLIRSPIRVToLLVMIRTranslation
62   MLIRVCIXToLLVMIRTranslation
63   )
65 add_mlir_translation_library(MLIRTargetLLVMIRImport
66   DataLayoutImporter.cpp
67   DebugImporter.cpp
68   LoopAnnotationImporter.cpp
69   ModuleImport.cpp
70   TypeFromLLVM.cpp
72   ADDITIONAL_HEADER_DIRS
73   ${MLIR_MAIN_INCLUDE_DIR}/mlir/Target/LLVMIR
75   LINK_COMPONENTS
76   Core
77   IRReader
79   LINK_LIBS PUBLIC
80   MLIRDLTIDialect
81   MLIRLLVMDialect
82   MLIRTranslateLib
83   )
85 add_mlir_translation_library(MLIRFromLLVMIRTranslationRegistration
86   ConvertFromLLVMIR.cpp
88   LINK_LIBS PUBLIC
89   MLIRLLVMIRToLLVMTranslation
90   MLIRLLVMIRToNVVMTranslation
91   )