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

Inherits from: ConstantExpr

Member Variables

private llvm::Type* SrcElementTy
private llvm::Type* ResElementTy

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

  • public static llvm::GetElementPtrConstantExpr * Create(llvm::Type * SrcElementTy, llvm::Constant * C, ArrayRef<llvm::Constant *> IdxList, llvm::Type * DestTy, unsigned int Flags)
  • private GetElementPtrConstantExpr(llvm::Type * SrcElementTy, llvm::Constant * C, ArrayRef<llvm::Constant *> IdxList, llvm::Type * DestTy)
  • 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:222

Parameters

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

GetElementPtrConstantExpr(
    llvm::Type* SrcElementTy,
    llvm::Constant* C,
    ArrayRef<llvm::Constant*> IdxList,
    llvm::Type* DestTy)

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

Parameters

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

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

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

Parameters

const llvm::ConstantExpr* CE

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

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

Parameters

const llvm::Value* V

llvm::Type* getResultElementType() const

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

llvm::Type* getSourceElementType() const

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