LLVM API Documentation

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)
 ~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)

Detailed Description

InvokeInst - Invoke instruction. The SubclassData field is used to hold the calling convention of the call.

Definition at line 1324 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 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 (  ) 

Definition at line 324 of file Instructions.cpp.

References llvm::User::OperandList.


Member Function Documentation

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]

Definition at line 1356 of file Instructions.h.

References llvm::UnaryInstruction::getOperand().

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]

Definition at line 1359 of file Instructions.h.

References llvm::UnaryInstruction::getOperand().

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]

Definition at line 1362 of file Instructions.h.

References llvm::UnaryInstruction::getOperand().

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]

Definition at line 1344 of file Instructions.h.

References llvm::Value::SubclassData.

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().


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