Something went wrong. Try again.
🌱 A minimal programming language and compiler. git.urbach.dev/cli/q
high-performance programming-language compiler
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930package codegen
import ( "git.urbach.dev/cli/q/src/asm" "git.urbach.dev/cli/q/src/ssa")
func (f *Function) executeRegister(step *Step, instr *ssa.Register) { destination := step.Register
if destination == -1 { return }
if destination == instr.Register { return }
isSpilled := f.isSpilled(destination)
if isSpilled { f.storeSpill(step, instr.Register) return }
f.Assembler.Append(&asm.Move{ Destination: destination, Source: instr.Register, })}