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.
Methods inherited from Instruction
from_ptr, #initialize, #next, #parent, #previous
Methods inherited from User
Methods included from AbstractClass
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.
131 132 133 |
# File 'lib/rltk/cg/instruction.rb', line 131 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.
140 141 142 143 144 |
# File 'lib/rltk/cg/instruction.rb', line 140 def calling_convention=(conv) Bindings.set_instruction_call_conv(@ptr, Bindings.enum_type(:call_conv)[conv]) conv end |