sun::codegen::abi::SignatureLowering

sun::codegen::abi::SignatureLowering

struct · Source (opens in a new tab)

struct sun::codegen::abi::SignatureLowering

The lowered result and parameter representations for a C function.

Public Functions

isTrivial

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

bool sun::codegen::abi::SignatureLowering::isTrivial() const

True when nothing needed rewriting, so the naive signature is already correct and callers can take their existing fast path.

A required extension counts as rewriting: the call site must carry the attribute.

usesSret

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

bool sun::codegen::abi::SignatureLowering::usesSret() const

True when the return value travels through a caller-allocated buffer passed as a prepended pointer argument.

Public Fields

params

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

std::vector<ArgLowering> sun::codegen::abi::SignatureLowering::params

No documentation comment.

Related: ArgLowering

ret

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

ArgLowering sun::codegen::abi::SignatureLowering::ret

No documentation comment.

Related: ArgLowering