LLVM API Documentation
#include <Instructions.h>
Inheritance diagram for llvm::InvokeInst:
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) | |
~InvokeInst () | |
virtual InvokeInst * | clone () const |
bool | mayWriteToMemory () const |
unsigned | getCallingConv () const |
void | setCallingConv (unsigned CC) |
Function * | getCalledFunction () const |
Value * | getCalledValue () const |
BasicBlock * | getNormalDest () const |
BasicBlock * | getUnwindDest () const |
void | setNormalDest (BasicBlock *B) |
void | setUnwindDest (BasicBlock *B) |
BasicBlock * | getSuccessor (unsigned i) const |
void | setSuccessor (unsigned idx, BasicBlock *NewSucc) |
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) |
Definition at line 1324 of file Instructions.h.
InvokeInst::InvokeInst | ( | Value * | Fn, | |
BasicBlock * | IfNormal, | |||
BasicBlock * | IfException, | |||
const std::vector< Value * > & | Params, | |||
const std::string & | Name = "" , |
|||
Instruction * | InsertBefore = 0 | |||
) |
Definition at line 346 of file Instructions.cpp.
InvokeInst::InvokeInst | ( | Value * | Fn, | |
BasicBlock * | IfNormal, | |||
BasicBlock * | IfException, | |||
const std::vector< Value * > & | Params, | |||
const std::string & | Name, | |||
BasicBlock * | InsertAtEnd | |||
) |
Definition at line 356 of file Instructions.cpp.
InvokeInst::~InvokeInst | ( | ) |
static bool llvm::InvokeInst::classof | ( | const Value * | V | ) | [inline, static] |
Reimplemented from llvm::TerminatorInst.
Definition at line 1390 of file Instructions.h.
References llvm::CastInst::classof(), and V.
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 1387 of file Instructions.h.
References llvm::Instruction::getOpcode().
static bool llvm::InvokeInst::classof | ( | const InvokeInst * | ) | [inline, static] |
Definition at line 1386 of file Instructions.h.
InvokeInst * InvokeInst::clone | ( | ) | const [virtual] |
clone() - Create a copy of 'this' instruction that is identical in all ways except the following: The instruction has no parent The instruction has no name
Implements llvm::TerminatorInst.
Definition at line 1293 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 1351 of file Instructions.h.
References llvm::UnaryInstruction::getOperand().
Value* llvm::InvokeInst::getCalledValue | ( | ) | const [inline] |
unsigned llvm::InvokeInst::getCallingConv | ( | ) | const [inline] |
getCallingConv/setCallingConv - Get or set the calling convention of this function call.
Definition at line 1343 of file Instructions.h.
References llvm::Value::SubclassData.
BasicBlock* llvm::InvokeInst::getNormalDest | ( | ) | const [inline] |
unsigned llvm::InvokeInst::getNumSuccessors | ( | ) | const [inline] |
getNumSuccessors - Return the number of successors that this terminator has.
Reimplemented from llvm::TerminatorInst.
Definition at line 1383 of file Instructions.h.
BasicBlock* llvm::InvokeInst::getSuccessor | ( | unsigned | i | ) | const [inline] |
getSuccessor - Return the specified successor.
Reimplemented from llvm::TerminatorInst.
Definition at line 1373 of file Instructions.h.
BasicBlock* llvm::InvokeInst::getUnwindDest | ( | ) | const [inline] |
bool llvm::InvokeInst::mayWriteToMemory | ( | ) | const [inline, virtual] |
mayWriteToMemory - Return true if this instruction may modify memory.
Reimplemented from llvm::Instruction.
Definition at line 1339 of file Instructions.h.
void llvm::InvokeInst::setCallingConv | ( | unsigned | CC | ) | [inline] |
void llvm::InvokeInst::setNormalDest | ( | BasicBlock * | B | ) | [inline] |
Definition at line 1365 of file Instructions.h.
References B, and llvm::UnaryInstruction::setOperand().
void llvm::InvokeInst::setSuccessor | ( | unsigned | idx, | |
BasicBlock * | NewSucc | |||
) | [inline] |
setSuccessor - Update the specified successor to point at the provided block.
Reimplemented from llvm::TerminatorInst.
Definition at line 1378 of file Instructions.h.
References llvm::UnaryInstruction::setOperand().
void llvm::InvokeInst::setUnwindDest | ( | BasicBlock * | B | ) | [inline] |
Definition at line 1369 of file Instructions.h.
References B, and llvm::UnaryInstruction::setOperand().