Class: LLVM::Instruction
Direct Known Subclasses
Instance Method Summary collapse
-
#next ⇒ Object
Returns the next instruction after this one.
-
#parent ⇒ Object
Returns the parent of the instruction (a BasicBlock).
-
#previous ⇒ Object
Returns the previous instruction before this one.
Methods inherited from User
Methods inherited from Value
#add_attribute, #constant?, #dump, from_ptr, #name, #name=, #null?, to_ptr, #type, type, #undefined?
Methods included from PointerIdentity
Instance Method Details
#next ⇒ Object
Returns the next instruction after this one.
812 813 814 815 |
# File 'lib/llvm/core/value.rb', line 812 def next ptr = C.get_next_instruction(self) LLVM::Instruction.from_ptr(ptr) unless ptr.null? end |
#parent ⇒ Object
Returns the parent of the instruction (a BasicBlock).
806 807 808 809 |
# File 'lib/llvm/core/value.rb', line 806 def parent ptr = C.get_instruction_parent(self) LLVM::BasicBlock.from_ptr(ptr) unless ptr.null? end |
#previous ⇒ Object
Returns the previous instruction before this one.
818 819 820 821 |
# File 'lib/llvm/core/value.rb', line 818 def previous ptr = C.get_previous_instruction(self) LLVM::Instruction.from_ptr(ptr) unless ptr.null? end |