Skip to content

A tool and a library for bi-directional translation between SPIR-V and LLVM IR

License

Notifications You must be signed in to change notification settings

lsatanov/SPIRV-LLVM-Translator

 
 

Repository files navigation

LLVM/SPIR-V Bi-Directional Translator

Out-of-tree build & tests In-tree build & tests

This repository contains source code for the LLVM/SPIR-V Bi-Directional Translator, a library and tool for translation between LLVM IR and SPIR-V.

The LLVM/SPIR-V Bi-Directional Translator is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.

Directory Structure

The files/directories related to the translator:

Build Instructions

The main branch of this repo is aimed to be buildable with the latest LLVM main revision.

Build with pre-installed LLVM

The translator can be built with the latest(nightly) package of LLVM. For Ubuntu and Debian systems LLVM provides repositories with nightly builds at https://apt.llvm.org/. For example the latest package for Ubuntu 16.04 can be installed with the following commands: