sun::abi::CallDescriptor
struct · Source (opens in a new tab)
struct sun::abi::CallDescriptorRecords 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) constApplies 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() constEncodes 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::attributesNo documentation comment.
convention
public · variable · Source (opens in a new tab)
llvm::CallingConv::ID sun::abi::CallDescriptor::convention = llvm::CallingConv::CNo documentation comment.
signature
public · variable · Source (opens in a new tab)
llvm::FunctionType* sun::abi::CallDescriptor::signatureNo documentation comment.