Basic constructor macro for instruction-commit structures.
(make-instruction-commit [:op <op>]
[:arg1 <arg1>]
[:arg2 <arg2>]
[:into <into>])
This is the usual way to construct instruction-commit structures. It simply conses together a structure with the specified fields.
This macro generates a new instruction-commit structure from scratch. See also change-instruction-commit, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-instruction-commit (&rest args) (std::make-aggregate 'instruction-commit args '((:op) (:arg1) (:arg2) (:into)) 'make-instruction-commit nil))
Function:
(defun instruction-commit (op arg1 arg2 into) (declare (xargs :guard (and (commit-opp op) (operandp arg1) (operandp arg2) (registerp into)))) (declare (xargs :guard t)) (let ((__function__ 'instruction-commit)) (declare (ignorable __function__)) (b* ((op (mbe :logic (commit-op-fix op) :exec op)) (arg1 (mbe :logic (operand-fix arg1) :exec arg1)) (arg2 (mbe :logic (operand-fix arg2) :exec arg2)) (into (mbe :logic (register-fix into) :exec into))) (cons :commit (list op arg1 arg2 into)))))