Home
last modified time | relevance | path

Searched refs:ArgRegs (Results 1 – 20 of 20) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCCallingConv.cpp72 static const MCPhysReg ArgRegs[] = { in CC_PPC32_SVR4_Custom_AlignArgRegs() local
76 const unsigned NumArgRegs = std::size(ArgRegs); in CC_PPC32_SVR4_Custom_AlignArgRegs()
78 unsigned RegNum = State.getFirstUnallocated(ArgRegs); in CC_PPC32_SVR4_Custom_AlignArgRegs()
85 State.AllocateReg(ArgRegs[RegNum]); in CC_PPC32_SVR4_Custom_AlignArgRegs()
97 static const MCPhysReg ArgRegs[] = { in CC_PPC32_SVR4_Custom_SkipLastArgRegsPPCF128() local
101 const unsigned NumArgRegs = std::size(ArgRegs); in CC_PPC32_SVR4_Custom_SkipLastArgRegsPPCF128()
103 unsigned RegNum = State.getFirstUnallocated(ArgRegs); in CC_PPC32_SVR4_Custom_SkipLastArgRegsPPCF128()
110 State.AllocateReg(ArgRegs[RegNum + i]); in CC_PPC32_SVR4_Custom_SkipLastArgRegsPPCF128()
122 static const MCPhysReg ArgRegs[] = { in CC_PPC32_SVR4_Custom_AlignFPArgRegs() local
127 const unsigned NumArgRegs = std::size(ArgRegs); in CC_PPC32_SVR4_Custom_AlignFPArgRegs()
[all …]
H A DPPCFastISel.cpp184 SmallVectorImpl<unsigned> &ArgRegs,
1374 SmallVectorImpl<unsigned> &ArgRegs, in processCallArgs() argument
1429 unsigned Arg = ArgRegs[VA.getValNo()]; in processCallArgs()
1600 SmallVector<unsigned, 8> ArgRegs; in fastLowerCall() local
1605 ArgRegs.reserve(NumArgs); in fastLowerCall()
1634 ArgRegs.push_back(Arg); in fastLowerCall()
1643 if (!processCallArgs(Args, ArgRegs, ArgVTs, ArgFlags, in fastLowerCall()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsCallLowering.cpp409 ArrayRef<MCPhysReg> ArgRegs = ABI.GetVarArgRegs(); in lowerFormalArguments() local
410 unsigned Idx = CCInfo.getFirstUnallocated(ArgRegs); in lowerFormalArguments()
414 if (ArgRegs.size() == Idx) in lowerFormalArguments()
419 (int)(RegSize * (ArgRegs.size() - Idx)); in lowerFormalArguments()
426 for (unsigned I = Idx; I < ArgRegs.size(); ++I, VaArgOffset += RegSize) { in lowerFormalArguments()
427 MIRBuilder.getMBB().addLiveIn(ArgRegs[I]); in lowerFormalArguments()
430 MIRBuilder.buildCopy(RegTy, Register(ArgRegs[I])); in lowerFormalArguments()
H A DMipsISelLowering.cpp4434 ArrayRef<MCPhysReg> ArgRegs = ABI.GetByValArgRegs(); in passByValArg() local
4445 unsigned ArgReg = ArgRegs[FirstReg + I]; in passByValArg()
4494 unsigned ArgReg = ArgRegs[FirstReg + I]; in passByValArg()
4517 ArrayRef<MCPhysReg> ArgRegs = ABI.GetVarArgRegs(); in writeVarArgRegs() local
4518 unsigned Idx = State.getFirstUnallocated(ArgRegs); in writeVarArgRegs()
4529 if (ArgRegs.size() == Idx) in writeVarArgRegs()
4534 (int)(RegSizeInBytes * (ArgRegs.size() - Idx)); in writeVarArgRegs()
4546 for (unsigned I = Idx; I < ArgRegs.size(); in writeVarArgRegs()
4548 unsigned Reg = addLiveIn(MF, ArgRegs[I], RC); in writeVarArgRegs()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVCallLowering.cpp445 ArrayRef<MCPhysReg> ArgRegs = RISCV::getArgGPRs(Subtarget.getTargetABI()); in saveVarArgRegisters() local
447 unsigned Idx = CCInfo.getFirstUnallocated(ArgRegs); in saveVarArgRegisters()
453 int VarArgsSaveSize = XLenInBytes * (ArgRegs.size() - Idx); in saveVarArgRegisters()
485 for (unsigned I = Idx; I < ArgRegs.size(); ++I) { in saveVarArgRegisters()
488 VReg, ArgRegs[I], in saveVarArgRegisters()
490 ArgRegs[I], XLenVT, CCValAssign::Full)); in saveVarArgRegisters()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVCallLowering.h34 SmallVector<Register> ArgRegs; member
H A DSPIRVCallLowering.cpp472 if (!GR->getSPIRVTypeForVReg(IC.ArgRegs[i])) in produceIndirectPtrTypes()
473 GR->assignSPIRVTypeToVReg(SPIRVTy, IC.ArgRegs[i], MF); in produceIndirectPtrTypes()
588 IndirectCall.ArgRegs.push_back(Arg.Regs[0]); in lowerCall()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARC/
H A DARCISelLowering.cpp559 static const MCPhysReg ArgRegs[] = {ARC::R0, ARC::R1, ARC::R2, ARC::R3, in LowerCallArguments() local
562 unsigned FirstVAReg = CCInfo.getFirstUnallocated(ArgRegs); in LowerCallArguments()
563 if (FirstVAReg < std::size(ArgRegs)) { in LowerCallArguments()
569 int VarFI = MFI.CreateFixedObject((std::size(ArgRegs) - FirstVAReg) * 4, in LowerCallArguments()
573 for (unsigned i = FirstVAReg; i < std::size(ArgRegs); i++) { in LowerCallArguments()
576 RegInfo.addLiveIn(ArgRegs[i], VReg); in LowerCallArguments()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCallLowering.h56 SmallVectorImpl<std::pair<MCRegister, Register>> &ArgRegs,
H A DAMDGPUCallLowering.cpp752 … SmallVectorImpl<std::pair<MCRegister, Register>> &ArgRegs, in passSpecialInputs() argument
841 ArgRegs.emplace_back(OutgoingArg->getRegister(), InputReg); in passSpecialInputs()
939 ArgRegs.emplace_back(OutgoingArg->getRegister(), InputReg); in passSpecialInputs()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMFastISel.cpp217 SmallVectorImpl<Register> &ArgRegs,
1876 SmallVectorImpl<Register> &ArgRegs, in ProcessCallArgs() argument
1943 Register Arg = ArgRegs[VA.getValNo()]; in ProcessCallArgs()
2224 SmallVector<Register, 8> ArgRegs; in ARMEmitLibcall() local
2228 ArgRegs.reserve(I->getNumOperands()); in ARMEmitLibcall()
2243 ArgRegs.push_back(Arg); in ARMEmitLibcall()
2251 if (!ProcessCallArgs(Args, ArgRegs, ArgVTs, ArgFlags, in ARMEmitLibcall()
2333 SmallVector<Register, 8> ArgRegs; in SelectCall() local
2338 ArgRegs.reserve(arg_size); in SelectCall()
2376 ArgRegs.push_back(Arg); in SelectCall()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYISelLowering.cpp371 ArrayRef<MCPhysReg> ArgRegs = ArrayRef(GPRArgRegs); in LowerFormalArguments() local
372 unsigned Idx = CCInfo.getFirstUnallocated(ArgRegs); in LowerFormalArguments()
385 if (ArgRegs.size() == Idx) { in LowerFormalArguments()
389 VarArgsSaveSize = XLenInBytes * (ArgRegs.size() - Idx); in LowerFormalArguments()
400 for (unsigned I = Idx; I < ArgRegs.size(); in LowerFormalArguments()
403 RegInfo.addLiveIn(ArgRegs[I], Reg); in LowerFormalArguments()
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp1251 static const MCPhysReg ArgRegs[] = { in LowerCCCArguments() local
1255 unsigned FirstVAReg = CCInfo.getFirstUnallocated(ArgRegs); in LowerCCCArguments()
1256 if (FirstVAReg < std::size(ArgRegs)) { in LowerCCCArguments()
1260 for (int i = std::size(ArgRegs) - 1; i >= (int)FirstVAReg; --i) { in LowerCCCArguments()
1270 RegInfo.addLiveIn(ArgRegs[i], VReg); in LowerCCCArguments()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DCallLowering.h597 ArrayRef<ArrayRef<Register>> ArgRegs, Register SwiftErrorVReg,
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCallLowering.cpp96 ArrayRef<ArrayRef<Register>> ArgRegs, in lowerCall() argument
136 ArgInfo OrigArg{ArgRegs[i], *Arg.get(), i, getAttributesForArgIdx(CB, i), in lowerCall()
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/
H A DSparcISelLowering.cpp584 static const MCPhysReg ArgRegs[] = { in LowerFormalArguments_32() local
587 unsigned NumAllocated = CCInfo.getFirstUnallocated(ArgRegs); in LowerFormalArguments_32()
588 const MCPhysReg *CurArgReg = ArgRegs+NumAllocated, *ArgRegEnd = ArgRegs+6; in LowerFormalArguments_32()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.cpp143 static const MCPhysReg ArgRegs[] = { in CC_SkipOdd() local
147 const unsigned NumArgRegs = std::size(ArgRegs); in CC_SkipOdd()
148 unsigned RegNum = State.getFirstUnallocated(ArgRegs); in CC_SkipOdd()
152 State.AllocateReg(ArgRegs[RegNum]); in CC_SkipOdd()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchISelLowering.cpp5113 ArrayRef<MCPhysReg> ArgRegs = ArrayRef(ArgGPRs); in LowerFormalArguments() local
5114 unsigned Idx = CCInfo.getFirstUnallocated(ArgRegs); in LowerFormalArguments()
5127 if (ArgRegs.size() == Idx) { in LowerFormalArguments()
5131 VarArgsSaveSize = GRLenInBytes * (ArgRegs.size() - Idx); in LowerFormalArguments()
5151 for (unsigned I = Idx; I < ArgRegs.size(); in LowerFormalArguments()
5154 RegInfo.addLiveIn(ArgRegs[I], Reg); in LowerFormalArguments()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FastISel.cpp3285 SmallVector<unsigned, 16> ArgRegs; in fastLowerCall() local
3329 ArgRegs.push_back(ResultReg); in fastLowerCall()
3360 unsigned ArgReg = ArgRegs[VA.getValNo()]; in fastLowerCall()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp19758 ArrayRef<MCPhysReg> ArgRegs = RISCV::getArgGPRs(Subtarget.getTargetABI()); in LowerFormalArguments() local
19759 unsigned Idx = CCInfo.getFirstUnallocated(ArgRegs); in LowerFormalArguments()
19767 int VarArgsSaveSize = XLenInBytes * (ArgRegs.size() - Idx); in LowerFormalArguments()
19792 for (unsigned I = Idx; I < ArgRegs.size(); ++I) { in LowerFormalArguments()
19794 RegInfo.addLiveIn(ArgRegs[I], Reg); in LowerFormalArguments()