Add COMPILE-IR method for IR-RETURN
This commit is contained in:
parent
c41fb46457
commit
4899d888aa
1 changed files with 3 additions and 0 deletions
|
@ -117,6 +117,9 @@
|
||||||
(defmethod compile-ir ((inst ir-inst))
|
(defmethod compile-ir ((inst ir-inst))
|
||||||
(warn "Skipped compiling ~A; no COMPILE-IR method" 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))
|
(defmethod compile-ir ((inst ir-plus))
|
||||||
(unless (= (length (inputs inst)) 2)
|
(unless (= (length (inputs inst)) 2)
|
||||||
(error "During the final code generation step, IR-PLUS must have exactly 2 operands."))
|
(error "During the final code generation step, IR-PLUS must have exactly 2 operands."))
|
||||||
|
|
Loading…
Add table
Reference in a new issue