class ConstantAggregateZero

Declaration

class ConstantAggregateZero : public ConstantData { /* full declaration omitted */ };

Description

All zero aggregate value

Declared at: llvm/include/llvm/IR/Constants.h:337

Inherits from: ConstantData

Member Variables

Inherited from Value:

protected SubclassOptionalData
protected NumUserOperands
protected IsUsedByMD
protected HasName
protected HasMetadata
protected HasHungOffUses
protected HasDescriptor
public static MaxAlignmentExponent = 32
public static MaximumAlignment = 1ULL << MaxAlignmentExponent

Method Overview

Inherited from ConstantData:

Inherited from Constant:

Inherited from User:

Inherited from Value:

Methods

ConstantAggregateZero(llvm::Type* Ty)

Declared at: llvm/include/llvm/IR/Constants.h:340

Parameters

llvm::Type* Ty

ConstantAggregateZero(
    const llvm::ConstantAggregateZero&)

Declared at: llvm/include/llvm/IR/Constants.h:346

Parameters

const llvm::ConstantAggregateZero&

static bool classof(const llvm::Value* V)

Description

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

Declared at: llvm/include/llvm/IR/Constants.h:370

Parameters

const llvm::Value* V

void destroyConstantImpl()

Declared at: llvm/include/llvm/IR/Constants.h:343

static llvm::ConstantAggregateZero* get(
    llvm::Type* Ty)

Declared at: llvm/include/llvm/IR/Constants.h:348

Parameters

llvm::Type* Ty

llvm::ElementCount getElementCount() const

Description

Return the number of elements in the array, vector, or struct.

Declared at: llvm/include/llvm/IR/Constants.h:366

llvm::Constant* getElementValue(
    llvm::Constant* C) const

Description

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

Declared at: llvm/include/llvm/IR/Constants.h:360

Parameters

llvm::Constant* C

llvm::Constant* getElementValue(
    unsigned int Idx) const

Description

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

Declared at: llvm/include/llvm/IR/Constants.h:363

Parameters

unsigned int Idx

llvm::Constant* getSequentialElement() const

Description

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

Declared at: llvm/include/llvm/IR/Constants.h:352

llvm::Constant* getStructElement(
    unsigned int Elt) const

Description

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

Declared at: llvm/include/llvm/IR/Constants.h:356

Parameters

unsigned int Elt