Basic constructor macro for asm-output structures.
(make-asm-output [:name <name>]
[:constraint <constraint>]
[:lvalue <lvalue>])
This is the usual way to construct asm-output structures. It simply conses together a structure with the specified fields.
This macro generates a new asm-output structure from scratch. See also change-asm-output, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-asm-output (&rest args) (std::make-aggregate 'asm-output args '((:name) (:constraint) (:lvalue)) 'make-asm-output nil))
Function:
(defun asm-output (name constraint lvalue) (declare (xargs :guard (and (ident-optionp name) (stringlit-listp constraint) (exprp lvalue)))) (declare (xargs :guard t)) (b* ((name (mbe :logic (ident-option-fix name) :exec name)) (constraint (mbe :logic (stringlit-list-fix constraint) :exec constraint)) (lvalue (mbe :logic (expr-fix lvalue) :exec lvalue))) (cons name (cons constraint lvalue))))