LLVM API Documentation
#include <Constants.h>
Inheritance diagram for llvm::ConstantAggregateZero:
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 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 317 of file Constants.h.
|
Definition at line 321 of file Constants.h. |
|
Reimplemented from llvm::Constant. Definition at line 339 of file Constants.h. References llvm::Value::ConstantAggregateZeroVal, and llvm::Value::getValueType(). |
|
Methods for support type inquiry through isa, cast, and dyn_cast: Definition at line 338 of file Constants.h. |
|
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(). |
|
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(). |
|
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. |
|
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(). |
|
Definition at line 318 of file Constants.h. |