InstructionTerminatorValue

Functions in this group only apply to instructions that map to llvm::TerminatorInst instances.

Alias This

value

Members

Functions

asInstr
auto asInstr()
Undocumented in source. Be warned that the author may not have intended to support it.
asUser
UserValue asUser()
Undocumented in source. Be warned that the author may not have intended to support it.
asValue
auto asValue()
Undocumented in source. Be warned that the author may not have intended to support it.
condition
Value condition()

Return the condition of a branch instruction.

isConditional
bool isConditional()

Return if a branch is conditional.

setSuccessor
void setSuccessor(size_t idx, BasicBlock bb)

Update the specified successor to point at the provided block.

successor
BasicBlock successor(size_t idx)
successors
auto successors()
switchDefaultDest
BasicBlock switchDefaultDest()

Obtain the default destination basic block of a switch instruction.

Variables

value
LxInstructionTerminatorValue value;
Undocumented in source.

Meta