class PtrToIntInst

Declaration

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

Description

This class represents a cast from a pointer to an integer.

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

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

PtrToIntInst(
    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:5182

Parameters

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

PtrToIntInst(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:5190

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

Parameters

const llvm::Instruction* I

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

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

Parameters

const llvm::Value* V

llvm::PtrToIntInst* cloneImpl() const

Description

Clone an identical PtrToIntInst.

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

unsigned int getPointerAddressSpace() const

Description

Returns the address space of the pointer operand.

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

llvm::Value* getPointerOperand()

Description

Gets the pointer operand.

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

const llvm::Value* getPointerOperand() const

Description

Gets the pointer operand.

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

static unsigned int getPointerOperandIndex()

Description

Gets the operand index of the pointer operand.

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