[SampleProfileLoader] Fix integer overflow in generateMDProfMetadata (#90217)
[llvm-project.git] / llvm / lib / Target / RISCV / CMakeLists.txt
blob8715403f3839a6423564b191b0634ce3fe51d841
1 add_llvm_component_group(RISCV)
3 set(LLVM_TARGET_DEFINITIONS RISCV.td)
5 tablegen(LLVM RISCVGenAsmMatcher.inc -gen-asm-matcher)
6 tablegen(LLVM RISCVGenAsmWriter.inc -gen-asm-writer)
7 tablegen(LLVM RISCVGenCompressInstEmitter.inc -gen-compress-inst-emitter)
8 tablegen(LLVM RISCVGenMacroFusion.inc -gen-macro-fusion-pred)
9 tablegen(LLVM RISCVGenDAGISel.inc -gen-dag-isel)
10 tablegen(LLVM RISCVGenDisassemblerTables.inc -gen-disassembler)
11 tablegen(LLVM RISCVGenInstrInfo.inc -gen-instr-info)
12 tablegen(LLVM RISCVGenMCCodeEmitter.inc -gen-emitter)
13 tablegen(LLVM RISCVGenMCPseudoLowering.inc -gen-pseudo-lowering)
14 tablegen(LLVM RISCVGenRegisterBank.inc -gen-register-bank)
15 tablegen(LLVM RISCVGenRegisterInfo.inc -gen-register-info)
16 tablegen(LLVM RISCVGenSearchableTables.inc -gen-searchable-tables)
17 tablegen(LLVM RISCVGenSubtargetInfo.inc -gen-subtarget)
19 set(LLVM_TARGET_DEFINITIONS RISCVGISel.td)
20 tablegen(LLVM RISCVGenGlobalISel.inc -gen-global-isel)
21 tablegen(LLVM RISCVGenO0PreLegalizeGICombiner.inc -gen-global-isel-combiner
22               -combiners="RISCVO0PreLegalizerCombiner")
23 tablegen(LLVM RISCVGenPreLegalizeGICombiner.inc -gen-global-isel-combiner
24               -combiners="RISCVPreLegalizerCombiner")
25 tablegen(LLVM RISCVGenPostLegalizeGICombiner.inc -gen-global-isel-combiner
26               -combiners="RISCVPostLegalizerCombiner")
28 add_public_tablegen_target(RISCVCommonTableGen)
30 add_llvm_target(RISCVCodeGen
31   RISCVAsmPrinter.cpp
32   RISCVCodeGenPrepare.cpp
33   RISCVDeadRegisterDefinitions.cpp
34   RISCVMakeCompressible.cpp
35   RISCVExpandAtomicPseudoInsts.cpp
36   RISCVExpandPseudoInsts.cpp
37   RISCVFoldMasks.cpp
38   RISCVFrameLowering.cpp
39   RISCVGatherScatterLowering.cpp
40   RISCVInsertVSETVLI.cpp
41   RISCVInsertReadWriteCSR.cpp
42   RISCVInsertWriteVXRM.cpp
43   RISCVInstrInfo.cpp
44   RISCVISelDAGToDAG.cpp
45   RISCVISelLowering.cpp
46   RISCVMachineFunctionInfo.cpp
47   RISCVMergeBaseOffset.cpp
48   RISCVOptWInstrs.cpp
49   RISCVPostRAExpandPseudoInsts.cpp
50   RISCVRedundantCopyElimination.cpp
51   RISCVMoveMerger.cpp
52   RISCVPushPopOptimizer.cpp
53   RISCVRegisterInfo.cpp
54   RISCVSubtarget.cpp
55   RISCVTargetMachine.cpp
56   RISCVTargetObjectFile.cpp
57   RISCVTargetTransformInfo.cpp
58   GISel/RISCVCallLowering.cpp
59   GISel/RISCVInstructionSelector.cpp
60   GISel/RISCVLegalizerInfo.cpp
61   GISel/RISCVPostLegalizerCombiner.cpp
62   GISel/RISCVO0PreLegalizerCombiner.cpp
63   GISel/RISCVPreLegalizerCombiner.cpp
64   GISel/RISCVRegisterBankInfo.cpp
66   LINK_COMPONENTS
67   Analysis
68   AsmPrinter
69   CodeGen
70   CodeGenTypes
71   Core
72   GlobalISel
73   IPO
74   MC
75   RISCVDesc
76   RISCVInfo
77   Scalar
78   SelectionDAG
79   Support
80   Target
81   TargetParser
82   TransformUtils
84   ADD_TO_COMPONENT
85   RISCV
86   )
88 add_subdirectory(AsmParser)
89 add_subdirectory(Disassembler)
90 add_subdirectory(MCTargetDesc)
91 add_subdirectory(MCA)
92 add_subdirectory(TargetInfo)