LLVM API Documentation

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 ()

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 309 of file Constants.h.


Constructor & Destructor Documentation

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

Definition at line 313 of file Constants.h.


Member Function Documentation

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

Reimplemented from llvm::Constant.

Definition at line 329 of file Constants.h.

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

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

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

Definition at line 328 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 871 of file Constants.cpp.

References AggZeroConstants, and 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 865 of file Constants.cpp.

References AggZeroConstants.

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

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 322 of file Constants.h.


Friends And Related Function Documentation

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

Definition at line 310 of file Constants.h.


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