%general-entities; ]> SPIRV-LLVM-Translator-&spirv-llvm-translator-version; SPIRV-LLVM-Translator Introduction to SPIRV-LLVM-Translator The SPIRV-LLVM-Translator package contains a library and utility for converting between LLVM IR and SPIR-V code. This package currently only supports the OpenCL/Compute version of SPIR-V. &lfs121_checked; Package Information Download (HTTP): Download MD5 sum: &spirv-llvm-translator-md5sum; Download size: &spirv-llvm-translator-size; Estimated disk space required: &spirv-llvm-translator-buildsize; Estimated build time: &spirv-llvm-translator-time; SPIRV-LLVM-Translator Dependencies Required , , and Installation of SPIRV-LLVM-Translator Install SPIRV-LLVM-Translator by running the following commands: mkdir build && cd build && cmake -D CMAKE_INSTALL_PREFIX=/usr \ -D CMAKE_BUILD_TYPE=Release \ -D BUILD_SHARED_LIBS=ON \ -D CMAKE_SKIP_INSTALL_RPATH=ON \ -D LLVM_EXTERNAL_SPIRV_HEADERS_SOURCE=/usr \ -G Ninja .. && ninja This package does not come with a test suite. Now, as the &root; user: ninja install Command Explanations -D BUILD_SHARED_LIBS=ON: This parameter forces building shared versions of the libraries. -D LLVM_EXTERNAL_SPIRV_HEADERS_SOURCE=/usr: This parameter allows the build system to use the version of SPIRV-Headers that was installed with SPIRV-Tools, instead of redownloading an unncessary copy of the headers. Contents Installed Programs Installed Libraries Installed Directories llvm-spirv libLLVMSPIRVLib.so /usr/include/LLVMSPIRVLib Short Descriptions llvm-spirv converts between LLVM IR and SPIR-V code llvm-spirv libLLVMSPIRVLib.so contains functions that convert between LLVM IR and SPIR-V code libLLVMSPIRVLib.so