sun::abi::CallDescriptor

sun::abi::CallDescriptor

struct · Source (opens in a new tab)

struct sun::abi::CallDescriptor

Records the lowered signature and attributes needed at both ends of a call.

Public Functions

apply

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

void sun::abi::CallDescriptor::apply(llvm::CallBase &call) const

Applies the same convention and ABI attributes to a call or invoke.

encodedAttributes

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

std::string sun::abi::CallDescriptor::encodedAttributes() const

Encodes only ABI attributes, excluding optimization facts and diagnostics.

forCall

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

CallDescriptor sun::abi::CallDescriptor::forCall(llvm::FunctionType *signature, llvm::Value *callee)

Uses a direct callee's ABI, or Sun's default convention for indirect calls.

Related: CallDescriptor

inspect

inspect(const llvm::Function &function)

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

CallDescriptor sun::abi::CallDescriptor::inspect(const llvm::Function &function)

Reads a function's declared machine calling convention.

Related: CallDescriptor

inspect(const llvm::CallBase &call)

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

CallDescriptor sun::abi::CallDescriptor::inspect(const llvm::CallBase &call)

Reads the machine convention used by a call or invoke instruction.

Related: CallDescriptor

sun

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

CallDescriptor sun::abi::CallDescriptor::sun(llvm::Type *result, llvm::ArrayRef< llvm::Type * > parameters, bool closure=false)

Builds Sun's value signature, optionally prepending its closure pointer.

Related: CallDescriptor

Public Fields

attributes

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

llvm::AttributeList sun::abi::CallDescriptor::attributes

No documentation comment.

convention

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

llvm::CallingConv::ID sun::abi::CallDescriptor::convention = llvm::CallingConv::C

No documentation comment.

signature

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

llvm::FunctionType* sun::abi::CallDescriptor::signature

No documentation comment.