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

#include <Constants.h>

Inheritance diagram for llvm::ConstantAggregateZero:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual bool isNullValue () const
virtual void destroyConstant ()
virtual void replaceUsesOfWithOnConstant (Value *From, Value *To, bool DisableChecking=false)

Static Public Member Functions

static Constantget (const Type *Ty)
static bool classof (const ConstantAggregateZero *)
static bool classof (const Value *V)

Protected Member Functions

 ConstantAggregateZero (const Type *Ty)

Friends

struct ConstantCreator< ConstantAggregateZero, Type, char >

Detailed Description

ConstantAggregateZero - All zero aggregate value

Definition at line 317 of file Constants.h.


Constructor & Destructor Documentation

llvm::ConstantAggregateZero::ConstantAggregateZero const Type Ty  )  [inline, protected]
 

Definition at line 321 of file Constants.h.


Member Function Documentation

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

Reimplemented from llvm::Constant.

Definition at line 339 of file Constants.h.

References llvm::Value::ConstantAggregateZeroVal, and llvm::Value::getValueType().

static bool llvm::ConstantAggregateZero::classof const ConstantAggregateZero  )  [inline, static]
 

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

Definition at line 338 of file Constants.h.

void ConstantAggregateZero::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 849 of file Constants.cpp.

References llvm::Constant::destroyConstantImpl().

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

Constant * ConstantAggregateZero::get const Type Ty  )  [static]
 

get() - static factory method for creating a null aggregate. It is illegal to call this method with a non-aggregate type.

Definition at line 843 of file Constants.cpp.

Referenced by llvm::ConvertConstantType< ConstantAggregateZero, Type >::convert(), llvm::ConstantPacked::get(), llvm::ConstantStruct::get(), llvm::ConstantArray::get(), and llvm::Constant::getNullValue().

virtual bool llvm::ConstantAggregateZero::isNullValue  )  const [inline, virtual]
 

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

Implements llvm::Constant.

Definition at line 330 of file Constants.h.

void ConstantAggregateZero::replaceUsesOfWithOnConstant Value From,
Value To,
bool  DisableChecking = false
[virtual]
 

replaceUsesOfWithOnConstant - This method is a special form of User::replaceUsesOfWith (which does not work on constants) that does work on constants. Basically this method goes through the trouble of building a new constant that is equivalent to the current one, with all uses of From replaced with uses of To. After this construction is completed, all of the users of 'this' are replaced to use the new constant, and then 'this' is deleted. In general, you should not call this method, instead, use Value::replaceAllUsesWith, which automatically dispatches to this method as needed.

Reimplemented from llvm::Constant.

Definition at line 854 of file Constants.cpp.

References abort().


Friends And Related Function Documentation

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

Definition at line 318 of file Constants.h.


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