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 InvokeInstclone () const
bool mayWriteToMemory () const
unsigned getCallingConv () const
void setCallingConv (unsigned CC)
FunctiongetCalledFunction () const
ValuegetCalledValue () const
BasicBlockgetNormalDest () const
BasicBlockgetUnwindDest () const
void setNormalDest (BasicBlock *B)
void setUnwindDest (BasicBlock *B)
BasicBlockgetSuccessor (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 1339 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 373 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 383 of file Instructions.cpp.

InvokeInst::~InvokeInst (  ) 

Definition at line 346 of file Instructions.cpp.

References llvm::User::OperandList.


Member Function Documentation

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 1340 of file Instructions.cpp.

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

mayWriteToMemory - Return true if this instruction may modify memory.

Reimplemented from llvm::Instruction.

Definition at line 1354 of file Instructions.h.

unsigned llvm::InvokeInst::getCallingConv (  )  const [inline]

getCallingConv/setCallingConv - Get or set the calling convention of this function call.

Definition at line 1358 of file Instructions.h.

References llvm::Value::SubclassData.

void llvm::InvokeInst::setCallingConv ( unsigned  CC  )  [inline]

Definition at line 1359 of file Instructions.h.

References llvm::Value::SubclassData.

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

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

Definition at line 1366 of file Instructions.h.

References llvm::UnaryInstruction::getOperand().

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

Definition at line 1371 of file Instructions.h.

References llvm::UnaryInstruction::getOperand().

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

Definition at line 1374 of file Instructions.h.

References llvm::UnaryInstruction::getOperand().

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

Definition at line 1377 of file Instructions.h.

References llvm::UnaryInstruction::getOperand().

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

Definition at line 1380 of file Instructions.h.

References B, and llvm::UnaryInstruction::setOperand().

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

Definition at line 1384 of file Instructions.h.

References B, and llvm::UnaryInstruction::setOperand().

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

getSuccessor - Return the specified successor.

Reimplemented from llvm::TerminatorInst.

Definition at line 1388 of file Instructions.h.

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 1393 of file Instructions.h.

References llvm::UnaryInstruction::setOperand().

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

getNumSuccessors - Return the number of successors that this terminator has.

Reimplemented from llvm::TerminatorInst.

Definition at line 1398 of file Instructions.h.

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

Definition at line 1401 of file Instructions.h.

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 1402 of file Instructions.h.

References llvm::Instruction::getOpcode().

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

Reimplemented from llvm::TerminatorInst.

Definition at line 1405 of file Instructions.h.

References llvm::CastInst::classof(), and V.


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