xref: /openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/CMakeLists.txt (revision d415bd752c734aee168c4ee86ff32e8cc249eb16)
1add_llvm_component_group(RISCV)
2
3set(LLVM_TARGET_DEFINITIONS RISCV.td)
4
5tablegen(LLVM RISCVGenAsmMatcher.inc -gen-asm-matcher)
6tablegen(LLVM RISCVGenAsmWriter.inc -gen-asm-writer)
7tablegen(LLVM RISCVGenCompressInstEmitter.inc -gen-compress-inst-emitter)
8tablegen(LLVM RISCVGenDAGISel.inc -gen-dag-isel)
9tablegen(LLVM RISCVGenDisassemblerTables.inc -gen-disassembler)
10tablegen(LLVM RISCVGenGlobalISel.inc -gen-global-isel)
11tablegen(LLVM RISCVGenInstrInfo.inc -gen-instr-info)
12tablegen(LLVM RISCVGenMCCodeEmitter.inc -gen-emitter)
13tablegen(LLVM RISCVGenMCPseudoLowering.inc -gen-pseudo-lowering)
14tablegen(LLVM RISCVGenRegisterBank.inc -gen-register-bank)
15tablegen(LLVM RISCVGenRegisterInfo.inc -gen-register-info)
16tablegen(LLVM RISCVGenSearchableTables.inc -gen-searchable-tables)
17tablegen(LLVM RISCVGenSubtargetInfo.inc -gen-subtarget)
18
19add_public_tablegen_target(RISCVCommonTableGen)
20
21add_llvm_target(RISCVCodeGen
22  RISCVAsmPrinter.cpp
23  RISCVCodeGenPrepare.cpp
24  RISCVMakeCompressible.cpp
25  RISCVExpandAtomicPseudoInsts.cpp
26  RISCVExpandPseudoInsts.cpp
27  RISCVFrameLowering.cpp
28  RISCVGatherScatterLowering.cpp
29  RISCVInsertVSETVLI.cpp
30  RISCVInstrInfo.cpp
31  RISCVISelDAGToDAG.cpp
32  RISCVISelLowering.cpp
33  RISCVMachineFunctionInfo.cpp
34  RISCVMacroFusion.cpp
35  RISCVMCInstLower.cpp
36  RISCVMergeBaseOffset.cpp
37  RISCVRedundantCopyElimination.cpp
38  RISCVRegisterInfo.cpp
39  RISCVSExtWRemoval.cpp
40  RISCVStripWSuffix.cpp
41  RISCVSubtarget.cpp
42  RISCVTargetMachine.cpp
43  RISCVTargetObjectFile.cpp
44  RISCVTargetTransformInfo.cpp
45  GISel/RISCVCallLowering.cpp
46  GISel/RISCVInstructionSelector.cpp
47  GISel/RISCVLegalizerInfo.cpp
48  GISel/RISCVRegisterBankInfo.cpp
49
50  LINK_COMPONENTS
51  Analysis
52  AsmPrinter
53  Core
54  IPO
55  CodeGen
56  MC
57  RISCVDesc
58  RISCVInfo
59  SelectionDAG
60  Support
61  Target
62  TargetParser
63  TransformUtils
64  GlobalISel
65
66  ADD_TO_COMPONENT
67  RISCV
68  )
69
70add_subdirectory(AsmParser)
71add_subdirectory(Disassembler)
72add_subdirectory(MCTargetDesc)
73add_subdirectory(MCA)
74add_subdirectory(TargetInfo)
75