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

Inherits from: ConstantData

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 ConstantPointerNull(const llvm::ConstantPointerNull &)
  • public static bool classof(const llvm::Value * V)
  • public static llvm::ConstantPointerNull * get(llvm::PointerType * T)
  • public inline llvm::PointerType * getType() const

Inherited from ConstantData:

Inherited from Constant:

Inherited from User:

Inherited from Value:

Methods

ConstantPointerNull(
    const llvm::ConstantPointerNull&)

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

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

Parameters

const llvm::Value* V

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

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