Asama 5.1 — Extend IR with control flow, function, and memory opcodes #52

Closed
opened 2026-05-26 19:52:48 +03:00 by saqut · 0 comments
Owner

Goal: IR must support control flow, function calls, and memory operations.

Files to modify:

  • src/ir/ir.hpp

Requirements:

  • New opcodes: cmp, br, br_eq, br_lt, br_gt, jmp, call, ret, param, load, store, alloca.
  • Add label field or IRLabel structure for branch targets.

Success criteria:

  • All opcodes defined and documented.
  • IR can represent if-else, while loop, function definition.
**Goal:** IR must support control flow, function calls, and memory operations. **Files to modify:** - src/ir/ir.hpp **Requirements:** - New opcodes: cmp, br, br_eq, br_lt, br_gt, jmp, call, ret, param, load, store, alloca. - Add label field or IRLabel structure for branch targets. **Success criteria:** - All opcodes defined and documented. - IR can represent if-else, while loop, function definition.
saqut closed this issue 2026-06-14 21:53:19 +03:00
Sign in to join this conversation.
No description provided.