| 1 |
set(SRC_LIST |
| 2 |
LLVMSPIRVOpts.cpp |
| 3 |
LLVMToSPIRVDbgTran.cpp |
| 4 |
Mangler/FunctionDescriptor.cpp |
| 5 |
Mangler/Mangler.cpp |
| 6 |
Mangler/ManglingUtils.cpp |
| 7 |
Mangler/ParameterType.cpp |
| 8 |
OCLToSPIRV.cpp |
| 9 |
OCLTypeToSPIRV.cpp |
| 10 |
OCLUtil.cpp |
| 11 |
VectorComputeUtil.cpp |
| 12 |
SPIRVBuiltinHelper.cpp |
| 13 |
SPIRVLowerBitCastToNonStandardType.cpp |
| 14 |
SPIRVLowerBool.cpp |
| 15 |
SPIRVLowerConstExpr.cpp |
| 16 |
SPIRVLowerMemmove.cpp |
| 17 |
SPIRVLowerOCLBlocks.cpp |
| 18 |
SPIRVLowerSaddWithOverflow.cpp |
| 19 |
SPIRVReader.cpp |
| 20 |
SPIRVRegularizeLLVM.cpp |
| 21 |
SPIRVToLLVMDbgTran.cpp |
| 22 |
SPIRVToOCL.cpp |
| 23 |
SPIRVToOCL12.cpp |
| 24 |
SPIRVToOCL20.cpp |
| 25 |
SPIRVTypeScavenger.cpp |
| 26 |
SPIRVUtil.cpp |
| 27 |
SPIRVWriter.cpp |
| 28 |
SPIRVWriterPass.cpp |
| 29 |
PreprocessMetadata.cpp |
| 30 |
libSPIRV/SPIRVBasicBlock.cpp |
| 31 |
libSPIRV/SPIRVDebug.cpp |
| 32 |
libSPIRV/SPIRVDecorate.cpp |
| 33 |
libSPIRV/SPIRVEntry.cpp |
| 34 |
libSPIRV/SPIRVFunction.cpp |
| 35 |
libSPIRV/SPIRVInstruction.cpp |
| 36 |
libSPIRV/SPIRVModule.cpp |
| 37 |
libSPIRV/SPIRVStream.cpp |
| 38 |
libSPIRV/SPIRVType.cpp |
| 39 |
libSPIRV/SPIRVValue.cpp |
| 40 |
libSPIRV/SPIRVFnVar.cpp |
| 41 |
) |
| 42 |
add_llvm_library(LLVMSPIRVLib |
| 43 |
${SRC_LIST} |
| 44 |
LINK_COMPONENTS |
| 45 |
Analysis |
| 46 |
BitWriter |
| 47 |
CodeGen |
| 48 |
Core |
| 49 |
Demangle |
| 50 |
IRReader |
| 51 |
Linker |
| 52 |
Passes |
| 53 |
Support |
| 54 |
TargetParser |
| 55 |
TransformUtils |
| 56 |
DEPENDS |
| 57 |
intrinsics_gen |
| 58 |
) |
| 59 |
|
| 60 |
target_include_directories(LLVMSPIRVLib |
| 61 |
PRIVATE |
| 62 |
${LLVM_INCLUDE_DIRS} |
| 63 |
${LLVM_SPIRV_INCLUDE_DIRS} |
| 64 |
# TODO: Consider using SPIRV-Headers' as a header-only INTERFACE |
| 65 |
# instead. Right now this runs into exporting issues with |
| 66 |
# the LLVM in-tree builds. |
| 67 |
${LLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR}/include |
| 68 |
${CMAKE_CURRENT_SOURCE_DIR} |
| 69 |
${CMAKE_CURRENT_SOURCE_DIR}/libSPIRV |
| 70 |
${CMAKE_CURRENT_SOURCE_DIR}/Mangler |
| 71 |
) |