Implement write_instruction and write_ebb.

Use the new iterators to write out the contents of a function.
This commit is contained in:
Jakob Stoklund Olesen
2016-05-13 15:31:37 -07:00
parent dd5c1a1a3f
commit 1be81c4352
2 changed files with 108 additions and 10 deletions

View File

@@ -130,14 +130,14 @@ pub enum InstructionData {
BinaryImm {
opcode: Opcode,
ty: Type,
arg: Value,
lhs: Value,
rhs: Imm64,
},
// Same as BinaryImm, but the imediate is the lhs operand.
BinaryImmRev {
opcode: Opcode,
ty: Type,
arg: Value,
rhs: Value,
lhs: Imm64,
},
Call {