class GetElementPtrConstantExpr

Declaration

class GetElementPtrConstantExpr : public ConstantExpr { /* full declaration omitted */ };

Description

GetElementPtrConstantExpr - This class is private to Constants.cpp, and is used behind the scenes to implement getelementpr constant exprs.

Declared at: llvm/lib/IR/ConstantsContext.h:234

Inherits from: ConstantExpr

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 llvm::GetElementPtrConstantExpr * Create(llvm::Type * SrcElementTy, llvm::Constant * C, ArrayRef<llvm::Constant *> IdxList, llvm::Type * DestTy, unsigned int Flags)
  • public static bool classof(const llvm::ConstantExpr * CE)
  • public static bool classof(const llvm::Value * V)
  • public llvm::Type * getResultElementType() const
  • public llvm::Type * getSourceElementType() const

Inherited from ConstantExpr:

Inherited from Constant:

Inherited from User:

Inherited from Value:

Methods

static llvm::GetElementPtrConstantExpr* Create(
    llvm::Type* SrcElementTy,
    llvm::Constant* C,
    ArrayRef<llvm::Constant*> IdxList,
    llvm::Type* DestTy,
    unsigned int Flags)

Declared at: llvm/lib/IR/ConstantsContext.h:242

Parameters

llvm::Type* SrcElementTy
llvm::Constant* C
ArrayRef<llvm::Constant*> IdxList
llvm::Type* DestTy
unsigned int Flags

static bool classof(const llvm::ConstantExpr* CE)

Declared at: llvm/lib/IR/ConstantsContext.h:257

Parameters

const llvm::ConstantExpr* CE

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

Declared at: llvm/lib/IR/ConstantsContext.h:260

Parameters

const llvm::Value* V

llvm::Type* getResultElementType() const

Declared at: llvm/lib/IR/ConstantsContext.h:252

llvm::Type* getSourceElementType() const

Declared at: llvm/lib/IR/ConstantsContext.h:251