blob: bf93280779bf8bef1e99be9871c82df55529c7ff [file] [log] [blame]
add_llvm_component_group(DirectX)
set(LLVM_TARGET_DEFINITIONS DirectX.td)
tablegen(LLVM DirectXGenSubtargetInfo.inc -gen-subtarget)
tablegen(LLVM DirectXGenInstrInfo.inc -gen-instr-info)
tablegen(LLVM DirectXGenRegisterInfo.inc -gen-register-info)
set(LLVM_TARGET_DEFINITIONS DXIL.td)
tablegen(LLVM DXILOperation.inc -gen-dxil-operation)
add_public_tablegen_target(DirectXCommonTableGen)
add_llvm_target(DirectXCodeGen
CBufferDataLayout.cpp
DirectXAsmPrinter.cpp
DirectXInstrInfo.cpp
DirectXRegisterInfo.cpp
DirectXSubtarget.cpp
DirectXTargetMachine.cpp
DXContainerGlobals.cpp
DXILMetadata.cpp
DXILOpBuilder.cpp
DXILOpLowering.cpp
DXILPrepare.cpp
DXILPrettyPrinter.cpp
DXILResource.cpp
DXILResourceAnalysis.cpp
DXILShaderFlags.cpp
DXILTranslateMetadata.cpp
LINK_COMPONENTS
Analysis
AsmPrinter
CodeGen
CodeGenTypes
Core
DXILBitWriter
DirectXDesc
DirectXInfo
DirectXPointerTypeAnalysis
FrontendHLSL
MC
SelectionDAG
Support
Target
TargetParser
TransformUtils
ADD_TO_COMPONENT
DirectX
)
add_subdirectory(MCTargetDesc)
add_subdirectory(TargetInfo)
add_subdirectory(DirectXIRPasses)
add_subdirectory(DXILWriter)