xref: /llvm-project/llvm/lib/Target/BPF/CMakeLists.txt (revision 635ea257eca7c8e95c6ea30ca3816a0b5584ab37)
1add_llvm_component_group(BPF)
2
3set(LLVM_TARGET_DEFINITIONS BPF.td)
4
5tablegen(LLVM BPFGenAsmMatcher.inc -gen-asm-matcher)
6tablegen(LLVM BPFGenAsmWriter.inc -gen-asm-writer)
7tablegen(LLVM BPFGenCallingConv.inc -gen-callingconv)
8tablegen(LLVM BPFGenDAGISel.inc -gen-dag-isel)
9tablegen(LLVM BPFGenDisassemblerTables.inc -gen-disassembler)
10tablegen(LLVM BPFGenInstrInfo.inc -gen-instr-info)
11tablegen(LLVM BPFGenMCCodeEmitter.inc -gen-emitter)
12tablegen(LLVM BPFGenRegisterInfo.inc -gen-register-info)
13tablegen(LLVM BPFGenSubtargetInfo.inc -gen-subtarget)
14tablegen(LLVM BPFGenGlobalISel.inc -gen-global-isel)
15tablegen(LLVM BPFGenRegisterBank.inc -gen-register-bank)
16
17add_public_tablegen_target(BPFCommonTableGen)
18
19add_llvm_target(BPFCodeGen
20  GISel/BPFCallLowering.cpp
21  GISel/BPFInstructionSelector.cpp
22  GISel/BPFRegisterBankInfo.cpp
23  GISel/BPFLegalizerInfo.cpp
24  BPFAbstractMemberAccess.cpp
25  BPFAdjustOpt.cpp
26  BPFAsmPrinter.cpp
27  BPFASpaceCastSimplifyPass.cpp
28  BPFCheckAndAdjustIR.cpp
29  BPFFrameLowering.cpp
30  BPFInstrInfo.cpp
31  BPFIRPeephole.cpp
32  BPFISelDAGToDAG.cpp
33  BPFISelLowering.cpp
34  BPFMCInstLower.cpp
35  BPFPreserveDIType.cpp
36  BPFPreserveStaticOffset.cpp
37  BPFRegisterInfo.cpp
38  BPFSelectionDAGInfo.cpp
39  BPFSubtarget.cpp
40  BPFTargetMachine.cpp
41  BPFMIPeephole.cpp
42  BPFMIChecking.cpp
43  BPFMISimplifyPatchable.cpp
44  BTFDebug.cpp
45
46  LINK_COMPONENTS
47  Analysis
48  AsmPrinter
49  BPFDesc
50  BPFInfo
51  CodeGen
52  CodeGenTypes
53  Core
54  GlobalISel
55  IPO
56  MC
57  Passes
58  Scalar
59  SelectionDAG
60  Support
61  Target
62  TargetParser
63  TransformUtils
64
65  ADD_TO_COMPONENT
66  BPF
67  )
68
69add_subdirectory(AsmParser)
70add_subdirectory(Disassembler)
71add_subdirectory(MCTargetDesc)
72add_subdirectory(TargetInfo)
73