LLVM API Documentation

Public Member Functions | Static Public Member Functions | Protected Member Functions
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

void destroyConstant () override
ConstantgetSequentialElement () const
ConstantgetStructElement (unsigned Elt) const
ConstantgetElementValue (Constant *C) const
ConstantgetElementValue (unsigned Idx) const

Static Public Member Functions

static ConstantAggregateZeroget (Type *Ty)
static bool classof (const Value *V)

Protected Member Functions

 ConstantAggregateZero (Type *ty)
void * operator new (size_t s)

Detailed Description

ConstantAggregateZero - All zero aggregate value

Definition at line 293 of file Constants.h.


Constructor & Destructor Documentation

llvm::ConstantAggregateZero::ConstantAggregateZero ( Type ty) [inline, explicit, protected]

Definition at line 297 of file Constants.h.


Member Function Documentation

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

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

Reimplemented from llvm::Constant.

Definition at line 327 of file Constants.h.

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

void ConstantAggregateZero::destroyConstant ( ) [override, virtual]

getElementValue - Return a zero of the right value for the specified GEP index.

getElementValue - Return a zero of the right value for the specified GEP index if we can, otherwise return null (e.g. if C is a ConstantExpr).

Definition at line 755 of file Constants.cpp.

References getSequentialElement(), getStructElement(), and llvm::Value::getType().

getElementValue - Return a zero of the right value for the specified GEP index.

Definition at line 763 of file Constants.cpp.

References getSequentialElement(), getStructElement(), and llvm::Value::getType().

getSequentialElement - If this CAZ has array or vector type, return a zero with the right element type.

Definition at line 743 of file Constants.cpp.

References llvm::Constant::getNullValue(), and llvm::Value::getType().

Referenced by getElementValue().

getStructElement - If this CAZ has struct type, return a zero with the right element type for the specified element.

Definition at line 749 of file Constants.cpp.

References llvm::Constant::getNullValue(), and llvm::Value::getType().

Referenced by getElementValue().

void* llvm::ConstantAggregateZero::operator new ( size_t  s) [inline, protected]

Reimplemented from llvm::User.

Definition at line 301 of file Constants.h.


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