class ConstantArray

Declaration

class ConstantArray : public ConstantAggregate { /* full declaration omitted */ };

Description

ConstantArray - Constant Array Declarations

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

Inherits from: ConstantAggregate

Member Variables

Inherited from Value:

protected SubclassOptionalData
protected NumUserOperands
protected IsUsedByMD
protected HasName
protected HasHungOffUses
protected HasDescriptor
public static MaxAlignmentExponent = 29
public static MaximumAlignment = 1U << MaxAlignmentExponent

Method Overview

  • public static bool classof(const llvm::Value * V)
  • public static llvm::Constant * get(llvm::ArrayType * T, ArrayRef<llvm::Constant *> V)
  • public inline llvm::ArrayType * getType() const

Inherited from ConstantAggregate:

Inherited from Constant:

Inherited from User:

Inherited from Value:

Methods

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:437

Parameters

const llvm::Value* V

static llvm::Constant* get(
    llvm::ArrayType* T,
    ArrayRef<llvm::Constant*> V)

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

Parameters

llvm::ArrayType* T
ArrayRef<llvm::Constant*> V

inline llvm::ArrayType* getType() const

Description

Specialize the getType() method to always return an ArrayType, which reduces the amount of casting needed in parts of the compiler.

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