class ConstantPointerNull

Declaration

class ConstantPointerNull : public ConstantData { /* full declaration omitted */ };

Description

A constant pointer value that points to null

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

Inherits from: ConstantData

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

Inherited from Constant:

Inherited from User:

Inherited from Value:

Methods

ConstantPointerNull(llvm::PointerType* T)

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

Parameters

llvm::PointerType* T

ConstantPointerNull(
    const llvm::ConstantPointerNull&)

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

Parameters

const llvm::ConstantPointerNull&

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

Parameters

const llvm::Value* V

void destroyConstantImpl()

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

static llvm::ConstantPointerNull* get(
    llvm::PointerType* T)

Description

Static factory methods - Return objects of the specified value

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

Parameters

llvm::PointerType* T

inline llvm::PointerType* getType() const

Description

Specialize the getType() method to always return an PointerType, which reduces the amount of casting needed in parts of the compiler.

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