LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::InvokeInst Class Reference

#include <Instructions.h>

Inheritance diagram for llvm::InvokeInst:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 InvokeInst (Value *Fn, BasicBlock *IfNormal, BasicBlock *IfException, const std::vector< Value * > &Params, const std::string &Name="", Instruction *InsertBefore=0)
 InvokeInst (Value *Fn, BasicBlock *IfNormal, BasicBlock *IfException, const std::vector< Value * > &Params, const std::string &Name, BasicBlock *InsertAtEnd)
virtual InvokeInst * clone () const
 Terminators must implement the methods required by Instruction...
bool mayWriteToMemory () const
Function * getCalledFunction () const
const Value * getCalledValue () const
Value * getCalledValue ()
const BasicBlock * getNormalDest () const
BasicBlock * getNormalDest ()
const BasicBlock * getUnwindDest () const
BasicBlock * getUnwindDest ()
void setNormalDest (BasicBlock *B)
void setUnwindDest (BasicBlock *B)
virtual const BasicBlock * getSuccessor (unsigned i) const
BasicBlock * getSuccessor (unsigned i)
virtual void setSuccessor (unsigned idx, BasicBlock *NewSucc)
 Set a successor at a given index.
virtual unsigned getNumSuccessors () const

Static Public Member Functions

static bool classof (const InvokeInst *)
static bool classof (const Instruction *I)
 Methods for support type inquiry through isa, cast, and dyn_cast:.
static bool classof (const Value *V)

Detailed Description

InvokeInst - Invoke instruction

Definition at line 1075 of file Instructions.h.


Constructor & Destructor Documentation

InvokeInst::InvokeInst (  Value *  Fn,
BasicBlock *  IfNormal,
BasicBlock *  IfException,
const std::vector< Value * > &  Params,
const std::string &  Name = "",
Instruction *  InsertBefore = 0
) 
 

Definition at line 175 of file Instructions.cpp.

References llvm::cl::init().

InvokeInst::InvokeInst (  Value *  Fn,
BasicBlock *  IfNormal,
BasicBlock *  IfException,
const std::vector< Value * > &  Params,
const std::string &  Name,
BasicBlock *  InsertAtEnd
) 
 

Definition at line 185 of file Instructions.cpp.

References llvm::cl::init().


Member Function Documentation

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

Reimplemented from llvm::TerminatorInst.

Definition at line 1145 of file Instructions.h.

References classof().

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

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

Reimplemented from llvm::TerminatorInst.

Definition at line 1142 of file Instructions.h.

References llvm::Instruction::getOpcode().

static bool llvm::InvokeInst::classof (  const InvokeInst *   )  [inline, static]
 

Definition at line 1141 of file Instructions.h.

Referenced by classof().

InvokeInst * InvokeInst::clone (   )  const [virtual]
 

Terminators must implement the methods required by Instruction...

Implements llvm::TerminatorInst.

Definition at line 820 of file Instructions.cpp.

Function* llvm::InvokeInst::getCalledFunction (   )  const [inline]
 

getCalledFunction - Return the function called, or null if this is an indirect function invocation.

Definition at line 1094 of file Instructions.h.

References llvm::User::Operands.

Value* llvm::InvokeInst::getCalledValue (   )  [inline]
 

Definition at line 1100 of file Instructions.h.

References llvm::User::Operands.

const Value* llvm::InvokeInst::getCalledValue (   )  const [inline]
 

Definition at line 1099 of file Instructions.h.

References llvm::User::Operands.

BasicBlock* llvm::InvokeInst::getNormalDest (   )  [inline]
 

Definition at line 1106 of file Instructions.h.

References llvm::User::Operands.

const BasicBlock* llvm::InvokeInst::getNormalDest (   )  const [inline]
 

Definition at line 1103 of file Instructions.h.

References llvm::User::Operands.

Referenced by getSuccessor().

virtual unsigned llvm::InvokeInst::getNumSuccessors (   )  const [inline, virtual]
 

Implements llvm::TerminatorInst.

Definition at line 1138 of file Instructions.h.

BasicBlock* llvm::InvokeInst::getSuccessor (  unsigned  i  )  [inline]
 

Reimplemented from llvm::TerminatorInst.

Definition at line 1128 of file Instructions.h.

References getNormalDest(), and getUnwindDest().

virtual const BasicBlock* llvm::InvokeInst::getSuccessor (  unsigned  i  )  const [inline, virtual]
 

Additionally, they must provide a method to get at the successors of this terminator instruction. 'idx' may not be >= the number of successors returned by getNumSuccessors()!

Implements llvm::TerminatorInst.

Definition at line 1124 of file Instructions.h.

References getNormalDest(), and getUnwindDest().

BasicBlock* llvm::InvokeInst::getUnwindDest (   )  [inline]
 

Definition at line 1112 of file Instructions.h.

References llvm::User::Operands.

const BasicBlock* llvm::InvokeInst::getUnwindDest (   )  const [inline]
 

Definition at line 1109 of file Instructions.h.

References llvm::User::Operands.

Referenced by getSuccessor().

bool llvm::InvokeInst::mayWriteToMemory (   )  const [inline, virtual]
 

mayWriteToMemory - Return true if this instruction may modify memory.

Reimplemented from llvm::Instruction.

Definition at line 1089 of file Instructions.h.

void llvm::InvokeInst::setNormalDest (  BasicBlock *  B  )  [inline]
 

Definition at line 1116 of file Instructions.h.

References llvm::User::Operands.

virtual void llvm::InvokeInst::setSuccessor (  unsigned  idx,
BasicBlock *  NewSucc
)  [inline, virtual]
 

Set a successor at a given index.

Implements llvm::TerminatorInst.

Definition at line 1133 of file Instructions.h.

References llvm::User::Operands.

void llvm::InvokeInst::setUnwindDest (  BasicBlock *  B  )  [inline]
 

Definition at line 1120 of file Instructions.h.

References llvm::User::Operands.


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