LLVM API Documentation

Public Member Functions | Static Public Member Functions | Protected Member Functions
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

void * operator new (size_t s)
 UnreachableInst (LLVMContext &C, Instruction *InsertBefore=nullptr)
 UnreachableInst (LLVMContext &C, BasicBlock *InsertAtEnd)
unsigned getNumSuccessors () const
 Return the number of successors that this terminator has.

Static Public Member Functions

static bool classof (const Instruction *I)
static bool classof (const Value *V)
 Methods for support type inquiry through isa, cast, and dyn_cast:

Protected Member Functions

UnreachableInstclone_impl () const override

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


Constructor & Destructor Documentation

UnreachableInst::UnreachableInst ( LLVMContext C,
Instruction InsertBefore = nullptr 
) [explicit]

Definition at line 700 of file Instructions.cpp.

Referenced by clone_impl().

UnreachableInst::UnreachableInst ( LLVMContext C,
BasicBlock InsertAtEnd 
) [explicit]

Definition at line 705 of file Instructions.cpp.


Member Function Documentation

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

Reimplemented from llvm::TerminatorInst.

Definition at line 3314 of file Instructions.h.

References llvm::Instruction::getOpcode().

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

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

Reimplemented from llvm::TerminatorInst.

Definition at line 3317 of file Instructions.h.

UnreachableInst * UnreachableInst::clone_impl ( ) const [override, protected, virtual]

Implements llvm::TerminatorInst.

Definition at line 3786 of file Instructions.cpp.

References llvm::Value::getContext(), and UnreachableInst().

Return the number of successors that this terminator has.

Reimplemented from llvm::TerminatorInst.

Definition at line 3311 of file Instructions.h.

void* llvm::UnreachableInst::operator new ( size_t  s) [inline]

Reimplemented from llvm::User.

Definition at line 3305 of file Instructions.h.


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