Class: Rubycc::Front::AST::BuiltinExpect
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::AST::BuiltinExpect
- Defined in:
- lib/rubycc/front/ast.rb
Overview
"__builtin_expect ( exp , c )": gcc's branch-prediction hint, typed
long(long, long). exp is the tested expression and c the value it
is expected to take. rubycc has no optimizer, so the hint carries no
weight: both operands are evaluated (left to right, c for its side
effects) and the whole expression is exp converted to long. token
is the builtin keyword.
Instance Attribute Summary collapse
-
#c ⇒ Object
readonly
Returns the value of attribute c.
-
#exp ⇒ Object
readonly
Returns the value of attribute exp.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Attribute Details
#c ⇒ Object (readonly)
Returns the value of attribute c
356 357 358 |
# File 'lib/rubycc/front/ast.rb', line 356 def c @c end |
#exp ⇒ Object (readonly)
Returns the value of attribute exp
356 357 358 |
# File 'lib/rubycc/front/ast.rb', line 356 def exp @exp end |
#token ⇒ Object (readonly)
Returns the value of attribute token
356 357 358 |
# File 'lib/rubycc/front/ast.rb', line 356 def token @token end |