# Install spirv-llvm-translator with Homebrew, apk, dnf, Nix, pacman, zypper

Tool and a library for bi-directional translation between SPIR-V and LLVM IR. Version 22.1.2 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:spirv-llvm-translator
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install spirv-llvm-translator
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add spirv-llvm-translator
```

  Evidence: Alpine Linux edge package indexes: spirv-llvm-translator from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install spirv-llvm-translator
```

  Evidence: Fedora Rawhide package metadata: spirv-llvm-translator from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#spirv-llvm-translator
```

  Evidence: nixpkgs package indexes: pkgs/by-name/sp/spirv-llvm-translator/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S spirv-llvm-translator
```

  Evidence: Arch Linux sync databases: spirv-llvm-translator from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libLLVMSPIRVLib-devel
```

  Evidence: openSUSE Tumbleweed package metadata: libLLVMSPIRVLib-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:spirv-llvm-translator
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/spirv-llvm-translator>
- **Version:** 22.1.2
- **Source summary:** Tool and a library for bi-directional translation between SPIR-V and LLVM IR
- **Homepage:** <https://github.com/KhronosGroup/SPIRV-LLVM-Translator>
- **Repository:** <https://github.com/KhronosGroup/SPIRV-LLVM-Translator>
- **Upstream docs:** <https://github.com/KhronosGroup/SPIRV-LLVM-Translator#readme>
- **License:** Apache-2.0 WITH LLVM-exception
- **Source archive:** <https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/refs/tags/v22.1.2.tar.gz>
- **Last updated:** 2026-06-22T14:06:20-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- llvm-spirv (cli)
- llvm-spirv (alias)

## Dependencies

- llvm

## Build dependencies

- cmake
- pkgconf
- spirv-headers

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 22.1.2
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://github.com/KhronosGroup/SPIRV-LLVM-Translator
- Upstream latest detected: v22.1.2 (current)
## Project history and usage

SPIRV-LLVM-Translator is Khronos Group's LLVM/SPIR-V bidirectional translator, packaged mainly for developers building OpenCL, SYCL, and GPU-compute compiler stacks that need the `llvm-spirv` command or `LLVMSPIRVLib`.

### Project history

Khronos released SPIR-V 1.0 in 2015 as a standardized intermediate language for graphics shaders and compute kernels, and announced open source utilities including a bidirectional LLVM-to-SPIR-V translator. The translator repository now describes itself as the source for a library and command-line tool that translate between LLVM IR and SPIR-V, with current support focused on the OpenCL/compute `Kernel` capability.

The project tracks LLVM closely: its README says the main branch is intended to build against LLVM main, while release tags map to released LLVM and Clang versions. That makes the package feel less like a standalone end-user app and more like a bridge component in a larger compiler-toolchain graph.

### Adoption history

The package-manager footprint in the supplied input lists the translator in Homebrew, Alpine, Fedora, Nix, Arch, and openSUSE-family packaging. That distribution pattern reflects its role as a low-level build dependency for toolchains rather than a command most users install directly.

### How it is used

The central CLI is `llvm-spirv`: the README documents translating LLVM bitcode to SPIR-V and using `-r` to translate SPIR-V back to LLVM bitcode. It also documents version and extension controls, which matter when compiler output must match a particular OpenCL or SPIR-V environment.

### Why package nerds care

Package maintainers care because the translator has to line up with LLVM, SPIRV-Headers, and often SPIRV-Tools. Small version mismatches can break builds or validation in GPU compiler stacks, so distro formulas and ports tend to encode it as part of the wider Khronos/LLVM toolchain set.

### Timeline

- 2015: Khronos releases OpenCL 2.1 and SPIR-V 1.0 and announces open source SPIR-V utilities, including an LLVM/SPIR-V translator.
- Ongoing: The translator main branch tracks LLVM main, with compatibility tags for released LLVM and Clang versions.

### Related projects

- SPIRV-Tools provides assembler, disassembler, validator, optimizer, and related processing commands that are commonly used alongside translator output.
- SPIRV-Headers supplies the Khronos SPIR-V headers and grammar files consumed by SPIR-V tooling.

### Sources

- <https://github.com/KhronosGroup/SPIRV-LLVM-Translator#readme>
- <https://www.khronos.org/news/press/khronos-releases-opencl-2.1-and-spir-v-1.0-specifications-for-heterogeneous>
- source_facts.package-manager


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** spirv-llvm-translator
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - spirv-llvm-translator: normalized package name match | nixpkgs package indexes: pkgs/by-name/sp/spirv-llvm-translator/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - spirv-llvm-translator - 22.1.0-r0: normalized package name match | Alpine Linux edge package indexes: spirv-llvm-translator from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Library for bi-directional translation between SPIR-V and LLVM IR | https://github.com/KhronosGroup/SPIRV-LLVM-Translator
- apk - spirv-llvm-translator-dev - 22.1.0-r0: normalized package name match | Alpine Linux edge package indexes: spirv-llvm-translator-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Library for bi-directional translation between SPIR-V and LLVM IR (development files) | https://github.com/KhronosGroup/SPIRV-LLVM-Translator
- apk - spirv-llvm-translator-libs - 22.1.0-r0: normalized package name match | Alpine Linux edge package indexes: spirv-llvm-translator-libs from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Library for bi-directional translation between SPIR-V and LLVM IR (libraries) | https://github.com/KhronosGroup/SPIRV-LLVM-Translator
- dnf - spirv-llvm-translator - 22.1.2-1.fc45: normalized package name match | Fedora Rawhide package metadata: spirv-llvm-translator from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | LLVM to SPIRV Translator | https://github.com/KhronosGroup/SPIRV-LLVM-Translator
- dnf - spirv-llvm-translator-devel - 22.1.2-1.fc45: normalized package name match | Fedora Rawhide package metadata: spirv-llvm-translator-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for LLVM to SPIRV Translator | https://github.com/KhronosGroup/SPIRV-LLVM-Translator
- dnf - spirv-llvm-translator-tools - 22.1.2-1.fc45: normalized package name match | Fedora Rawhide package metadata: spirv-llvm-translator-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Standalone llvm to spirv translator tool | https://github.com/KhronosGroup/SPIRV-LLVM-Translator
- pacman - spirv-llvm-translator - 22.1.2-1: normalized package name match | Arch Linux sync databases: spirv-llvm-translator from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | LLVM <-> SPIR-V converter for compilers targeting SPIR-V | https://www.khronos.org/spirv/
- zypper - libLLVMSPIRVLib-devel - 22.1.2-1.1: normalized package name match | openSUSE Tumbleweed package metadata: libLLVMSPIRVLib-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for LLVM/SPIR-V Bi-Directional Translator library | https://github.com/KhronosGroup/SPIRV-LLVM-Translator
- zypper - libLLVMSPIRVLib22 - 22.1.2-1.1: normalized package name match | openSUSE Tumbleweed package metadata: libLLVMSPIRVLib22 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | LLVM/SPIR-V Bi-Directional Translator library | https://github.com/KhronosGroup/SPIRV-LLVM-Translator


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [llvm](https://www.automicvault.com/pkg/brew/llvm/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [mesa](https://www.automicvault.com/pkg/brew/mesa/) - Popular package that depends on this formula.
- [lld](https://www.automicvault.com/pkg/brew/lld/) - Shares av.db curated category or tags: cli, compiler-toolchain, developer-tools, llvm.
- [spirv-tools](https://www.automicvault.com/pkg/brew/spirv-tools/) - Shares av.db curated category or tags: cli, compiler-toolchain, developer-tools, spir-v.
- [wllvm](https://www.automicvault.com/pkg/brew/wllvm/) - Shares av.db curated category or tags: cli, compiler-toolchain, developer-tools, llvm.
- [pocl](https://www.automicvault.com/pkg/brew/pocl/) - Shares av.db curated category or tags: cli, developer-tools, llvm, opencl.
- [alive2](https://www.automicvault.com/pkg/brew/alive2/) - Shares av.db curated category or tags: cli, developer-tools, llvm.
- [cargo-binutils](https://www.automicvault.com/pkg/brew/cargo-binutils/) - Shares av.db curated category or tags: cli, developer-tools, llvm.
- [cargo-llvm-cov](https://www.automicvault.com/pkg/brew/cargo-llvm-cov/) - Shares av.db curated category or tags: cli, developer-tools, llvm.
- [spirv-cross](https://www.automicvault.com/pkg/brew/spirv-cross/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, spir, spir-v.

## Combined YAML source

View the package source record on GitHub. [combined/spirv-llvm-translator.yml](https://github.com/automic-vault/db/blob/main/combined/spirv-llvm-translator.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
