LLVM  mainline
Public Member Functions | Static Public Member Functions | Protected Member Functions
llvm::IndirectBrInst Class Reference

IndirectBrInst - Indirect Branch Instruction. More...

#include <Instructions.h>

Inheritance diagram for llvm::IndirectBrInst:
Inheritance graph
[legend]
Collaboration diagram for llvm::IndirectBrInst:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DECLARE_TRANSPARENT_OPERAND_ACCESSORS (Value)
 Provide fast operand accessors.
ValuegetAddress ()
const ValuegetAddress () const
void setAddress (Value *V)
unsigned getNumDestinations () const
 getNumDestinations - return the number of possible destinations in this indirectbr instruction.
BasicBlockgetDestination (unsigned i)
 getDestination - Return the specified destination.
const BasicBlockgetDestination (unsigned i) const
void addDestination (BasicBlock *Dest)
 addDestination - Add a destination.
void removeDestination (unsigned i)
 removeDestination - This method removes the specified successor from the indirectbr instruction.
unsigned getNumSuccessors () const
 Return the number of successors that this terminator has.
BasicBlockgetSuccessor (unsigned i) const
 Return the specified successor.
void setSuccessor (unsigned i, BasicBlock *NewSucc)
 Update the specified successor to point at the provided block.

Static Public Member Functions

static IndirectBrInstCreate (Value *Address, unsigned NumDests, Instruction *InsertBefore=nullptr)
static IndirectBrInstCreate (Value *Address, unsigned NumDests, BasicBlock *InsertAtEnd)
static bool classof (const Instruction *I)
static bool classof (const Value *V)
 Methods for support type inquiry through isa, cast, and dyn_cast:

Protected Member Functions

IndirectBrInstclone_impl () const override

Detailed Description

IndirectBrInst - Indirect Branch Instruction.

Definition at line 2999 of file Instructions.h.


Member Function Documentation

addDestination - Add a destination.

Definition at line 3414 of file Instructions.cpp.

References llvm::User::getNumOperands(), llvm::User::getOperandList(), and llvm::User::setNumHungOffUseOperands().

static bool llvm::IndirectBrInst::classof ( const Instruction I) [inline, static]

Reimplemented from llvm::TerminatorInst.

Definition at line 3070 of file Instructions.h.

References llvm::Instruction::getOpcode().

static bool llvm::IndirectBrInst::classof ( const Value V) [inline, static]

Methods for support type inquiry through isa, cast, and dyn_cast:

Reimplemented from llvm::TerminatorInst.

Definition at line 3073 of file Instructions.h.

IndirectBrInst * IndirectBrInst::clone_impl ( ) const [override, protected, virtual]

Implements llvm::Instruction.

Definition at line 3617 of file Instructions.cpp.

static IndirectBrInst* llvm::IndirectBrInst::Create ( Value Address,
unsigned  NumDests,
Instruction InsertBefore = nullptr 
) [inline, static]
static IndirectBrInst* llvm::IndirectBrInst::Create ( Value Address,
unsigned  NumDests,
BasicBlock InsertAtEnd 
) [inline, static]

Definition at line 3031 of file Instructions.h.

Provide fast operand accessors.

Definition at line 3040 of file Instructions.h.

Referenced by llvm::Interpreter::visitIndirectBrInst().

Definition at line 3041 of file Instructions.h.

getDestination - Return the specified destination.

Definition at line 3050 of file Instructions.h.

Definition at line 3051 of file Instructions.h.

getNumDestinations - return the number of possible destinations in this indirectbr instruction.

Definition at line 3047 of file Instructions.h.

Return the number of successors that this terminator has.

Reimplemented from llvm::TerminatorInst.

Definition at line 3061 of file Instructions.h.

Return the specified successor.

Reimplemented from llvm::TerminatorInst.

Definition at line 3062 of file Instructions.h.

removeDestination - This method removes the specified successor from the indirectbr instruction.

Definition at line 3426 of file Instructions.cpp.

References llvm::User::getNumOperands(), llvm::User::getOperandList(), llvm::Use::set(), and llvm::User::setNumHungOffUseOperands().

void llvm::IndirectBrInst::setAddress ( Value V) [inline]

Definition at line 3042 of file Instructions.h.

void llvm::IndirectBrInst::setSuccessor ( unsigned  idx,
BasicBlock B 
) [inline]

Update the specified successor to point at the provided block.

Reimplemented from llvm::TerminatorInst.

Definition at line 3065 of file Instructions.h.


The documentation for this class was generated from the following files: