spirv-llvm-translator
brew install spirv-llvm-translator
v22.1.2
Apache-2.0 WITH LLVM-exception
C++ library and command-line tool for bidirectional translation between LLVM IR and SPIR-V (Khronos parallel compute bytecode).
Why you might care
Essential for OpenCL toolchains and GPU compute workflows that need to convert between LLVM intermediate representation and SPIR-V portable parallel IR. Primarily consumed as a build dependency by OpenCL compilers and heterogeneous compute frameworks. The bidirectional design lets you target both CPU (LLVM) and GPU (SPIR-V) from a common IR.
6.2k
30-day installs · #515
23.8k
90-day · #460
67.4k
365-day · #549
611
★ GitHub stars · updated 1d ago
Runtime dependencies
Build dependencies
Links
- https://github.com/KhronosGroup/SPIRV-LLVM-Translator
- GitHub: KhronosGroup/SPIRV-LLVM-Translator
- Brew formula source: Formula/s/spirv-llvm-translator.rb
Blurb generated by claude-haiku-4-5 on today.
Raw metadata
{
"aliases": [],
"alternatives": [
"clang",
"libclc",
"Intel Graphics Compiler"
],
"build_dependencies": [
"cmake",
"pkgconf",
"spirv-headers"
],
"categories": [
"compiler",
"library",
"sdk"
],
"caveats": null,
"conflicts_with": [],
"dependencies": [
"llvm"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Tool and a library for bi-directional translation between SPIR-V and LLVM IR",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:40:55+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "spirv-llvm-translator",
"github_default_branch": "main",
"github_last_commit_at": "2026-06-19T10:02:49Z",
"github_readme_excerpt": "# LLVM/SPIR-V Bi-Directional Translator\n\n[](https://github.com/KhronosGroup/SPIRV-LLVM-Translator/actions?query=workflow%3A%22Out-of-tree+build+%26+tests%22+event%3Aschedule)\n[](https://github.com/KhronosGroup/SPIRV-LLVM-Translator/actions?query=workflow%3A%22In-tree+build+%26+tests%22+event%3Aschedule)\n\nThis repository contains source code for the LLVM/SPIR-V Bi-Directional Translator, a library and tool for translation between LLVM IR and [SPIR-V](https://www.khronos.org/registry/spir-v/).\nThis project currently only supports the OpenCL/compute \"flavour\" of SPIR-V: it consumes and produces SPIR-V modules that declare the `Kernel` capability.\n\nThe 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.\n\n\n## Directory Structure\n\n\nThe files/directories related to the translator:\n\n* [include/LLVMSPIRVLib.h](include/LLVMSPIRVLib.h) - header file\n* [lib/SPIRV](lib/SPIRV) - library for SPIR-V in-memory representation, decoder/encoder and LLVM/SPIR-V translator\n* [tools/llvm-spirv](tools/llvm-spirv) - command line utility for translating between LLVM bitcode and SPIR-V binary\n\n## Build Instructions\n\nThe `main` branch of this repo is aimed to be buildable with the latest\nLLVM `main` revision.\n\n### Build with pre-installed LLVM\n\nThe translator can be built with the latest(nightly) package of LLVM. For Ubuntu and Debian systems LLVM provides repositories with nightly builds at http://apt.llvm.org/. For example the latest package for Ubuntu 16.04 can be installed with the following commands:\n```\nwget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-ke",
"github_repo": "KhronosGroup/SPIRV-LLVM-Translator",
"github_stars": 611,
"github_topics": [],
"homepage": "https://github.com/KhronosGroup/SPIRV-LLVM-Translator",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 6158,
"installs_365d": 67417,
"installs_90d": 23821,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "Apache-2.0 WITH LLVM-exception",
"llm_generated_at": "2026-06-20T23:45:21+00:00",
"llm_model": "claude-haiku-4-5",
"name": "spirv-llvm-translator",
"oldnames": [],
"one_liner": "C++ library and command-line tool for bidirectional translation between LLVM IR and SPIR-V (Khronos parallel compute bytecode).",
"optional_dependencies": [],
"rank_30d": 515,
"rank_365d": 549,
"rank_90d": 460,
"raw_hash": "664e486554edc04e",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/s/spirv-llvm-translator.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": null,
"version_stable": "22.1.2",
"versioned_formulae": [],
"why_use_this": "Essential for OpenCL toolchains and GPU compute workflows that need to convert between LLVM intermediate representation and SPIR-V portable parallel IR. Primarily consumed as a build dependency by OpenCL compilers and heterogeneous compute frameworks. The bidirectional design lets you target both CPU (LLVM) and GPU (SPIR-V) from a common IR."
}