[Flint] adding IR lowering and printer
Mirror Gitea refs to GitHub / mirror (push) Successful in 18s
Test / build_and_test (push) Successful in 6m17s
Build / build (push) Successful in 7m51s

[IR] switching from "passes" to "transformers" for clarity
This commit is contained in:
2026-07-29 15:39:41 +02:00
parent 045497b264
commit 948e8b86a3
27 changed files with 3453 additions and 1816 deletions
+10
View File
@@ -233,3 +233,13 @@ fn replaceOne(operand: *ids.ValueId, old: ids.ValueId, replacement: ids.ValueId,
operand.* = replacement;
count.* += 1;
}
test "Module: central store IDs graveyard" {
var module = Module.init(std.testing.allocator, .fragment);
defer module.deinit();
const first = try module.internType(.boolean);
try std.testing.expect(module.types.remove(first));
const second = try module.internType(.boolean);
try std.testing.expect(first.index() != second.index());
try std.testing.expect(module.types.get(first) == null);
}