sun::types::NullPointerType
class · Source (opens in a new tab)
class sun::types::NullPointerType : public sun::types::TypeNull pointer type - represents the null literal Compatible with any pointer type for assignment and comparison.
Inherits
- sun::types::Type (public)
Public Functions
NullPointerType
public · function · Source (opens in a new tab)
sun::types::NullPointerType::NullPointerType()=defaultCreates an instance with its default state.
equals
public · function · Source (opens in a new tab)
bool sun::types::NullPointerType::equals(const Type &other) const overrideReports whether the other type has the same semantic identity.
Related: Type
getKind
public · function · Source (opens in a new tab)
Kind sun::types::NullPointerType::getKind() const overrideReturns the type category used for semantic checks and dispatch.
Related: Kind
toLLVMType
public · function · Source (opens in a new tab)
llvm::Type * sun::types::NullPointerType::toLLVMType(llvm::LLVMContext &ctx) const overrideReturns opaque pointer (null is a pointer value).
toString
public · function · Source (opens in a new tab)
std::string sun::types::NullPointerType::toString() const overrideReturns a readable representation for diagnostics and debugging.
Public Fields
StaticKind
public · variable · static · Source (opens in a new tab)
Kind sun::types::NullPointerType::StaticKind = Kind::NullPointerNo documentation comment.
Related: Kind, Kind::NullPointer