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.
123456789101112131415161718192021222324252627282930313233package codegen
import ( "git.urbach.dev/cli/q/src/asm" "git.urbach.dev/cli/q/src/ssa" "git.urbach.dev/cli/q/src/types")
func (f *Function) executeBool(step *Step, instr *ssa.Bool) { destination := step.Register
if destination == -1 { return }
number := 0
if instr.Bool { number = 1 }
isSpilled := f.isSpilled(destination)
if isSpilled { f.storeSpillNumber(step, types.Bool, number) return }
f.Assembler.Append(&asm.MoveNumber{ Destination: destination, Number: number, })}