class Address

Declaration

class Address { /* full declaration omitted */ };

Description

An aligned address.

Declared at: clang/lib/CodeGen/Address.h:74

Member Variables

private AddressImpl<void> A

Method Overview

  • protected Address(std::nullptr_t)
  • public Address(llvm::Value * Pointer, llvm::Type * ElementType, clang::CharUnits Alignment)
  • public unsigned int getAddressSpace() const
  • public clang::CharUnits getAlignment() const
  • public llvm::Type * getElementType() const
  • public llvm::StringRef getName() const
  • public llvm::Value * getPointer() const
  • public llvm::PointerType * getType() const
  • public static clang::CodeGen::Address invalid()
  • public bool isValid() const
  • public clang::CodeGen::Address withAlignment(clang::CharUnits NewAlignment) const
  • public clang::CodeGen::Address withPointer(llvm::Value * NewPointer) const

Methods

Address(std::nullptr_t)

Declared at: clang/lib/CodeGen/Address.h:78

Parameters

std::nullptr_t

Address(llvm::Value* Pointer,
        llvm::Type* ElementType,
        clang::CharUnits Alignment)

Declared at: clang/lib/CodeGen/Address.h:81

Parameters

llvm::Value* Pointer
llvm::Type* ElementType
clang::CharUnits Alignment

unsigned int getAddressSpace() const

Description

Return the address space that this address resides in.

Declared at: clang/lib/CodeGen/Address.h:110

clang::CharUnits getAlignment() const

Description

Return the alignment of this pointer.

Declared at: clang/lib/CodeGen/Address.h:120

llvm::Type* getElementType() const

Description

Return the type of the values stored in this address.

Declared at: clang/lib/CodeGen/Address.h:104

llvm::StringRef getName() const

Description

Return the IR name of the pointer value.

Declared at: clang/lib/CodeGen/Address.h:115

llvm::Value* getPointer() const

Declared at: clang/lib/CodeGen/Address.h:93

llvm::PointerType* getType() const

Description

Return the type of the pointer value.

Declared at: clang/lib/CodeGen/Address.h:99

static clang::CodeGen::Address invalid()

Declared at: clang/lib/CodeGen/Address.h:90

bool isValid() const

Declared at: clang/lib/CodeGen/Address.h:91

clang::CodeGen::Address withAlignment(
    clang::CharUnits NewAlignment) const

Description

Return address with different alignment, but same pointer and element type.

Declared at: clang/lib/CodeGen/Address.h:133

Parameters

clang::CharUnits NewAlignment

clang::CodeGen::Address withPointer(
    llvm::Value* NewPointer) const

Description

Return address with different pointer, but same element type and alignment.

Declared at: clang/lib/CodeGen/Address.h:127

Parameters

llvm::Value* NewPointer