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.
1234567891011121314151617181920212223242526package codegen
import ( "git.urbach.dev/cli/q/src/asm" "git.urbach.dev/cli/q/src/ssa")
func (f *Function) executeField(step *Step, instr *ssa.Field) { source := f.CPU.Call.Out[instr.Index] destination := step.Register isSpilled := f.isSpilled(destination)
if destination == source { return }
if isSpilled { f.storeSpill(step, source) return }
f.Assembler.Append(&asm.Move{ Destination: destination, Source: source, })}