Basic constructor macro for function-output structures.
(make-function-output [:reg <reg>]
[:type <type>])
This is the usual way to construct function-output structures. It simply conses together a structure with the specified fields.
This macro generates a new function-output structure from scratch. See also change-function-output, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-function-output (&rest args) (std::make-aggregate 'function-output args '((:reg) (:type)) 'make-function-output nil))
Function:
(defun function-output (reg type) (declare (xargs :guard (and (regaccessp reg) (value-typep type)))) (declare (xargs :guard t)) (let ((__function__ 'function-output)) (declare (ignorable __function__)) (b* ((reg (mbe :logic (regaccess-fix reg) :exec reg)) (type (mbe :logic (value-type-fix type) :exec type))) (cons :function-output (list (cons 'reg reg) (cons 'type type))))))