LLVM API Documentation

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 UnreachableInstclone () const
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 1459 of file Instructions.h.


Constructor & Destructor Documentation

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

Definition at line 1461 of file Instructions.h.

Referenced by clone().

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

Definition at line 1464 of file Instructions.h.


Member Function Documentation

UnreachableInst * UnreachableInst::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 1342 of file Instructions.cpp.

References UnreachableInst().

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

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

Reimplemented from llvm::TerminatorInst.

Definition at line 1470 of file Instructions.h.

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

Definition at line 1473 of file Instructions.h.

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

References llvm::Instruction::getOpcode().

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

Reimplemented from llvm::TerminatorInst.

Definition at line 1477 of file Instructions.h.

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


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