class ConstantArray

Declaration

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

Description

ConstantArray - Constant Array Declarations

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

Inherits from: ConstantAggregate

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

  • private ConstantArray(llvm::ArrayType * T, ArrayRef<llvm::Constant *> Val)
  • public static bool classof(const llvm::Value * V)
  • private void destroyConstantImpl()
  • public static llvm::Constant * get(llvm::ArrayType * T, ArrayRef<llvm::Constant *> V)
  • private static llvm::Constant * getImpl(llvm::ArrayType * T, ArrayRef<llvm::Constant *> V)
  • public inline llvm::ArrayType * getType() const
  • private llvm::Value * handleOperandChangeImpl(llvm::Value * From, llvm::Value * To)

Inherited from ConstantAggregate:

Inherited from Constant:

Inherited from User:

Inherited from Value:

Methods

ConstantArray(llvm::ArrayType* T,
              ArrayRef<llvm::Constant*> Val)

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

Parameters

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

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

Parameters

const llvm::Value* V

void destroyConstantImpl()

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

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

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

Parameters

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

static llvm::Constant* getImpl(
    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:429

llvm::Value* handleOperandChangeImpl(
    llvm::Value* From,
    llvm::Value* To)

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

Parameters

llvm::Value* From
llvm::Value* To