🎉 Phase 8.2 PoC1 COMPLETE: MIR→WASM basic arithmetic working end-to-end!
Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
This commit is contained in:
@ -183,11 +183,18 @@ impl WasmCodegen {
|
||||
|
||||
let mut instructions = Vec::new();
|
||||
|
||||
// Process regular instructions
|
||||
for mir_instruction in &block.instructions {
|
||||
let wasm_instructions = self.generate_instruction(mir_instruction)?;
|
||||
instructions.extend(wasm_instructions);
|
||||
}
|
||||
|
||||
// Process terminator instruction
|
||||
if let Some(ref terminator) = block.terminator {
|
||||
let wasm_instructions = self.generate_instruction(terminator)?;
|
||||
instructions.extend(wasm_instructions);
|
||||
}
|
||||
|
||||
Ok(instructions)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user