rust-lang / rust-lang/rustc_codegen_cranelift

std::arch SIMD intrinsics

Open
#171 52 comments 15 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-core-arch optimize-speed
Dominant language
Rust
Stars
2.1k
Forks
157
Avg merge
1d 19h
Merged PRs (30d)
3

Description

Currently the SIMD intrinsics are implemented in stdsimd using link_llvm_intrinsics to directly call the llvm intrinsics via their C ABI, and using a handful of "generic" simd intrinsics.

Is there a way to directly call Cretonne intrinsics?
Is there a cfg() macro available to detect whether the codegen backend is LLVM or Cranelift ?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the stdsimd implementation and its use of link_llvm_intrinsics, then investigate whether Cranelift exposes directly callable intrinsics and whether cfg() can distinguish the LLVM and Cranelift backends. Done means establishing supported answers for both questions and documenting or implementing the required integration.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.