You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MLIR: wasm32 ILP32 pointer width and u32 correctness #255
doom-flow's MLIR build on wasm32 produces incorrect memory layout unless the Flow code manually works around ILP32 assumptions.
Details:
Hardcoded * 8 / i64 row strides for ptr<void> arrays scramble light tables and wall colormaps on wasm32. doom-flow added rmain_ptr_bytes() in rmain.flow and draw_ensure_buffers() in draw.flow to use the target pointer size.
u32 to i32 casts and unsigned subtraction / multiplication in timer.flowI_GetTime and rdata.flow texture offsets cause sign / overflow bugs. doom-flow masks byte reads in rdata_short_at and rdata_long_at.
Current workaround: manual pointer-size probes and explicit masking throughout the port.
Requested change: flow.transpiler --mlir --llvm should use the target pointer width for ptr indexing and generate correct zext/trunc for u32 / i32 casts and arithmetic on 32-bit targets.
Activity
fix(mlir): resolve doom -O2 blockers; ILP32 ptr sizing (#253–#255) (#257
fix+docs: close resolved issues; ILP32 sizeof_ptr; Homebrew; linguist…
docs: close shipped issues via Fixes keywords (#261)
fix(mlir): resolve doom -O2 blockers; ILP32 ptr sizing (#253–#255) (#257