Class: RLTK::CG::CallInst

Inherits:
Instruction show all
Defined in:
lib/rltk/cg/instruction.rb

Overview

An Instruction representing a function call.

Constant Summary

Constants inherited from Instruction

Instruction::TESTABLE

Instance Attribute Summary

Attributes included from BindingClass

#ptr

Instance Method Summary collapse

Methods inherited from Instruction

from_ptr, #initialize, #next, #parent, #previous

Methods inherited from User

#operands

Methods included from AbstractClass

included

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_conventionSymbol

Get the calling convention used for this call.

Returns:

  • (Symbol)

See Also:



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.

Parameters:

  • conv (Symbol)

    Calling convention to set.

See Also:



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