reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/CodeGen/CallingConvLower.h
  193   CallingConv::ID CallingConv;
  258   CCState(CallingConv::ID CC, bool isVarArg, MachineFunction &MF,
  267   CallingConv::ID getCallingConv() const { return CallingConv; }
  533   static bool resultsCompatible(CallingConv::ID CalleeCC,
  534                                 CallingConv::ID CallerCC, MachineFunction &MF,
include/llvm/CodeGen/FastISel.h
   85     CallingConv::ID CallConv = CallingConv::C;
  150     CallLoweringInfo &setCallee(CallingConv::ID CC, Type *ResultTy,
  162                                 CallingConv::ID CC, Type *ResultTy,
  166     CallLoweringInfo &setCallee(CallingConv::ID CC, Type *ResultTy,
include/llvm/CodeGen/GlobalISel/CallLowering.h
   73     CallingConv::ID CallConv = CallingConv::C;
include/llvm/CodeGen/StackMaps.h
  114   CallingConv::ID getCallingConv() const {
include/llvm/CodeGen/TargetLowering.h
  827       LLVMContext &Context, CallingConv::ID CC, EVT VT, EVT &IntermediateVT,
 1346                                             CallingConv::ID CC, EVT VT) const {
 1354                                                  CallingConv::ID CC,
 2645   void setLibcallCallingConv(RTLIB::Libcall Call, CallingConv::ID CC) {
 2650   CallingConv::ID getLibcallCallingConv(RTLIB::Libcall Call) const {
 2829   CallingConv::ID LibcallCallingConvs[RTLIB::UNKNOWN_LIBCALL];
 3424       SDValue /*Chain*/, CallingConv::ID /*CallConv*/, bool /*isVarArg*/,
 3454     CallingConv::ID CallConv = CallingConv::C;
 3481     CallLoweringInfo &setLibCallee(CallingConv::ID CC, Type *ResultType,
 3494     CallLoweringInfo &setCallee(CallingConv::ID CC, Type *ResultType,
 3653   virtual bool CanLowerReturn(CallingConv::ID /*CallConv*/,
 3665   virtual SDValue LowerReturn(SDValue /*Chain*/, CallingConv::ID /*CallConv*/,
 3720   functionArgumentNeedsConsecutiveRegisters(Type *Ty, CallingConv::ID CallConv,
 3736   virtual const MCPhysReg *getScratchRegisters(CallingConv::ID CC) const {
 4277 void GetReturnInfo(CallingConv::ID CC, Type *ReturnType, AttributeList attr,
include/llvm/CodeGen/TargetRegisterInfo.h
  440                                                CallingConv::ID) const {
include/llvm/IR/CallSite.h
  320   CallingConv::ID getCallingConv() const {
  324   void setCallingConv(CallingConv::ID CC) {
include/llvm/IR/Function.h
  212   CallingConv::ID getCallingConv() const {
  216   void setCallingConv(CallingConv::ID CC) {
include/llvm/IR/InstrTypes.h
 1349   CallingConv::ID getCallingConv() const {
 1353   void setCallingConv(CallingConv::ID CC) {
lib/CodeGen/CallingConvLower.cpp
   29 CCState::CCState(CallingConv::ID CC, bool isVarArg, MachineFunction &mf,
  189 static bool isValueTypeInRegForCC(CallingConv::ID CC, MVT VT) {
  259 bool CCState::resultsCompatible(CallingConv::ID CalleeCC,
  260                                 CallingConv::ID CallerCC, MachineFunction &MF,
lib/CodeGen/GlobalISel/CallLowering.cpp
  404   CallingConv::ID CalleeCC = Info.CallConv;
  405   CallingConv::ID CallerCC = F.getCallingConv();
lib/CodeGen/SelectionDAG/FastISel.cpp
  829   CallingConv::ID CC = I->getCallingConv();
  895     const DataLayout &DL, MCContext &Ctx, CallingConv::ID CC, Type *ResultTy,
  910   CallingConv::ID CC = I->getCallingConv();
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
   93   CallingConv::ID CC = Fn->getCallingConv();
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  167 static Optional<CallingConv::ID> getABIRegCopyCC(const Value *V) {
  193                                       Optional<CallingConv::ID> CC);
  203                                 Optional<CallingConv::ID> CC = None,
  360                                       Optional<CallingConv::ID> CallConv) {
  493                                  Optional<CallingConv::ID> CallConv);
  501                            Optional<CallingConv::ID> CallConv = None,
  661                                  Optional<CallingConv::ID> CallConv) {
  777                            Optional<CallingConv::ID> CC) {
 1853         CallingConv::ID CC = F->getCallingConv();
 1915   CallingConv::ID CallConv =
 8758   CallingConv::ID CC = CS.getCallingConv();
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
  836   Optional<CallingConv::ID> CallConv;
  843                Optional<CallingConv::ID> CC);
lib/CodeGen/TargetLoweringBase.cpp
 1463 void llvm::GetReturnInfo(CallingConv::ID CC, Type *ReturnType,
lib/IR/Mangler.cpp
   80 static bool hasByteCountSuffix(CallingConv::ID CC) {
  147   CallingConv::ID CC =
lib/Target/AArch64/AArch64CallLowering.cpp
  215 static bool doesCalleeRestoreStack(CallingConv::ID CallConv, bool TailCallOpt) {
  221     const DataLayout &DL, MachineRegisterInfo &MRI, CallingConv::ID CallConv) const {
  281     CallingConv::ID CC = F.getCallingConv();
  498 static bool canGuaranteeTCO(CallingConv::ID CC) {
  503 static bool mayTailCallThisCC(CallingConv::ID CC) {
  517 getAssignFnsForCC(CallingConv::ID CC, const AArch64TargetLowering &TLI) {
  525   CallingConv::ID CalleeCC = Info.CallConv;
  526   CallingConv::ID CallerCC = CallerF.getCallingConv();
  569   CallingConv::ID CalleeCC = Info.CallConv;
  570   CallingConv::ID CallerCC = CallerF.getCallingConv();
  669   CallingConv::ID CalleeCC = Info.CallConv;
  799   CallingConv::ID CalleeCC = Info.CallConv;
lib/Target/AArch64/AArch64CallLowering.h
   65                          CallingConv::ID CallConv) const;
lib/Target/AArch64/AArch64FastISel.cpp
  281   CCAssignFn *CCAssignFnForCall(CallingConv::ID CC) const;
  346 CCAssignFn *AArch64FastISel::CCAssignFnForCall(CallingConv::ID CC) const {
 2959   CallingConv::ID CC = F->getCallingConv();
 3065   CallingConv::ID CC = CLI.CallConv;
 3154   CallingConv::ID CC = CLI.CallConv;
 3192   CallingConv::ID CC  = CLI.CallConv;
 3860     CallingConv::ID CC = F.getCallingConv();
lib/Target/AArch64/AArch64FrameLowering.cpp
 1836   CallingConv::ID CC = MF.getFunction().getCallingConv();
lib/Target/AArch64/AArch64ISelLowering.cpp
 3097 CCAssignFn *AArch64TargetLowering::CCAssignFnForCall(CallingConv::ID CC,
 3129 AArch64TargetLowering::CCAssignFnForReturn(CallingConv::ID CC) const {
 3135     SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
 3478     SDValue Chain, SDValue InFlag, CallingConv::ID CallConv, bool isVarArg,
 3542 static bool canGuaranteeTCO(CallingConv::ID CC) {
 3547 static bool mayTailCallThisCC(CallingConv::ID CC) {
 3559     SDValue Callee, CallingConv::ID CalleeCC, bool isVarArg,
 3568   CallingConv::ID CallerCC = CallerF.getCallingConv();
 3708 bool AArch64TargetLowering::DoesCalleeRestoreStack(CallingConv::ID CallCC,
 3726   CallingConv::ID CallConv = CLI.CallConv;
 4149     CallingConv::ID CallConv, MachineFunction &MF, bool isVarArg,
 4160 AArch64TargetLowering::LowerReturn(SDValue Chain, CallingConv::ID CallConv,
 9206 AArch64TargetLowering::getScratchRegisters(CallingConv::ID) const {
12251     Type *Ty, CallingConv::ID CallConv, bool isVarArg) const {
lib/Target/AArch64/AArch64ISelLowering.h
  257   CCAssignFn *CCAssignFnForCall(CallingConv::ID CC, bool IsVarArg) const;
  260   CCAssignFn *CCAssignFnForReturn(CallingConv::ID CC) const;
  401   const MCPhysReg *getScratchRegisters(CallingConv::ID CC) const override;
  568                                                  CallingConv::ID CallConv,
  583   SDValue LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv,
  593                           CallingConv::ID CallConv, bool isVarArg,
  604       SDValue Callee, CallingConv::ID CalleeCC, bool isVarArg,
  615   bool DoesCalleeRestoreStack(CallingConv::ID CallCC, bool TailCallOpt) const;
  620   bool CanLowerReturn(CallingConv::ID CallConv, MachineFunction &MF,
  625   SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
lib/Target/AArch64/AArch64RegisterInfo.cpp
  115                                           CallingConv::ID CC) const {
  177                                                 CallingConv::ID CC) const {
lib/Target/AArch64/AArch64RegisterInfo.h
   50                                        CallingConv::ID) const override;
   79                                              CallingConv::ID) const;
lib/Target/AArch64/AArch64Subtarget.h
  481   bool isCallingConvWin64(CallingConv::ID CC) const {
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
 1109 static unsigned getRsrcReg(CallingConv::ID CallConv) {
lib/Target/AMDGPU/AMDGPUCallLowering.cpp
  155     const DataLayout &DL, MachineRegisterInfo &MRI, CallingConv::ID CallConv,
  271   CallingConv::ID CC = F.getCallingConv();
  302   CallingConv::ID CC = B.getMF().getFunction().getCallingConv();
  553   CallingConv::ID CC = F.getCallingConv();
lib/Target/AMDGPU/AMDGPUCallLowering.h
   38                          CallingConv::ID CallConv,
   55   static CCAssignFn *CCAssignFnForCall(CallingConv::ID CC, bool IsVarArg);
   56   static CCAssignFn *CCAssignFnForReturn(CallingConv::ID CC, bool IsVarArg);
lib/Target/AMDGPU/AMDGPUISelLowering.cpp
  837 CCAssignFn *AMDGPUCallLowering::CCAssignFnForCall(CallingConv::ID CC,
  859 CCAssignFn *AMDGPUCallLowering::CCAssignFnForReturn(CallingConv::ID CC,
  916   CallingConv::ID CC = Fn.getCallingConv();
 1020   SDValue Chain, CallingConv::ID CallConv,
 1036 CCAssignFn *AMDGPUTargetLowering::CCAssignFnForCall(CallingConv::ID CC,
 1041 CCAssignFn *AMDGPUTargetLowering::CCAssignFnForReturn(CallingConv::ID CC,
lib/Target/AMDGPU/AMDGPUISelLowering.h
  198   static CCAssignFn *CCAssignFnForCall(CallingConv::ID CC, bool IsVarArg);
  199   static CCAssignFn *CCAssignFnForReturn(CallingConv::ID CC, bool IsVarArg);
  201   SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp
   62   CallingConv::ID CC = F.getCallingConv();
lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
   39   CallingConv::ID CC = F.getCallingConv();
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
  737   CallingConv::ID CC = ContainingFunction.getCallingConv();
lib/Target/AMDGPU/AMDGPURegisterInfo.cpp
   97   CallingConv::ID CC = MF->getFunction().getCallingConv();
  117                                                      CallingConv::ID CC) const {
lib/Target/AMDGPU/AMDGPUSubtarget.cpp
  344 AMDGPUSubtarget::getDefaultFlatWorkGroupSize(CallingConv::ID CC) const {
lib/Target/AMDGPU/AMDGPUSubtarget.h
   90   std::pair<unsigned, unsigned> getDefaultFlatWorkGroupSize(CallingConv::ID CC) const;
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
  523   CallingConv::ID CC = F->getCallingConv();
lib/Target/AMDGPU/R600ControlFlowFinalizer.cpp
   67   CFStack(const R600Subtarget *st, CallingConv::ID cc) : ST(st),
lib/Target/AMDGPU/R600ISelLowering.cpp
 1553 CCAssignFn *R600TargetLowering::CCAssignFnForCall(CallingConv::ID CC,
 1579     SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
lib/Target/AMDGPU/R600ISelLowering.h
   40   CCAssignFn *CCAssignFnForCall(CallingConv::ID CC, bool IsVarArg) const;
   41   SDValue LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv,
lib/Target/AMDGPU/SIISelLowering.cpp
  779                                                     CallingConv::ID CC,
  802                                                          CallingConv::ID CC,
  827   LLVMContext &Context, CallingConv::ID CC,
 1564                                    CallingConv::ID CallConv,
 1815                                            CallingConv::ID CallConv,
 2018     SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
 2243   CallingConv::ID CallConv,
 2259 SITargetLowering::LowerReturn(SDValue Chain, CallingConv::ID CallConv,
 2369     SDValue Chain, SDValue InFlag, CallingConv::ID CallConv, bool IsVarArg,
 2570 static bool canGuaranteeTCO(CallingConv::ID CC) {
 2575 static bool mayTailCallThisCC(CallingConv::ID CC) {
 2585     SDValue Callee, CallingConv::ID CalleeCC, bool IsVarArg,
 2594   CallingConv::ID CallerCC = CallerF.getCallingConv();
 2678   CallingConv::ID CallConv = CLI.CallConv;
lib/Target/AMDGPU/SIISelLowering.h
   29                                     CallingConv::ID CC,
   32                                          CallingConv::ID CC,
   36     LLVMContext &Context, CallingConv::ID CC, EVT VT, EVT &IntermediateVT,
  290   SDValue LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv,
  296   bool CanLowerReturn(CallingConv::ID CallConv,
  301   SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool IsVarArg,
  315                           CallingConv::ID CallConv, bool isVarArg,
  324     SDValue Callee, CallingConv::ID CalleeCC, bool isVarArg,
  413                            CallingConv::ID CallConv,
lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
   57   CallingConv::ID CC = F.getCallingConv();
lib/Target/AMDGPU/SIRegisterInfo.h
   63                                        CallingConv::ID) const override;
lib/Target/AMDGPU/SIWholeQuadMode.cpp
  148   CallingConv::ID CallingConv;
lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
  881 bool isShader(CallingConv::ID cc) {
  896 bool isCompute(CallingConv::ID cc) {
  900 bool isEntryFunctionCC(CallingConv::ID CC) {
 1220   CallingConv::ID CC = F->getCallingConv();
lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
  514 bool isShader(CallingConv::ID CC);
  517 bool isCompute(CallingConv::ID CC);
  520 bool isEntryFunctionCC(CallingConv::ID CC);
  524 inline bool isKernel(CallingConv::ID CC) {
  670   static SIModeRegisterDefaults getDefaultForCallingConv(CallingConv::ID CC) {
lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.cpp
   94 static unsigned getRsrc1Reg(CallingConv::ID CC) {
  116 static unsigned getScratchSizeKey(CallingConv::ID CC) {
  137 void AMDGPUPALMetadata::setRsrc1(CallingConv::ID CC, unsigned Val) {
  143 void AMDGPUPALMetadata::setRsrc2(CallingConv::ID CC, unsigned Val) {
  198 void AMDGPUPALMetadata::setNumUsedVgprs(CallingConv::ID CC, unsigned Val) {
  214 void AMDGPUPALMetadata::setNumUsedSgprs(CallingConv::ID CC, unsigned Val) {
  228 void AMDGPUPALMetadata::setScratchSize(CallingConv::ID CC, unsigned Val) {
  672 static const char *getStageName(CallingConv::ID CC) {
lib/Target/ARC/ARCISelLowering.cpp
  232   CallingConv::ID CallConv = CLI.CallConv;
  432     SDValue Chain, CallingConv::ID CallConv, bool IsVarArg,
  447     SDValue Chain, CallingConv::ID CallConv, bool IsVarArg,
  593     CallingConv::ID CallConv, MachineFunction &MF, bool IsVarArg,
  605 ARCTargetLowering::LowerReturn(SDValue Chain, CallingConv::ID CallConv,
lib/Target/ARC/ARCISelLowering.h
   81   SDValue LowerCallArguments(SDValue Chain, CallingConv::ID CallConv,
   95   SDValue LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv,
  104   SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
  109   bool CanLowerReturn(CallingConv::ID CallConv, MachineFunction &MF,
lib/Target/ARC/ARCRegisterInfo.cpp
  233                                       CallingConv::ID CC) const {
lib/Target/ARC/ARCRegisterInfo.h
   46                                        CallingConv::ID CC) const override;
lib/Target/ARM/ARMBaseRegisterInfo.cpp
  123                                           CallingConv::ID CC) const {
  163                                                 CallingConv::ID CC) const {
lib/Target/ARM/ARMBaseRegisterInfo.h
  116                                        CallingConv::ID) const override;
  130                                              CallingConv::ID) const;
lib/Target/ARM/ARMFastISel.cpp
  218     CCAssignFn *CCAssignFnForCall(CallingConv::ID CC,
  226                          CallingConv::ID CC,
  231                     const Instruction *I, CallingConv::ID CC,
 1840 CCAssignFn *ARMFastISel::CCAssignFnForCall(CallingConv::ID CC,
 1892                                   CallingConv::ID CC,
 2035                              const Instruction *I, CallingConv::ID CC,
 2107   CallingConv::ID CC = F.getCallingConv();
 2205   CallingConv::ID CC = TLI.getLibcallCallingConv(Call);
 2306   CallingConv::ID CC = CS.getCallingConv();
 3009   CallingConv::ID CC = F->getCallingConv();
lib/Target/ARM/ARMISelLowering.cpp
  504       const CallingConv::ID CC;
  603         const CallingConv::ID CC;
  626       const CallingConv::ID CC;
  673       const CallingConv::ID CC;
 1124         const CallingConv::ID CC;
 1145         const CallingConv::ID CC;
 1849 CallingConv::ID
 1850 ARMTargetLowering::getEffectiveCallingConv(CallingConv::ID CC,
 1888 CCAssignFn *ARMTargetLowering::CCAssignFnForCall(CallingConv::ID CC,
 1893 CCAssignFn *ARMTargetLowering::CCAssignFnForReturn(CallingConv::ID CC,
 1900 CCAssignFn *ARMTargetLowering::CCAssignFnForNode(CallingConv::ID CC,
 1926     SDValue Chain, SDValue InFlag, CallingConv::ID CallConv, bool isVarArg,
 2060   CallingConv::ID CallConv              = CLI.CallConv;
 2552     SDValue Callee, CallingConv::ID CalleeCC, bool isVarArg,
 2560   CallingConv::ID CallerCC = CallerF.getCallingConv();
 2677 ARMTargetLowering::CanLowerReturn(CallingConv::ID CallConv,
 2720 ARMTargetLowering::LowerReturn(SDValue Chain, CallingConv::ID CallConv,
 3952     SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
 8773   CallingConv::ID CC = getLibcallCallingConv(LC);
17061     Type *Ty, CallingConv::ID CallConv, bool isVarArg) const {
lib/Target/ARM/ARMISelLowering.h
  526         Type *Ty, CallingConv::ID CallConv, bool isVarArg) const override;
  601     CCAssignFn *CCAssignFnForCall(CallingConv::ID CC, bool isVarArg) const;
  602     CCAssignFn *CCAssignFnForReturn(CallingConv::ID CC, bool isVarArg) const;
  671     CallingConv::ID getEffectiveCallingConv(CallingConv::ID CC,
  671     CallingConv::ID getEffectiveCallingConv(CallingConv::ID CC,
  673     CCAssignFn *CCAssignFnForNode(CallingConv::ID CC, bool Return,
  755                             CallingConv::ID CallConv, bool isVarArg,
  772     LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
  797         SDValue Callee, CallingConv::ID CalleeCC, bool isVarArg,
  804     bool CanLowerReturn(CallingConv::ID CallConv,
  809     SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
lib/Target/AVR/AVRFrameLowering.cpp
   56   CallingConv::ID CallConv = MF.getFunction().getCallingConv();
  146   CallingConv::ID CallConv = MF.getFunction().getCallingConv();
lib/Target/AVR/AVRISelLowering.cpp
  936                                      CallingConv::ID CallConv,
 1012                                     CallingConv::ID CallConv,
 1030                              CallingConv::ID CallConv,
 1050     SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
 1155   CallingConv::ID CallConv = CLI.CallConv;
 1312     SDValue Chain, SDValue InFlag, CallingConv::ID CallConv, bool isVarArg,
 1347 CCAssignFn *AVRTargetLowering::CCAssignFnForReturn(CallingConv::ID CC) const {
 1357 AVRTargetLowering::CanLowerReturn(CallingConv::ID CallConv,
 1370 AVRTargetLowering::LowerReturn(SDValue Chain, CallingConv::ID CallConv,
lib/Target/AVR/AVRISelLowering.h
  149   CCAssignFn *CCAssignFnForReturn(CallingConv::ID CC) const;
  151   bool CanLowerReturn(CallingConv::ID CallConv,
  156   SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
  160   SDValue LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv,
  168                           CallingConv::ID CallConv, bool isVarArg,
lib/Target/AVR/AVRRegisterInfo.cpp
   37   CallingConv::ID CC = MF->getFunction().getCallingConv();
   46                                       CallingConv::ID CC) const {
lib/Target/AVR/AVRRegisterInfo.h
   32                                        CallingConv::ID CC) const override;
lib/Target/BPF/BPFISelLowering.cpp
  207     SDValue Chain, CallingConv::ID CallConv, bool IsVarArg,
  284   CallingConv::ID CallConv = CLI.CallConv;
  407 BPFTargetLowering::LowerReturn(SDValue Chain, CallingConv::ID CallConv,
  455     SDValue Chain, SDValue InFlag, CallingConv::ID CallConv, bool IsVarArg,
lib/Target/BPF/BPFISelLowering.h
   78                           CallingConv::ID CallConv, bool IsVarArg,
   91   SDValue LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv,
   97   SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool IsVarArg,
lib/Target/Hexagon/HexagonISelLowering.cpp
  118     HexagonCCState(CallingConv::ID CC, bool IsVarArg, MachineFunction &MF,
  177     CallingConv::ID CallConv, MachineFunction &MF, bool IsVarArg,
  192 HexagonTargetLowering::LowerReturn(SDValue Chain, CallingConv::ID CallConv,
  261     SDValue Chain, SDValue Glue, CallingConv::ID CallConv, bool IsVarArg,
  323   CallingConv::ID CallConv              = CLI.CallConv;
  692     SDValue Chain, CallingConv::ID CallConv, bool IsVarArg,
 3116                                  CallingConv::ID CalleeCC,
 3125   CallingConv::ID CallerCC = CallerF.getCallingConv();
lib/Target/Hexagon/HexagonISelLowering.h
  116         CallingConv::ID CalleeCC, bool isVarArg, bool isCalleeStructRet,
  184     LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
  205                             CallingConv::ID CallConv, bool isVarArg,
  218     bool CanLowerReturn(CallingConv::ID CallConv,
  223     SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
lib/Target/Hexagon/HexagonRegisterInfo.cpp
  125       const MachineFunction &MF, CallingConv::ID) const {
lib/Target/Hexagon/HexagonRegisterInfo.h
   37         CallingConv::ID) const override;
lib/Target/Lanai/LanaiISelLowering.cpp
  397     SDValue Chain, CallingConv::ID CallConv, bool IsVarArg,
  419   CallingConv::ID CallConv = CLI.CallConv;
  438     SDValue Chain, CallingConv::ID CallConv, bool IsVarArg,
  534 LanaiTargetLowering::LowerReturn(SDValue Chain, CallingConv::ID CallConv,
  597     SDValue Chain, SDValue Callee, CallingConv::ID CallConv, bool IsVarArg,
  775     SDValue Chain, SDValue InFlag, CallingConv::ID CallConv, bool IsVarArg,
lib/Target/Lanai/LanaiISelLowering.h
  114                          CallingConv::ID CallConv, bool IsVarArg,
  122   SDValue LowerCCCArguments(SDValue Chain, CallingConv::ID CallConv,
  129                           CallingConv::ID CallConv, bool IsVarArg,
  137   SDValue LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv,
  143   SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool IsVarArg,
lib/Target/Lanai/LanaiRegisterInfo.cpp
  270                                         CallingConv::ID /*CC*/) const {
lib/Target/Lanai/LanaiRegisterInfo.h
   27                                        CallingConv::ID) const override;
lib/Target/MSP430/MSP430ISelLowering.cpp
  552     SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
  580   CallingConv::ID CallConv              = CLI.CallConv;
  603     SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
  708 MSP430TargetLowering::CanLowerReturn(CallingConv::ID CallConv,
  719 MSP430TargetLowering::LowerReturn(SDValue Chain, CallingConv::ID CallConv,
  789     SDValue Chain, SDValue Callee, CallingConv::ID CallConv, bool isVarArg,
  921     SDValue Chain, SDValue InFlag, CallingConv::ID CallConv, bool isVarArg,
lib/Target/MSP430/MSP430ISelLowering.h
  137                            CallingConv::ID CallConv, bool isVarArg,
  145     SDValue LowerCCCArguments(SDValue Chain, CallingConv::ID CallConv,
  152                             CallingConv::ID CallConv, bool isVarArg,
  158     LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
  166     bool CanLowerReturn(CallingConv::ID CallConv,
  172     SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp
   48 unsigned MipsABIInfo::GetCalleeAllocdArgSizeInBytes(CallingConv::ID CC) const {
lib/Target/Mips/MCTargetDesc/MipsABIInfo.h
   54   unsigned GetCalleeAllocdArgSizeInBytes(CallingConv::ID CC) const;
lib/Target/Mips/MipsCCState.h
   83   MipsCCState(CallingConv::ID CC, bool isVarArg, MachineFunction &MF,
lib/Target/Mips/MipsFastISel.cpp
  244   CCAssignFn *CCAssignFnForCall(CallingConv::ID CC) const;
  292 CCAssignFn *MipsFastISel::CCAssignFnForCall(CallingConv::ID CC) const {
 1142   CallingConv::ID CC = CLI.CallConv;
 1281   CallingConv::ID CC = CLI.CallConv;
 1328   CallingConv::ID CC = F->getCallingConv();
 1496   CallingConv::ID CC = CLI.CallConv;
 1694     CallingConv::ID CC = F.getCallingConv();
lib/Target/Mips/MipsISelLowering.cpp
  112                                                       CallingConv::ID CC,
  125                                                            CallingConv::ID CC,
  134     LLVMContext &Context, CallingConv::ID CC, EVT VT, EVT &IntermediateVT,
 3026   CallingConv::ID CallConv              = CLI.CallConv;
 3338     SDValue Chain, SDValue InFlag, CallingConv::ID CallConv, bool IsVarArg,
 3465     SDValue Chain, CallingConv::ID CallConv, bool IsVarArg,
 3619 MipsTargetLowering::CanLowerReturn(CallingConv::ID CallConv,
 3649 MipsTargetLowering::LowerReturn(SDValue Chain, CallingConv::ID CallConv,
lib/Target/Mips/MipsISelLowering.h
  292     MVT getRegisterTypeForCallingConv(LLVMContext &Context, CallingConv::ID CC,
  298                                            CallingConv::ID CC,
  303         LLVMContext &Context, CallingConv::ID CC, EVT VT, EVT &IntermediateVT,
  538                             CallingConv::ID CallConv, bool isVarArg,
  602     LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
  614     bool CanLowerReturn(CallingConv::ID CallConv, MachineFunction &MF,
  619     SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
lib/Target/Mips/MipsRegisterInfo.cpp
  125                                        CallingConv::ID) const {
lib/Target/Mips/MipsRegisterInfo.h
   54                                        CallingConv::ID) const override;
lib/Target/NVPTX/NVPTXISelLowering.cpp
 2463     SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
 2660 NVPTXTargetLowering::LowerReturn(SDValue Chain, CallingConv::ID CallConv,
lib/Target/NVPTX/NVPTXISelLowering.h
  483   SDValue LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv,
  497   SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
lib/Target/PowerPC/PPCCCState.h
   32   PPCCCState(CallingConv::ID CC, bool isVarArg, MachineFunction &MF,
lib/Target/PowerPC/PPCFastISel.cpp
  193                          CallingConv::ID CC,
 1379                                   CallingConv::ID CC,
 1491   CallingConv::ID CC = CLI.CallConv;
 1550   CallingConv::ID CC  = CLI.CallConv;
 1699   CallingConv::ID CC = F.getCallingConv();
lib/Target/PowerPC/PPCISelLowering.cpp
 3403     SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
 3420     SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
 3691     SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
 4103     SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
 4612 areCallingConvEligibleForTCO_64SVR4(CallingConv::ID CallerCC,
 4613                                     CallingConv::ID CalleeCC) {
 4631                                     CallingConv::ID CalleeCC,
 4711                                                      CallingConv::ID CalleeCC,
 4723   CallingConv::ID CallerCC = MF.getFunction().getCallingConv();
 5154     SDValue Chain, SDValue InFlag, CallingConv::ID CallConv, bool isVarArg,
 5218     CallingConv::ID CallConv, const SDLoc &dl, bool isTailCall, bool isVarArg,
 5346   CallingConv::ID CallConv              = CLI.CallConv;
 5412     SDValue Chain, SDValue Callee, CallingConv::ID CallConv, bool isVarArg,
 5665     SDValue Chain, SDValue Callee, CallingConv::ID CallConv, bool isVarArg,
 6326     SDValue Chain, SDValue Callee, CallingConv::ID CallConv, bool isVarArg,
 6782     SDValue Chain, SDValue Callee, CallingConv::ID CallConv, bool isVarArg,
 6874 PPCTargetLowering::CanLowerReturn(CallingConv::ID CallConv,
 6887 PPCTargetLowering::LowerReturn(SDValue Chain, CallingConv::ID CallConv,
14966 PPCTargetLowering::getScratchRegisters(CallingConv::ID) const {
lib/Target/PowerPC/PPCISelLowering.h
  908     const MCPhysReg *getScratchRegisters(CallingConv::ID CC) const override;
  923       Type *Ty, CallingConv::ID CallConv, bool isVarArg) const override {
 1013                                       CallingConv::ID CalleeCC,
 1021                                     CallingConv::ID CalleeCC,
 1082                             CallingConv::ID CallConv, bool isVarArg,
 1086     SDValue FinishCall(CallingConv::ID CallConv, const SDLoc &dl,
 1097     LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
 1105     bool CanLowerReturn(CallingConv::ID CallConv, MachineFunction &MF,
 1110     SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
 1120         SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
 1124         SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
 1128         SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
 1138                              CallingConv::ID CallConv, bool isVarArg,
 1147                              CallingConv::ID CallConv, bool isVarArg,
 1156                              CallingConv::ID CallConv, bool isVarArg,
 1165                           CallingConv::ID CallConv, bool isVarArg,
lib/Target/PowerPC/PPCRegisterInfo.cpp
  224                                       CallingConv::ID CC) const {
lib/Target/PowerPC/PPCRegisterInfo.h
   89                                        CallingConv::ID CC) const override;
lib/Target/RISCV/RISCVISelLowering.cpp
 1866     SDValue Chain, CallingConv::ID CallConv, bool IsVarArg,
 2097   CallingConv::ID CallConv = CLI.CallConv;
 2362     CallingConv::ID CallConv, MachineFunction &MF, bool IsVarArg,
 2378 RISCVTargetLowering::LowerReturn(SDValue Chain, CallingConv::ID CallConv,
lib/Target/RISCV/RISCVISelLowering.h
  158   SDValue LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv,
  163   bool CanLowerReturn(CallingConv::ID CallConv, MachineFunction &MF,
  167   SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool IsVarArg,
lib/Target/RISCV/RISCVRegisterInfo.cpp
  153                                         CallingConv::ID /*CC*/) const {
lib/Target/RISCV/RISCVRegisterInfo.h
   28                                        CallingConv::ID) const override;
lib/Target/Sparc/SparcISelLowering.cpp
  197 SparcTargetLowering::LowerReturn(SDValue Chain, CallingConv::ID CallConv,
  208 SparcTargetLowering::LowerReturn_32(SDValue Chain, CallingConv::ID CallConv,
  293 SparcTargetLowering::LowerReturn_64(SDValue Chain, CallingConv::ID CallConv,
  370     SDValue Chain, CallingConv::ID CallConv, bool IsVarArg,
  384     SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
  579     SDValue Chain, CallingConv::ID CallConv, bool IsVarArg,
  727   CallingConv::ID CallConv              = CLI.CallConv;
lib/Target/Sparc/SparcISelLowering.h
  127     LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
  131     SDValue LowerFormalArguments_32(SDValue Chain, CallingConv::ID CallConv,
  136     SDValue LowerFormalArguments_64(SDValue Chain, CallingConv::ID CallConv,
  150     SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
  154     SDValue LowerReturn_32(SDValue Chain, CallingConv::ID CallConv,
  159     SDValue LowerReturn_64(SDValue Chain, CallingConv::ID CallConv,
lib/Target/Sparc/SparcRegisterInfo.cpp
   45                                         CallingConv::ID CC) const {
   50 SparcRegisterInfo::getRTCallPreservedMask(CallingConv::ID CC) const {
lib/Target/Sparc/SparcRegisterInfo.h
   28                                        CallingConv::ID CC) const override;
   30   const uint32_t* getRTCallPreservedMask(CallingConv::ID CC) const;
lib/Target/SystemZ/SystemZCallingConv.h
   40   SystemZCCState(CallingConv::ID CC, bool isVarArg, MachineFunction &MF,
lib/Target/SystemZ/SystemZISelLowering.cpp
 1204   CallingConv::ID) const {
 1294     SDValue Chain, CallingConv::ID CallConv, bool IsVarArg,
 1469   CallingConv::ID CallConv = CLI.CallConv;
 1638 CanLowerReturn(CallingConv::ID CallConv,
 1658 SystemZTargetLowering::LowerReturn(SDValue Chain, CallingConv::ID CallConv,
lib/Target/SystemZ/SystemZISelLowering.h
  484   const MCPhysReg *getScratchRegisters(CallingConv::ID CC) const override;
  487   SDValue LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv,
  495   bool CanLowerReturn(CallingConv::ID CallConv, MachineFunction &MF,
  499   SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool IsVarArg,
lib/Target/SystemZ/SystemZRegisterInfo.cpp
  210                                           CallingConv::ID CC) const {
lib/Target/SystemZ/SystemZRegisterInfo.h
   80                                        CallingConv::ID CC) const override;
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
  625 static bool callingConvSupported(CallingConv::ID CallConv) {
  648   CallingConv::ID CallConv = CLI.CallConv;
  852     CallingConv::ID /*CallConv*/, MachineFunction & /*MF*/, bool /*IsVarArg*/,
  860     SDValue Chain, CallingConv::ID CallConv, bool /*IsVarArg*/,
  890     SDValue Chain, CallingConv::ID CallConv, bool IsVarArg,
lib/Target/WebAssembly/WebAssemblyISelLowering.h
   75   bool CanLowerReturn(CallingConv::ID CallConv, MachineFunction &MF,
   79   SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
   83   SDValue LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv,
lib/Target/X86/X86FastISel.cpp
 1160   CallingConv::ID CC = F.getCallingConv();
 3065   CallingConv::ID CC = F->getCallingConv();
 3155                                                   CallingConv::ID CC,
 3179   CallingConv::ID CC  = CLI.CallConv;
lib/Target/X86/X86FrameLowering.cpp
 2252   CallingConv::ID CallingConvention = MF.getFunction().getCallingConv();
lib/Target/X86/X86ISelLowering.cpp
 1937                                                      CallingConv::ID CC,
 1957                                                           CallingConv::ID CC,
 1977     LLVMContext &Context, CallingConv::ID CC, EVT VT, EVT &IntermediateVT,
 2394     CallingConv::ID CallConv, MachineFunction &MF, bool isVarArg,
 2401 const MCPhysReg *X86TargetLowering::getScratchRegisters(CallingConv::ID) const {
 2465 X86TargetLowering::LowerReturn(SDValue Chain, CallingConv::ID CallConv,
 2821     SDValue Chain, SDValue InFlag, CallingConv::ID CallConv, bool isVarArg,
 2963 static bool canGuaranteeTCO(CallingConv::ID CC) {
 2970 static bool mayTailCallThisCC(CallingConv::ID CC) {
 2991 static bool shouldGuaranteeTCO(CallingConv::ID CC, bool GuaranteedTailCallOpt) {
 3002   CallingConv::ID CalleeCC = CS.getCallingConv();
 3010 X86TargetLowering::LowerMemArgument(SDValue Chain, CallingConv::ID CallConv,
 3117 static ArrayRef<MCPhysReg> get64BitArgumentGPRs(CallingConv::ID CallConv,
 3136                                                 CallingConv::ID CallConv,
 3174     SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
 3609   CallingConv::ID CallConv              = CLI.CallConv;
 4302     SDValue Callee, CallingConv::ID CalleeCC, bool isVarArg,
 4320   CallingConv::ID CallerCC = CallerF.getCallingConv();
 4628 bool X86::isCalleePop(CallingConv::ID CallingConv,
24436     CallingConv::ID CC = Func->getCallingConv();
lib/Target/X86/X86ISelLowering.h
  687     bool isCalleePop(CallingConv::ID CallingConv,
 1214     MVT getRegisterTypeForCallingConv(LLVMContext &Context, CallingConv::ID CC,
 1218                                            CallingConv::ID CC,
 1222         LLVMContext &Context, CallingConv::ID CC, EVT VT, EVT &IntermediateVT,
 1279                             CallingConv::ID CallConv, bool isVarArg,
 1284     SDValue LowerMemArgument(SDValue Chain, CallingConv::ID CallConv,
 1299                                            CallingConv::ID CalleeCC,
 1372     LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
 1379     SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
 1400     bool CanLowerReturn(CallingConv::ID CallConv, MachineFunction &MF,
 1405     const MCPhysReg *getScratchRegisters(CallingConv::ID CC) const override;
lib/Target/X86/X86RegisterInfo.cpp
  290   CallingConv::ID CC = F.getCallingConv();
  410                                       CallingConv::ID CC) const {
  548     CallingConv::ID CC = MF.getFunction().getCallingConv();
lib/Target/X86/X86RegisterInfo.h
  109                                        CallingConv::ID) const override;
lib/Target/X86/X86Subtarget.h
  817   bool isCallingConvWin64(CallingConv::ID CC) const {
lib/Target/XCore/XCoreISelLowering.cpp
 1040   CallingConv::ID CallConv              = CLI.CallConv;
 1107     SDValue Chain, SDValue Callee, CallingConv::ID CallConv, bool isVarArg,
 1241     SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
 1260     SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
 1422 CanLowerReturn(CallingConv::ID CallConv, MachineFunction &MF,
 1436 XCoreTargetLowering::LowerReturn(SDValue Chain, CallingConv::ID CallConv,
lib/Target/XCore/XCoreISelLowering.h
  147     SDValue LowerCCCArguments(SDValue Chain, CallingConv::ID CallConv,
  153                            CallingConv::ID CallConv, bool isVarArg,
  211     LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
  220     SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
  226       CanLowerReturn(CallingConv::ID CallConv, MachineFunction &MF,
lib/Transforms/Coroutines/CoroInternal.h
  193   CallingConv::ID getResumeFunctionCC() const {
lib/Transforms/IPO/GlobalOpt.cpp
 2135   CallingConv::ID CC = F->getCallingConv();
tools/clang/lib/CodeGen/ABIInfo.h
   54     llvm::CallingConv::ID RuntimeCC;
   72     llvm::CallingConv::ID getRuntimeCC() const {
tools/clang/lib/CodeGen/CodeGenTypeCache.h
  112   llvm::CallingConv::ID RuntimeCC;
  113   llvm::CallingConv::ID getRuntimeCC() const { return RuntimeCC; }
tools/clang/lib/CodeGen/TargetInfo.cpp
 5661   llvm::CallingConv::ID getLLVMDefaultCC() const;
 5662   llvm::CallingConv::ID getABIDefaultCC() const;
 5788   llvm::CallingConv::ID cc = getRuntimeCC();
 5794 llvm::CallingConv::ID ARMABIInfo::getLLVMDefaultCC() const {
 5806 llvm::CallingConv::ID ARMABIInfo::getABIDefaultCC() const {
 5821   llvm::CallingConv::ID abiCC = getABIDefaultCC();
 7747   llvm::CallingConv::ID CC = FI.getCallingConvention();
unittests/IR/ManglerTest.cpp
   29                               llvm::CallingConv::ID CC, Module &Mod,