Class: Object

Inherits:
BasicObject
Defined in:
lib/llvm.rb,
lib/ruby_vm.rb

Instance Method Summary collapse

Instance Method Details

#immediateObject



16
17
18
# File 'lib/llvm.rb', line 16

def immediate
  LLVM::Value.get_immediate_constant(self)
end

#llvmObject



16
17
18
# File 'lib/ruby_vm.rb', line 16

def llvm
  LLVM::Value.get_immediate_constant(self)
end

#llvm_send(f) ⇒ Object



20
21
22
23
# File 'lib/ruby_vm.rb', line 20

def llvm_send(f)
  # for now, pass the receiver as the first argument
  ExecutionEngine.runFunction(f, self)
end