getSuccessor: Get different aspects of a Branch Instruction

getSuccessorR Documentation

Get different aspects of a Branch Instruction

Description

These functions allow us to query a Branch instruction. We can determine if this is a conditional branch, get the condition for the branch, or retrieve the different locations the Branch could follow.

Usage

getSuccessor(x, ...)
getNumSuccessors(x)
getCondition(x)

Arguments

x

the BasicBlock, BranchInst object

...

for a BasicBlock, single controls whether we call the getSingleSuccessor method or the getUniqueSuccessor() method for the block. For a BranchInst, an integer specifying the index/position of the successor to query (count starting at 1)

Author(s)

Duncan Temple Lang


duncantl/Rllvm documentation built on April 23, 2024, 6:14 p.m.