Skip to content

Add support for i32 on Windows - #858

Open
joa wants to merge 1 commit into
mlir-rs:mainfrom
joa:main
Open

Add support for i32 on Windows#858
joa wants to merge 1 commit into
mlir-rs:mainfrom
joa:main

Conversation

@joa

@joa joa commented Jun 9, 2026

Copy link
Copy Markdown

bindgen on windows produces i32 types for several of the MLIR constants and melior fails to compile. These are u32 on Linux.

Successfully tested this with patched melior/mlir-sys/tblgen-rs on Windows and LLVM 22.1.7 built from source.

The bindgen u32/i32 discrepancy may also be related to something else. cf rust-lang/rust-bindgen#1361

I have not checked the headers or encoding the types differently, as these are the MLIR generated headers.

bindgen on windows produces i32 types for several of the MLIR constants
and melior fails to compile. These are u32 on Linux.
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.

1 participant