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