added returning & more asm instructions

This commit is contained in:
2025-03-22 16:54:28 -04:00
parent 7f809d797c
commit 6c2f4e814f
11 changed files with 176 additions and 43 deletions

View File

@@ -9,6 +9,7 @@ pub struct IRLFunction {
pub instructions: Vec<IRLInstruction>,
pub stack: HashMap<VarID, Size>,
pub args: Vec<(VarID, Size)>,
pub ret_size: Size,
pub makes_call: bool,
}
@@ -34,7 +35,7 @@ pub enum IRLInstruction {
len: Len,
},
Call {
dest: VarID,
dest: Option<(VarID, Size)>,
f: Symbol,
args: Vec<(VarID, Size)>,
},