sun::abi::AggregateLayout

sun::abi::AggregateLayout

struct · Source (opens in a new tab)

struct sun::abi::AggregateLayout

Records the target layout of an aggregate without conflating nominal types.

Public Functions

build

public · function · static · Source (opens in a new tab)

llvm::StructType * sun::abi::AggregateLayout::build(llvm::LLVMContext &context, llvm::ArrayRef< llvm::Type * > fields, bool packed=false, uint64_t alignment=0)

Builds Sun class storage, including packing and explicit alignment.

inspect

public · function · static · Source (opens in a new tab)

AggregateLayout sun::abi::AggregateLayout::inspect(llvm::StructType *type, const llvm::DataLayout &layout)

Derives allocation size, alignment, and field offsets from the target.

Related: AggregateLayout

Public Fields

alignment

public · variable · Source (opens in a new tab)

uint64_t sun::abi::AggregateLayout::alignment

No documentation comment.

offsets

public · variable · Source (opens in a new tab)

std::vector<uint64_t> sun::abi::AggregateLayout::offsets

No documentation comment.

size

public · variable · Source (opens in a new tab)

uint64_t sun::abi::AggregateLayout::size

No documentation comment.