Class: LLVM::Instruction
Direct Known Subclasses
Instance Method Summary collapse
-
#next ⇒ Object
Returns the next instruction after this one.
- #opcode ⇒ Object
-
#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, #allocated_type, #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.
976 977 978 979 |
# File 'lib/llvm/core/value.rb', line 976 def next ptr = C.get_next_instruction(self) LLVM::Instruction.from_ptr(ptr) unless ptr.null? end |
#opcode ⇒ Object
987 988 989 |
# File 'lib/llvm/core/value.rb', line 987 def opcode C.get_instruction_opcode(self) end |
#parent ⇒ Object
Returns the parent of the instruction (a BasicBlock).
970 971 972 973 |
# File 'lib/llvm/core/value.rb', line 970 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.
982 983 984 985 |
# File 'lib/llvm/core/value.rb', line 982 def previous ptr = C.get_previous_instruction(self) LLVM::Instruction.from_ptr(ptr) unless ptr.null? end |