sun::abi::AggregateLayout
struct · Source (opens in a new tab)
struct sun::abi::AggregateLayoutRecords 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::alignmentNo documentation comment.
offsets
public · variable · Source (opens in a new tab)
std::vector<uint64_t> sun::abi::AggregateLayout::offsetsNo documentation comment.
size
public · variable · Source (opens in a new tab)
uint64_t sun::abi::AggregateLayout::sizeNo documentation comment.