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?, #remove_attribute, to_ptr, #to_s, #type, type, #undefined?
Methods included from PointerIdentity
Instance Method Details
#next ⇒ Object
Returns the next instruction after this one.
955 956 957 958 |
# File 'lib/llvm/core/value.rb', line 955 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).
949 950 951 952 |
# File 'lib/llvm/core/value.rb', line 949 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.
961 962 963 964 |
# File 'lib/llvm/core/value.rb', line 961 def previous ptr = C.get_previous_instruction(self) LLVM::Instruction.from_ptr(ptr) unless ptr.null? end |