llvm::AMDGPU::getNullPointerValue

Get the null pointer value for the given address space.

Synopsis

Declared in <llvm/Support/AMDGPUAddrSpace.h>

constexpr
int64_t
getNullPointerValue(unsigned int AS);

Return Value

-1 for private, local, or region; otherwise 0.

Parameters

NameDescription
ASThe LLVM address space ID.