Crystal::Macros::Asm
Inherits Crystal::Macros::ASTNode
An inline assembly expression.
Every assembly node is equivalent to:
asm(
{{ node.text }} :
{{ node.outputs.splat }} :
{{ node.inputs.splat }} :
{{ node.clobbers.splat }} :
{% if node.volatile? %} "volatile", {% end %}
{% if node.alignstack? %} "alignstack", {% end %}
{% if node.intel? %} "intel", {% end %}
{% if node.can_throw? %} "unwind", {% end %}
)
Instance methods
intel?
Returns true if the template string uses the Intel syntax, false if it
uses the AT&T syntax.
volatile?
Returns whether the assembly expression contains side effects that are
not listed in #outputs, #inputs, and #clobbers.