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::UnreachableInst Class Reference

#include <Instructions.h>

Inheritance diagram for llvm::UnreachableInst:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 UnreachableInst (Instruction *InsertBefore=0)
 UnreachableInst (BasicBlock *InsertAtEnd)
virtual UnreachableInst * clone () const
 Terminators must implement the methods required by Instruction...
virtual const BasicBlock * getSuccessor (unsigned idx) const
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 UnreachableInst *)
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

UnreachableInst - This function has undefined behavior. In particular, the presence of this instruction indicates some higher level knowledge that the end of the block cannot be reached.

Definition at line 1197 of file Instructions.h.


Constructor & Destructor Documentation

llvm::UnreachableInst::UnreachableInst (  Instruction *  InsertBefore = 0  )  [inline]
 

Definition at line 1199 of file Instructions.h.

Referenced by clone().

llvm::UnreachableInst::UnreachableInst (  BasicBlock *  InsertAtEnd  )  [inline]
 

Definition at line 1202 of file Instructions.h.


Member Function Documentation

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

Reimplemented from llvm::TerminatorInst.

Definition at line 1221 of file Instructions.h.

References classof().

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

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

Reimplemented from llvm::TerminatorInst.

Definition at line 1218 of file Instructions.h.

References llvm::Instruction::getOpcode().

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

Definition at line 1217 of file Instructions.h.

Referenced by classof().

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

Terminators must implement the methods required by Instruction...

Implements llvm::TerminatorInst.

Definition at line 822 of file Instructions.cpp.

References UnreachableInst().

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

Implements llvm::TerminatorInst.

Definition at line 1214 of file Instructions.h.

virtual const BasicBlock* llvm::UnreachableInst::getSuccessor (  unsigned  idx  )  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 1208 of file Instructions.h.

References abort().

void UnreachableInst::setSuccessor (  unsigned  idx,
BasicBlock *  NewSucc
)  [virtual]
 

Set a successor at a given index.

Implements llvm::TerminatorInst.

Definition at line 234 of file Instructions.cpp.


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