class RCGTK::CallInst

An Instruction representing a function call.

@LLVMInst call

Public Instance Methods

calling_convention() click to toggle source

Get the calling convention used for this call.

@see Bindings.enum_call_conv

@return [Symbol]

# File lib/rcgtk/instruction.rb, line 132
def calling_convention
        Bindings.enum_type(:call_conv)[Bindings.get_instruction_call_conv(@ptr)]
end
calling_convention=(conv) click to toggle source

Set the calling convention used for this call.

@see Bindings.enum_call_conv

@param [Symbol] conv Calling convention to set.

# File lib/rcgtk/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) click to toggle source

Sets the *tail call* property for this call instruction.

@param [Boolean] bool If this is a tail call or not

@return [void]

# File lib/rcgtk/instruction.rb, line 157
def tail_call=(bool)
        Bindings.set_tail_call(@ptr, bool.to_i)
end
tail_call?() click to toggle source

@return [Boolean]

# File lib/rcgtk/instruction.rb, line 148
def tail_call?
        Bindings.is_tail_call(@ptr).to_bool
end