LLVM API Documentation

llvm::UndefValue Class Reference

#include <Constants.h>

Inheritance diagram for llvm::UndefValue:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual bool isNullValue () const
virtual void destroyConstant ()

Static Public Member Functions

static UndefValueget (const Type *T)
static bool classof (const UndefValue *)
 Methods for support type inquiry through isa, cast, and dyn_cast:.
static bool classof (const Value *V)

Protected Member Functions

 UndefValue (const Type *T)

Friends

struct ConstantCreator< UndefValue, Type, char >

Detailed Description

UndefValue - 'undef' values are things that do not have specified contents. These are used for a variety of purposes, including global variable initializers and operands to instructions. 'undef' values can occur with any type.

Definition at line 652 of file Constants.h.


Constructor & Destructor Documentation

llvm::UndefValue::UndefValue ( const Type T  )  [inline, protected]

Definition at line 656 of file Constants.h.


Member Function Documentation

UndefValue * UndefValue::get ( const Type T  )  [static]

get() - Static factory methods - Return an 'undef' object of the specified type.

Definition at line 1265 of file Constants.cpp.

References UndefValueConstants.

Referenced by llvm::CloneAndPruneFunctionInto(), llvm::ConstantFoldBinaryInstruction(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldExtractElementInstruction(), llvm::ConstantFoldGetElementPtr(), llvm::ConstantFoldInsertElementInstruction(), llvm::ConstantFoldLoadThroughGEPConstantExpr(), llvm::ConvertConstantType< UndefValue, Type >::convert(), llvm::PHINode::hasConstantValue(), llvm::InlineFunction(), llvm::BytecodeReader::ParseConstantPoolValue(), llvm::PHINode::removeIncomingValue(), llvm::BasicBlock::removePredecessor(), ReplaceUsesOfGEPInst(), llvm::SimplifyCFG(), and llvm::UpgradeIntrinsicCall().

virtual bool llvm::UndefValue::isNullValue (  )  const [inline, virtual]

isNullValue - Return true if this is the value that would be returned by getNullValue.

Implements llvm::Constant.

Definition at line 665 of file Constants.h.

void UndefValue::destroyConstant (  )  [virtual]

destroyConstant - Called if some element of this constant is no longer valid. At this point only other constants may be on the use_list for this constant. Any constants on our Use list must also be destroy'd. The implementation must be sure to remove the constant from the list of available cached constants. Implementations should call destroyConstantImpl as the last thing they do, to destroy all users and delete this.

Reimplemented from llvm::Constant.

Definition at line 1271 of file Constants.cpp.

References llvm::Constant::destroyConstantImpl(), and UndefValueConstants.

Referenced by llvm::ConvertConstantType< UndefValue, Type >::convert().

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

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

Definition at line 670 of file Constants.h.

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

Reimplemented from llvm::Constant.

Definition at line 671 of file Constants.h.

References llvm::Value::UndefValueVal, and V.


Friends And Related Function Documentation

friend struct ConstantCreator< UndefValue, Type, char > [friend]

Definition at line 653 of file Constants.h.


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