Skip to content

Upgrade to LLVM/MLIR 22#84

Merged
raviqqe merged 1 commit intomainfrom
llvm-22
Mar 19, 2026
Merged

Upgrade to LLVM/MLIR 22#84
raviqqe merged 1 commit intomainfrom
llvm-22

Conversation

@edg-l
Copy link
Copy Markdown
Member

@edg-l edg-l commented Mar 19, 2026

Bumps crate version to 220.0.0 and sets LLVM_MAJOR_VERSION to 22 in build.rs.

wrapper.h adds 22 new dialect C API headers (Affine, AMX, ArmNeon, ArmSME, ArmSVE, Bufferization, Complex, DLTI, Index, MPI, OpenACC, PDLInterp, Ptr, Shard, SMT, Tosa, UB, VCIX, WasmSSA, X86Vector, XeGPU, XeVM) and one new target header (ExportSMTLIB). tools/setup.sh and README.md updated to reference LLVM 22.

Tested against LLVM 22.1.1.

Fixes #66

- Bump version to 220.0.0
- Update LLVM_MAJOR_VERSION to 22
- Add 22 new dialect headers (Affine, AMX, ArmNeon, ArmSME, ArmSVE,
  Bufferization, Complex, DLTI, Index, MPI, OpenACC, PDLInterp, Ptr,
  Shard, SMT, Tosa, UB, VCIX, WasmSSA, X86Vector, XeGPU, XeVM)
- Add new target header (ExportSMTLIB)
- Update CI and docs for LLVM 22
@edg-l edg-l marked this pull request as ready for review March 19, 2026 09:05
@edg-l edg-l requested a review from raviqqe March 19, 2026 09:05
@raviqqe raviqqe merged commit 2c7e51c into main Mar 19, 2026
7 checks passed
@raviqqe raviqqe deleted the llvm-22 branch March 19, 2026 15:54
raviqqe pushed a commit that referenced this pull request Mar 20, 2026
…heck feature (#85)

Drop the static `wrapper.h` and generate it at build time in `build.rs`.
`generate_wrapper` walks `{includedir}/mlir-c/` recursively, skips
`Bindings/`, sorts the results, and writes a `#include` list to
`$OUT_DIR/wrapper.h`. New or removed dialect headers are picked up
automatically, including out-of-tree ones.

Add a `no-version-check` cargo feature that skips the `llvm-config
--version` check. Enables building against MLIR main/trunk without
patching the crate. Fixes #43 .

Bump version to 220.0.1. Update README to document both the
auto-discovery behavior and the `no-version-check` feature.

(Depends first on pr #84 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TOSA Dialect

2 participants