llvm::GetReturnInfo

Compute the return value EVTs, flags, and offsets for a given LLVM IR return type.

Synopsis

Declared in <llvm/CodeGen/TargetLowering.h>

void
GetReturnInfo(
    CallingConv::ID CC,
    Type* ReturnType,
    AttributeList attr,
    SmallVectorImpl<ISD::OutputArg>& Outs,
    TargetLowering const& TLI,
    DataLayout const& DL);

Description

Given an LLVM IR type and return type attributes, compute the return value EVTs and flags, and optionally also the offsets, if the return value is being lowered to memory.

Parameters

NameDescription
CCCalling convention of the function.
ReturnTypeLLVM IR return type.
attrReturn-type attribute list.
OutsFilled with return-value output descriptors.
TLITargetLowering providing ABI rules.
DLData layout of the module.