Class: Rubycc::Front::AST::InlineAsm

Inherits:
Data
  • Object
show all
Defined in:
lib/rubycc/front/ast.rb

Overview

A GNU inline-assembly statement in its only accepted (degenerate) form (DESIGN R7): __asm__ with optional volatile qualifiers and an empty template, e.g. __asm__ volatile("" ::: "memory");. The parser has already verified the template is empty and no real operand appears, so nothing is carried but the keyword token; it lowers to no code at all — rubycc never reorders, so a memory-clobber barrier is a natural no-op.

Instance Attribute Summary collapse

Instance Attribute Details

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



241
242
243
# File 'lib/rubycc/front/ast.rb', line 241

def token
  @token
end