xref: /llvm-project/llvm/lib/Target/DirectX/CMakeLists.txt (revision 0fca76d576da6b26379b9754178263685b077610)
1add_llvm_component_group(DirectX)
2
3set(LLVM_TARGET_DEFINITIONS DirectX.td)
4
5tablegen(LLVM DirectXGenSubtargetInfo.inc -gen-subtarget)
6tablegen(LLVM DirectXGenInstrInfo.inc -gen-instr-info)
7tablegen(LLVM DirectXGenRegisterInfo.inc -gen-register-info)
8
9set(LLVM_TARGET_DEFINITIONS DXIL.td)
10tablegen(LLVM DXILOperation.inc -gen-dxil-operation)
11
12add_public_tablegen_target(DirectXCommonTableGen)
13
14add_llvm_target(DirectXCodeGen
15  CBufferDataLayout.cpp
16  DirectXAsmPrinter.cpp
17  DirectXInstrInfo.cpp
18  DirectXRegisterInfo.cpp
19  DirectXSubtarget.cpp
20  DirectXTargetMachine.cpp
21  DirectXTargetTransformInfo.cpp
22  DXContainerGlobals.cpp
23  DXILDataScalarization.cpp
24  DXILFinalizeLinkage.cpp
25  DXILFlattenArrays.cpp
26  DXILIntrinsicExpansion.cpp
27  DXILOpBuilder.cpp
28  DXILOpLowering.cpp
29  DXILPrepare.cpp
30  DXILPrettyPrinter.cpp
31  DXILResource.cpp
32  DXILResourceAnalysis.cpp
33  DXILResourceAccess.cpp
34  DXILShaderFlags.cpp
35  DXILTranslateMetadata.cpp
36
37  LINK_COMPONENTS
38  Analysis
39  AsmPrinter
40  CodeGen
41  CodeGenTypes
42  Core
43  DXILBitWriter
44  DirectXDesc
45  DirectXInfo
46  DirectXPointerTypeAnalysis
47  FrontendHLSL
48  MC
49  ScalarOpts
50  SelectionDAG
51  Support
52  Target
53  TargetParser
54  TransformUtils
55
56  ADD_TO_COMPONENT
57  DirectX
58  )
59
60add_subdirectory(MCTargetDesc)
61add_subdirectory(TargetInfo)
62add_subdirectory(DirectXIRPasses)
63add_subdirectory(DXILWriter)
64