This commit is contained in:
Nilton Constantino
2026-01-29 17:23:16 +00:00
parent 603c8e7862
commit dc3a0268f1
5 changed files with 265 additions and 43 deletions
-26
View File
@@ -1,29 +1,3 @@
# PR-22 — Make Allocation Shape Explicit in Core IR
### Goal
Stop implicit / guessed heap layouts.
### Required Changes
* Replace any shape-less `Alloc` with:
```rust
Alloc { ty: TypeId, slots: u32 }
```
Rules:
* `TypeId` comes from frontend type checking
* `slots` is derived deterministically (struct fields / array size)
### Tests
* Allocating storage struct emits correct `slots`
* Allocating array emits correct `slots`
---
# PR-23 — Eliminate Invalid Call Fallbacks
### Goal