Skip to main content

simdref

CI TestPyPI Python

simdref is a SIMD intrinsic and instruction reference for x86 (Intel + uops.info), Arm (ACLE, AARCHMRS), and RISC-V (RVV + unified-db). It runs as a CLI, a TUI, an LSP server, and an on-demand manpage renderer.

Web app · TestPyPI · GitHub · Contributing

simdref TUI

Install the Claude Code and Codex skill

The asm-analysis skill lives in simd-labs/simdref-skill. Follow the install steps in that repo.

Install

pip install simdref
isa update     # download the pre-built catalog
isa doctor     # check the install
isa            # open the TUI

The package installs two equivalent executables, isa and simdref. The catalog download does not need llvm-mca. Only isa build needs llvm-mca 18+ on PATH.

Pre-release builds live on TestPyPI:

pip install -i https://test.pypi.org/simple/ \
            --extra-index-url https://pypi.org/simple/ simdref

Quickstart

isa _mm_add_ps       # exact intrinsic  -> detailed view
isa VPADDD           # exact instruction -> detailed view
isa _mm_add          # fuzzy -> ranked search results
isa mm add           # tokenized query -> intrinsic-biased search
isa ADD              # mnemonic-like -> instruction-biased search
isa VADDPS 2         # pick variant #2 from the last result list
isa                  # open the TUI

Interfaces

The web app at simdref.diamondinoia.com reads the JSON site data this repo exports:

isa export --out-dir ./site-data

The LSP server speaks JSON-RPC over stdio:

simdref-lsp

Editor clients, one for each editor:

Each client shows a one-line brief at the end of each instruction line and the full manpage on hover, from the local catalog.

The LLM interface emits JSON and NDJSON with exit codes 0 (match), 1 (bad flag), 2 (no match), 3 (ambiguous):

isa llm query _mm_add_ps --source-kind measured
echo -e "_mm_add_ps\nVPADDD" | isa llm batch
isa llm list --pattern "*gather*" --isa Intel

See docs/LLM.md for the payload shape.

The annotator turns compiler .s output into an annotated .sa file.

isa annotate hello_simd.s                       # writes hello_simd.sa
isa annotate hello_simd.s --arch skylake-x -o - # stdout, skylake-x only

The annotator adds a trailing comment with the summary, latency, and CPI to each instruction line. The output stays valid assembly.

Commands

isa --help groups commands into Commands and Dev commands.

Commands

Command Description
isa Open the TUI
isa <query> Open the TUI with the query in a TTY, else print ranked results to stdout
isa doctor Check the install, non-zero exit on failure
isa update Download the pre-built catalog, --from-release for the GitHub Release
isa annotate <file.s> Annotate a .s file with summaries and latency/CPI, writes <file>.sa
isa man <name> Show a manpage, rendered on demand
isa install-manpages Pre-generate man7 pages so plain man vpaddd works
isa llm query <q> Strict lookup to JSON, NDJSON, or Markdown
isa llm batch Resolve many queries from stdin in one invocation
isa llm list Emit the FilterSpec or stream matching catalog entries
isa llm schema Print the JSON schema for llm payloads

Dev commands

Command Description
isa build Rebuild the catalog from upstream, needs llvm-mca 18+
isa export Export the site-data JSON for the simdref-web repo
isa completion install [SHELL] Install shell completion into the user profile
isa completion show [SHELL] Print the completion script

Data sources

Source What Entries¹
Intel Intrinsics Guide Signatures, descriptions, ISA, categories 7,381 intrinsics
uops.info Instructions, operands, latency, throughput, ports 2,558 instructions
Arm ACLE (NEON, SVE) Intrinsic signatures and descriptions 10,791 intrinsics
Arm AARCHMRS (A64) Base instruction forms and operand tables live-only²
riscv-rvv-intrinsic-doc RVV intrinsics with deterministic instruction refs 74,289 intrinsics
RISC-V unified-db RVV instruction forms, ISA tags, description, operation 672 instructions

¹ Counts from the vendored snapshot. See docs/coverage/summary.json for parity against upstream and docs/SOURCES.md for licenses.

² The full AARCHMRS A64 spec needs a live fetch or a tarball under vendor/arm/.

Each perf row carries a (measured, <core>) or (modeled, <core>) tag.

Scope

  • Performance data is x86-only.
  • RISC-V coverage is RVV only, not scalar or privileged ISA.

Development

git clone https://github.com/simd-labs/simdref.git
cd simdref
python3 -m venv .venv
.venv/bin/pip install -e .
.venv/bin/isa build          # needs llvm-mca 18+
.venv/bin/python -m pytest tests/ -v

See CONTRIBUTING.md and ARCHITECTURE.md.

License

GNU General Public License v3.0.

Metadata

Release files for simdref 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simdref 0.0.11
File Size Uploaded Provenance Actions
simdref-0.0.11.tar.gz 238.7 kB With provenance Details for simdref-0.0.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for simdref 0.0.11
File Interpreter ABI Platform Actions
simdref-0.0.11-py3-none-any.whl Python 3 none any Details for simdref-0.0.11-py3-none-any.whl

Total release size: 417.0 kB

Release files / simdref-0.0.11.tar.gz

Download URL simdref-0.0.11.tar.gz
Size 238.7 kB
Tags Source
SHA-256 checksum
How to use checksums
230b5738d9e3f4de99fd8133fce579f519109145c511c638c5f8a809542f3177
BLAKE2b-256 checksum
How to use checksums
0414907b92467d80fae82890bc7a4c7d1202d47e018f319db2e0c8279786be21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release files / simdref-0.0.11-py3-none-any.whl

Download URL simdref-0.0.11-py3-none-any.whl
Size 178.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d02e12718426d5f9491fca6026d3eb9505ddaa97cfcd3b619e751e7414d547d
BLAKE2b-256 checksum
How to use checksums
bda02e03d2b479d2ab7af7bcb996f38a86a64725510e6519340dc5785473ed1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Security for simdref 0.0.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for simdref-0.0.11.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page