Add COMPILE-IR method for IR-RETURN

This commit is contained in:
John Lorentzson 2025-07-03 10:28:58 +02:00
parent c41fb46457
commit 4899d888aa

View file

@ -117,6 +117,9 @@
(defmethod compile-ir ((inst ir-inst))
(warn "Skipped compiling ~A; no COMPILE-IR method" inst))
(defmethod compile-ir ((inst ir-return))
(emit-asm-instruction :opcode #x60 :byte-length 1))
(defmethod compile-ir ((inst ir-plus))
(unless (= (length (inputs inst)) 2)
(error "During the final code generation step, IR-PLUS must have exactly 2 operands."))