class AddrSpaceCastInst

Declaration

class AddrSpaceCastInst : public CastInst { /* full declaration omitted */ };

Description

This class represents a conversion between pointers from one address space to another.

Declared at: llvm/include/llvm/IR/Instructions.h:5263

Inherits from: CastInst

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

Inherited from UnaryInstruction:

Inherited from Instruction:

Inherited from User:

Inherited from Value:

Methods

AddrSpaceCastInst(
    llvm::Value* S,
    llvm::Type* Ty,
    const llvm::Twine& NameStr = "",
    llvm::Instruction* InsertBefore = nullptr)

Description

Constructor with insert-before-instruction semantics

Declared at: llvm/include/llvm/IR/Instructions.h:5273

Parameters

llvm::Value* S
llvm::Type* Ty
const llvm::Twine& NameStr = ""
llvm::Instruction* InsertBefore = nullptr

AddrSpaceCastInst(llvm::Value* S,
                  llvm::Type* Ty,
                  const llvm::Twine& NameStr,
                  llvm::BasicBlock* InsertAtEnd)

Description

Constructor with insert-at-end-of-block semantics

Declared at: llvm/include/llvm/IR/Instructions.h:5281

Parameters

llvm::Value* S
llvm::Type* Ty
const llvm::Twine& NameStr
llvm::BasicBlock* InsertAtEnd

static bool classof(const llvm::Instruction* I)

Declared at: llvm/include/llvm/IR/Instructions.h:5289

Parameters

const llvm::Instruction* I

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

Declared at: llvm/include/llvm/IR/Instructions.h:5292

Parameters

const llvm::Value* V

llvm::AddrSpaceCastInst* cloneImpl() const

Description

Clone an identical AddrSpaceCastInst.

Declared at: llvm/include/llvm/IR/Instructions.h:5269

unsigned int getDestAddressSpace() const

Description

Returns the address space of the result.

Declared at: llvm/include/llvm/IR/Instructions.h:5317

llvm::Value* getPointerOperand()

Description

Gets the pointer operand.

Declared at: llvm/include/llvm/IR/Instructions.h:5297

const llvm::Value* getPointerOperand() const

Description

Gets the pointer operand.

Declared at: llvm/include/llvm/IR/Instructions.h:5302

static unsigned int getPointerOperandIndex()

Description

Gets the operand index of the pointer operand.

Declared at: llvm/include/llvm/IR/Instructions.h:5307

unsigned int getSrcAddressSpace() const

Description

Returns the address space of the pointer operand.

Declared at: llvm/include/llvm/IR/Instructions.h:5312