This commit is contained in:
parent
f7be86a3d9
commit
d1ce1ef839
24 changed files with 534 additions and 59 deletions
|
@ -2,11 +2,11 @@ package ssa
|
|||
|
||||
// Block is a list of instructions that can be targeted in branches.
|
||||
type Block struct {
|
||||
Instructions []Instruction
|
||||
Instructions []Value
|
||||
}
|
||||
|
||||
// Append adds a new instruction to the block.
|
||||
func (b *Block) Append(instr Instruction) *Instruction {
|
||||
func (b *Block) Append(instr Value) *Value {
|
||||
b.Instructions = append(b.Instructions, instr)
|
||||
return &b.Instructions[len(b.Instructions)-1]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue