Class: RLTK::CG::CallInst
- Inherits:
-
Instruction
- Object
- Value
- User
- Instruction
- RLTK::CG::CallInst
- Defined in:
- lib/rltk/cg/instruction.rb
Overview
An Instruction representing a function call.
Constant Summary
Constants inherited from Instruction
Instance Attribute Summary
Attributes included from BindingClass
Instance Method Summary collapse
-
#calling_convention ⇒ Symbol
Get the calling convention used for this call.
-
#calling_convention=(conv) ⇒ Object
Set the calling convention used for this call.
-
#tail_call=(bool) ⇒ void
Sets the *tail call* property for this call instruction.
- #tail_call? ⇒ Boolean
Methods inherited from Instruction
from_ptr, #initialize, #next, #parent, #previous
Methods inherited from User
Methods inherited from Value
#==, #attributes, #bitcast, #constant?, #dump, #hash, #initialize, #name, #name=, #null?, #print, #trunc, #trunc_or_bitcast, #type, #undefined?, #zextend, #zextend_or_bitcast
Methods included from BindingClass
Constructor Details
This class inherits a constructor from RLTK::CG::Instruction
Instance Method Details
#calling_convention ⇒ Symbol
Get the calling convention used for this call.
132 133 134 |
# File 'lib/rltk/cg/instruction.rb', line 132 def calling_convention Bindings.enum_type(:call_conv)[Bindings.get_instruction_call_conv(@ptr)] end |
#calling_convention=(conv) ⇒ Object
Set the calling convention used for this call.
141 142 143 144 145 |
# File 'lib/rltk/cg/instruction.rb', line 141 def calling_convention=(conv) Bindings.set_instruction_call_conv(@ptr, Bindings.enum_type(:call_conv)[conv]) conv end |
#tail_call=(bool) ⇒ void
This method returns an undefined value.
Sets the *tail call* property for this call instruction.
157 158 159 |
# File 'lib/rltk/cg/instruction.rb', line 157 def tail_call=(bool) Bindings.set_tail_call(@ptr, bool.to_i) end |
#tail_call? ⇒ Boolean
148 149 150 |
# File 'lib/rltk/cg/instruction.rb', line 148 def tail_call? Bindings.is_tail_call(@ptr).to_bool end |