This commit is contained in:
parent
ec300c9a70
commit
89f375f4fc
8 changed files with 234 additions and 0 deletions
11
src/ssa/Block.go
Normal file
11
src/ssa/Block.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
package ssa
|
||||
|
||||
type Block struct {
|
||||
Entry []*Block
|
||||
Instructions []Instruction
|
||||
Exit []*Block
|
||||
}
|
||||
|
||||
func (b *Block) Append(instr Instruction) {
|
||||
b.Instructions = append(b.Instructions, instr)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue