LoadLocal instruction

Changes InstructionValue::Place to InstructionValue::LoadLocal for clarity, this 
is intended as the only instruction where a variable can appear as an operand. 
All other instructions operands will be temporaries.
This commit is contained in:
Joe Savona committed 2023-03-01 16:27:34 -08:00
1 parent 08c1eda7ff
commit 71db40c6ff
26 files changed
+152 -129

No files matched your search

@@ -484,7 +484,11 @@ class Driver {
return {
block: defaultBlock.id,
place: defaultBlock.terminal.test,
value: defaultBlock.terminal.test,
value: {
kind: "LoadLocal",
place: defaultBlock.terminal.test,
loc: defaultBlock.terminal.test.loc,
},
id: defaultBlock.terminal.id,
};
} else if (defaultBlock.instructions.length === 1) {