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

Open
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.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: saqut/saqut-compiler#52
No description provided.