Added ssa package
All checks were successful
/ test (push) Successful in 22s

This commit is contained in:
Eduard Urbach 2025-06-20 21:05:49 +02:00
parent ec300c9a70
commit 89f375f4fc
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
8 changed files with 234 additions and 0 deletions

11
src/ssa/Block.go Normal file
View 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)
}