Lines Matching refs:CCInfo

66 static unsigned findFirstFreeSGPR(CCState &CCInfo) {  in findFirstFreeSGPR()  argument
69 if (!CCInfo.isAllocated(AMDGPU::SGPR0 + Reg)) { in findFirstFreeSGPR()
1877 void SITargetLowering::allocateSpecialEntryInputVGPRs(CCState &CCInfo, in allocateSpecialEntryInputVGPRs() argument
1888 CCInfo.AllocateReg(Reg); in allocateSpecialEntryInputVGPRs()
1903 CCInfo.AllocateReg(Reg); in allocateSpecialEntryInputVGPRs()
1917 CCInfo.AllocateReg(Reg); in allocateSpecialEntryInputVGPRs()
1927 static ArgDescriptor allocateVGPR32Input(CCState &CCInfo, unsigned Mask = ~0u, in allocateVGPR32Input() argument
1934 unsigned RegIdx = CCInfo.getFirstUnallocated(ArgVGPRs); in allocateVGPR32Input()
1937 int64_t Offset = CCInfo.AllocateStack(4, Align(4)); in allocateVGPR32Input()
1943 Reg = CCInfo.AllocateReg(Reg); in allocateVGPR32Input()
1946 MachineFunction &MF = CCInfo.getMachineFunction(); in allocateVGPR32Input()
1952 static ArgDescriptor allocateSGPR32InputImpl(CCState &CCInfo, in allocateSGPR32InputImpl() argument
1956 unsigned RegIdx = CCInfo.getFirstUnallocated(ArgSGPRs); in allocateSGPR32InputImpl()
1961 Reg = CCInfo.AllocateReg(Reg); in allocateSGPR32InputImpl()
1964 MachineFunction &MF = CCInfo.getMachineFunction(); in allocateSGPR32InputImpl()
1972 static void allocateFixedSGPRInputImpl(CCState &CCInfo, in allocateFixedSGPRInputImpl() argument
1975 Reg = CCInfo.AllocateReg(Reg); in allocateFixedSGPRInputImpl()
1977 MachineFunction &MF = CCInfo.getMachineFunction(); in allocateFixedSGPRInputImpl()
1981 static void allocateSGPR32Input(CCState &CCInfo, ArgDescriptor &Arg) { in allocateSGPR32Input() argument
1983 allocateFixedSGPRInputImpl(CCInfo, &AMDGPU::SGPR_32RegClass, in allocateSGPR32Input()
1986 Arg = allocateSGPR32InputImpl(CCInfo, &AMDGPU::SGPR_32RegClass, 32); in allocateSGPR32Input()
1989 static void allocateSGPR64Input(CCState &CCInfo, ArgDescriptor &Arg) { in allocateSGPR64Input() argument
1991 allocateFixedSGPRInputImpl(CCInfo, &AMDGPU::SGPR_64RegClass, in allocateSGPR64Input()
1994 Arg = allocateSGPR32InputImpl(CCInfo, &AMDGPU::SGPR_64RegClass, 16); in allocateSGPR64Input()
2000 CCState &CCInfo, MachineFunction &MF, in allocateSpecialInputVGPRs() argument
2006 Arg = allocateVGPR32Input(CCInfo, Mask); in allocateSpecialInputVGPRs()
2011 Arg = allocateVGPR32Input(CCInfo, Mask << 10, Arg); in allocateSpecialInputVGPRs()
2016 Info.setWorkItemIDZ(allocateVGPR32Input(CCInfo, Mask << 20, Arg)); in allocateSpecialInputVGPRs()
2021 CCState &CCInfo, MachineFunction &MF, in allocateSpecialInputVGPRsFixed() argument
2023 Register Reg = CCInfo.AllocateReg(AMDGPU::VGPR31); in allocateSpecialInputVGPRsFixed()
2034 CCState &CCInfo, in allocateSpecialInputSGPRs() argument
2042 allocateSGPR64Input(CCInfo, ArgInfo.DispatchPtr); in allocateSpecialInputSGPRs()
2045 allocateSGPR64Input(CCInfo, ArgInfo.QueuePtr); in allocateSpecialInputSGPRs()
2050 allocateSGPR64Input(CCInfo, ArgInfo.ImplicitArgPtr); in allocateSpecialInputSGPRs()
2053 allocateSGPR64Input(CCInfo, ArgInfo.DispatchID); in allocateSpecialInputSGPRs()
2058 allocateSGPR32Input(CCInfo, ArgInfo.WorkGroupIDX); in allocateSpecialInputSGPRs()
2061 allocateSGPR32Input(CCInfo, ArgInfo.WorkGroupIDY); in allocateSpecialInputSGPRs()
2064 allocateSGPR32Input(CCInfo, ArgInfo.WorkGroupIDZ); in allocateSpecialInputSGPRs()
2067 allocateSGPR32Input(CCInfo, ArgInfo.LDSKernelId); in allocateSpecialInputSGPRs()
2071 void SITargetLowering::allocateHSAUserSGPRs(CCState &CCInfo, in allocateHSAUserSGPRs() argument
2078 CCInfo.AllocateReg(ImplicitBufferPtrReg); in allocateHSAUserSGPRs()
2085 CCInfo.AllocateReg(PrivateSegmentBufferReg); in allocateHSAUserSGPRs()
2091 CCInfo.AllocateReg(DispatchPtrReg); in allocateHSAUserSGPRs()
2097 CCInfo.AllocateReg(QueuePtrReg); in allocateHSAUserSGPRs()
2103 CCInfo.AllocateReg(InputPtrReg); in allocateHSAUserSGPRs()
2112 CCInfo.AllocateReg(DispatchIDReg); in allocateHSAUserSGPRs()
2118 CCInfo.AllocateReg(FlatScratchInitReg); in allocateHSAUserSGPRs()
2124 CCInfo.AllocateReg(Reg); in allocateHSAUserSGPRs()
2132 void SITargetLowering::allocateSystemSGPRs(CCState &CCInfo, in allocateSystemSGPRs() argument
2152 CCInfo.AllocateReg(Reg); in allocateSystemSGPRs()
2159 CCInfo.AllocateReg(Reg); in allocateSystemSGPRs()
2165 CCInfo.AllocateReg(Reg); in allocateSystemSGPRs()
2171 CCInfo.AllocateReg(Reg); in allocateSystemSGPRs()
2177 CCInfo.AllocateReg(Reg); in allocateSystemSGPRs()
2191 PrivateSegmentWaveByteOffsetReg = findFirstFreeSGPR(CCInfo); in allocateSystemSGPRs()
2198 CCInfo.AllocateReg(PrivateSegmentWaveByteOffsetReg); in allocateSystemSGPRs()
2362 CCState CCInfo(CallConv, isVarArg, DAG.getMachineFunction(), ArgLocs, in LowerFormalArguments() local
2396 CCInfo.AllocateReg(AMDGPU::VGPR0); in LowerFormalArguments()
2397 CCInfo.AllocateReg(AMDGPU::VGPR1); in LowerFormalArguments()
2423 allocateSpecialEntryInputVGPRs(CCInfo, MF, *TRI, *Info); in LowerFormalArguments()
2424 allocateHSAUserSGPRs(CCInfo, MF, *TRI, *Info); in LowerFormalArguments()
2427 allocateSpecialInputVGPRsFixed(CCInfo, MF, *TRI, *Info); in LowerFormalArguments()
2431 analyzeFormalArgumentsCompute(CCInfo, Ins); in LowerFormalArguments()
2434 CCInfo.AnalyzeFormalArguments(Splits, AssignFn); in LowerFormalArguments()
2562 allocateSystemSGPRs(CCInfo, MF, *Info, CallConv, IsGraphics); in LowerFormalArguments()
2564 CCInfo.AllocateReg(Info->getScratchRSrcReg()); in LowerFormalArguments()
2566 allocateSpecialInputSGPRs(CCInfo, MF, *TRI, *Info); in LowerFormalArguments()
2573 unsigned StackArgSize = CCInfo.getNextStackOffset(); in LowerFormalArguments()
2594 CCState CCInfo(CallConv, IsVarArg, MF, RVLocs, Context); in CanLowerReturn() local
2595 return CCInfo.CheckReturn(Outs, CCAssignFnForReturn(CallConv, IsVarArg)); in CanLowerReturn()
2622 CCState CCInfo(CallConv, isVarArg, DAG.getMachineFunction(), RVLocs, in LowerReturn() local
2626 CCInfo.AnalyzeReturn(Outs, CCAssignFnForReturn(CallConv, isVarArg)); in LowerReturn()
2702 CCState CCInfo(CallConv, IsVarArg, DAG.getMachineFunction(), RVLocs, in LowerCallResult() local
2704 CCInfo.AnalyzeCallResult(Ins, RetCC); in LowerCallResult()
2753 CCState &CCInfo, in passSpecialInputs() argument
2841 if (!CCInfo.AllocateReg(OutgoingArg->getRegister())) in passSpecialInputs()
2845 CCInfo.AllocateStack(ArgVT.getStoreSize(), Align(4)); in passSpecialInputs()
2933 CCInfo.AllocateReg(OutgoingArg->getRegister()); in passSpecialInputs()
2935 unsigned SpecialArgOffset = CCInfo.AllocateStack(4, Align(4)); in passSpecialInputs()
3020 CCState CCInfo(CalleeCC, IsVarArg, MF, ArgLocs, Ctx); in isEligibleForTailCallOptimization() local
3022 CCInfo.AnalyzeCallOperands(Outs, CCAssignFnForCall(CalleeCC, IsVarArg)); in isEligibleForTailCallOptimization()
3028 if (CCInfo.getNextStackOffset() > FuncInfo->getBytesInStackArgArea()) in isEligibleForTailCallOptimization()
3124 CCState CCInfo(CallConv, IsVarArg, MF, ArgLocs, *DAG.getContext()); in LowerCall() local
3129 passSpecialInputs(CLI, CCInfo, *Info, RegsToPass, MemOpChains, Chain); in LowerCall()
3132 CCInfo.AnalyzeCallOperands(Outs, AssignFn); in LowerCall()
3135 unsigned NumBytes = CCInfo.getNextStackOffset(); in LowerCall()