Skip to content

fix(mlir): bitwise/shift ops for doom-scale MLIR - #233

Merged
godofecht merged 1 commit into
mainfrom
fix/mlir-bitwise-ops
Aug 7, 2026
Merged

godofecht merged 1 commit into
mainfrom
fix/mlir-bitwise-ops

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • Tiny a^b & | << >> program lowers and flow wasm --backend=mlir produces LLVM that returns the expected constant
  • doom-flow BACKEND=mlir still fails later on CF block-arg ptr vs i32 (separate issue) — but no longer on bitwise comments

Made with Cursor

Doom-scale MLIR was emitting comment placeholders for &, |, ^, <<, >>
which broke mlir-opt. Map them to andi/ori/xori/shli/shrsi.

Co-authored-by: Cursor <[email protected]>
@godofecht
godofecht merged commit 2264565 into main Aug 7, 2026
14 checks passed
@godofecht
godofecht deleted the fix/mlir-bitwise-ops branch August 7, 2026 18:59
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