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
Collaboration diagram for llvm::UnreachableInst:
Collaboration graph

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

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

Constructor & Destructor Documentation

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

Definition at line 699 of file Instructions.cpp.

Referenced by clone_impl().

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

Definition at line 704 of file Instructions.cpp.

Member Function Documentation

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

Reimplemented from llvm::TerminatorInst.

Definition at line 3316 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 3319 of file Instructions.h.

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

Implements llvm::TerminatorInst.

Definition at line 3752 of file Instructions.cpp.

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

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

Reimplemented from llvm::TerminatorInst.

Definition at line 3313 of file Instructions.h.

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

Reimplemented from llvm::User.

Definition at line 3307 of file Instructions.h.

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