LLVM API Documentation
#include <Constants.h>
Inheritance diagram for llvm::ConstantAggregateZero:
Public Member Functions | |
virtual bool | isNullValue () const |
virtual void | destroyConstant () |
Static Public Member Functions | |
static Constant * | get (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 > |
Definition at line 309 of file Constants.h.
llvm::ConstantAggregateZero::ConstantAggregateZero | ( | const Type * | Ty | ) | [inline, protected] |
Definition at line 313 of file Constants.h.
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().
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.
friend struct ConstantCreator< ConstantAggregateZero, Type, char > [friend] |
Definition at line 310 of file Constants.h.