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