Home
last modified time | relevance | path

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

/openbsd/gnu/llvm/llvm/lib/Target/PowerPC/
H A DPPCCallingConv.cpp36 static const MCPhysReg ArgRegs[] = { in CC_PPC32_SVR4_Custom_AlignArgRegs() local
40 const unsigned NumArgRegs = std::size(ArgRegs); in CC_PPC32_SVR4_Custom_AlignArgRegs()
42 unsigned RegNum = State.getFirstUnallocated(ArgRegs); in CC_PPC32_SVR4_Custom_AlignArgRegs()
49 State.AllocateReg(ArgRegs[RegNum]); in CC_PPC32_SVR4_Custom_AlignArgRegs()
61 static const MCPhysReg ArgRegs[] = { in CC_PPC32_SVR4_Custom_SkipLastArgRegsPPCF128() local
65 const unsigned NumArgRegs = std::size(ArgRegs); in CC_PPC32_SVR4_Custom_SkipLastArgRegsPPCF128()
67 unsigned RegNum = State.getFirstUnallocated(ArgRegs); in CC_PPC32_SVR4_Custom_SkipLastArgRegsPPCF128()
74 State.AllocateReg(ArgRegs[RegNum + i]); in CC_PPC32_SVR4_Custom_SkipLastArgRegsPPCF128()
86 static const MCPhysReg ArgRegs[] = { in CC_PPC32_SVR4_Custom_AlignFPArgRegs() local
91 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
1431 unsigned Arg = ArgRegs[VA.getValNo()]; in processCallArgs()
1602 SmallVector<unsigned, 8> ArgRegs; in fastLowerCall() local
1607 ArgRegs.reserve(NumArgs); in fastLowerCall()
1636 ArgRegs.push_back(Arg); in fastLowerCall()
1645 if (!processCallArgs(Args, ArgRegs, ArgVTs, ArgFlags, in fastLowerCall()
/openbsd/gnu/llvm/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.cpp4422 ArrayRef<MCPhysReg> ArgRegs = ABI.GetByValArgRegs(); in passByValArg() local
4433 unsigned ArgReg = ArgRegs[FirstReg + I]; in passByValArg()
4482 unsigned ArgReg = ArgRegs[FirstReg + I]; in passByValArg()
4505 ArrayRef<MCPhysReg> ArgRegs = ABI.GetVarArgRegs(); in writeVarArgRegs() local
4506 unsigned Idx = State.getFirstUnallocated(ArgRegs); in writeVarArgRegs()
4517 if (ArgRegs.size() == Idx) in writeVarArgRegs()
4522 (int)(RegSizeInBytes * (ArgRegs.size() - Idx)); in writeVarArgRegs()
4534 for (unsigned I = Idx; I < ArgRegs.size(); in writeVarArgRegs()
4536 unsigned Reg = addLiveIn(MF, ArgRegs[I], RC); in writeVarArgRegs()
/openbsd/gnu/llvm/llvm/lib/Target/ARC/
H A DARCISelLowering.cpp557 static const MCPhysReg ArgRegs[] = {ARC::R0, ARC::R1, ARC::R2, ARC::R3, in LowerCallArguments() local
560 unsigned FirstVAReg = CCInfo.getFirstUnallocated(ArgRegs); in LowerCallArguments()
561 if (FirstVAReg < std::size(ArgRegs)) { in LowerCallArguments()
567 int VarFI = MFI.CreateFixedObject((std::size(ArgRegs) - FirstVAReg) * 4, in LowerCallArguments()
571 for (unsigned i = FirstVAReg; i < std::size(ArgRegs); i++) { in LowerCallArguments()
574 RegInfo.addLiveIn(ArgRegs[i], VReg); in LowerCallArguments()
/openbsd/gnu/llvm/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()
/openbsd/gnu/llvm/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 …]
/openbsd/gnu/llvm/llvm/lib/Target/CSKY/
H A DCSKYISelLowering.cpp367 ArrayRef<MCPhysReg> ArgRegs = ArrayRef(GPRArgRegs); in LowerFormalArguments() local
368 unsigned Idx = CCInfo.getFirstUnallocated(ArgRegs); in LowerFormalArguments()
381 if (ArgRegs.size() == Idx) { in LowerFormalArguments()
385 VarArgsSaveSize = XLenInBytes * (ArgRegs.size() - Idx); in LowerFormalArguments()
396 for (unsigned I = Idx; I < ArgRegs.size(); in LowerFormalArguments()
399 RegInfo.addLiveIn(ArgRegs[I], Reg); in LowerFormalArguments()
/openbsd/gnu/llvm/llvm/include/llvm/CodeGen/GlobalISel/
H A DCallLowering.h583 ArrayRef<ArrayRef<Register>> ArgRegs, Register SwiftErrorVReg,
/openbsd/gnu/llvm/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp1340 static const MCPhysReg ArgRegs[] = { in LowerCCCArguments() local
1344 unsigned FirstVAReg = CCInfo.getFirstUnallocated(ArgRegs); in LowerCCCArguments()
1345 if (FirstVAReg < std::size(ArgRegs)) { in LowerCCCArguments()
1349 for (int i = std::size(ArgRegs) - 1; i >= (int)FirstVAReg; --i) { in LowerCCCArguments()
1359 RegInfo.addLiveIn(ArgRegs[i], VReg); in LowerCCCArguments()
/openbsd/gnu/llvm/llvm/lib/Target/LoongArch/
H A DLoongArchISelLowering.cpp2264 ArrayRef<MCPhysReg> ArgRegs = ArrayRef(ArgGPRs); in LowerFormalArguments() local
2265 unsigned Idx = CCInfo.getFirstUnallocated(ArgRegs); in LowerFormalArguments()
2278 if (ArgRegs.size() == Idx) { in LowerFormalArguments()
2282 VarArgsSaveSize = GRLenInBytes * (ArgRegs.size() - Idx); in LowerFormalArguments()
2302 for (unsigned I = Idx; I < ArgRegs.size(); in LowerFormalArguments()
2305 RegInfo.addLiveIn(ArgRegs[I], Reg); in LowerFormalArguments()
/openbsd/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
H A DCallLowering.cpp92 ArrayRef<ArrayRef<Register>> ArgRegs, in lowerCall() argument
129 ArgInfo OrigArg{ArgRegs[i], *Arg.get(), i, getAttributesForArgIdx(CB, i), in lowerCall()
/openbsd/gnu/llvm/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()
/openbsd/gnu/llvm/llvm/lib/Target/Sparc/
H A DSparcISelLowering.cpp582 static const MCPhysReg ArgRegs[] = { in LowerFormalArguments_32() local
585 unsigned NumAllocated = CCInfo.getFirstUnallocated(ArgRegs); in LowerFormalArguments_32()
586 const MCPhysReg *CurArgReg = ArgRegs+NumAllocated, *ArgRegEnd = ArgRegs+6; in LowerFormalArguments_32()
/openbsd/gnu/llvm/llvm/lib/Target/X86/
H A DX86FastISel.cpp3233 SmallVector<unsigned, 16> ArgRegs; in fastLowerCall() local
3277 ArgRegs.push_back(ResultReg); in fastLowerCall()
3309 unsigned ArgReg = ArgRegs[VA.getValNo()]; in fastLowerCall()
/openbsd/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp12685 ArrayRef<MCPhysReg> ArgRegs = ArrayRef(ArgGPRs); in LowerFormalArguments() local
12686 unsigned Idx = CCInfo.getFirstUnallocated(ArgRegs); in LowerFormalArguments()
12699 if (ArgRegs.size() == Idx) { in LowerFormalArguments()
12703 VarArgsSaveSize = XLenInBytes * (ArgRegs.size() - Idx); in LowerFormalArguments()
12722 for (unsigned I = Idx; I < ArgRegs.size(); in LowerFormalArguments()
12725 RegInfo.addLiveIn(ArgRegs[I], Reg); in LowerFormalArguments()