/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64LowerHomogeneousPrologEpilog.cpp | 150 for (auto Reg : Regs) { in getFrameHelperName() 317 assert(Regs.size() >= 2); in getOrCreateFrameHelper() 333 auto LRIdx = std::distance(Regs.begin(), llvm::find(Regs, AArch64::LR)); in getOrCreateFrameHelper() 339 emitStore(MF, MBB, MBB.end(), TII, Regs[Size - 2], Regs[Size - 1], in getOrCreateFrameHelper() 348 emitStore(MF, MBB, MBB.end(), TII, Regs[I - 1], Regs[I], Size - I - 1, in getOrCreateFrameHelper() 374 emitLoad(MF, MBB, MBB.end(), TII, Regs[I], Regs[I + 1], Size - I - 2, in getOrCreateFrameHelper() 377 emitLoad(MF, MBB, MBB.end(), TII, Regs[Size - 2], Regs[Size - 1], Size, in getOrCreateFrameHelper() 520 emitLoad(MF, MBB, MBBI, *TII, Regs[I], Regs[I + 1], Size - I - 2, false); in lowerEpilog() 522 emitLoad(MF, MBB, MBBI, *TII, Regs[Size - 2], Regs[Size - 1], Size, true); in lowerEpilog() 610 emitStore(MF, MBB, MBBI, *TII, Regs[Size - 2], Regs[Size - 1], -Size, true); in lowerProlog() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | CallingConvLower.h | 316 for (unsigned i = 0; i < Regs.size(); ++i) in getFirstUnallocated() 317 if (!isAllocated(Regs[i])) in getFirstUnallocated() 319 return Regs.size(); in getFirstUnallocated() 349 MCPhysReg AllocateReg(ArrayRef<MCPhysReg> Regs) { in AllocateReg() argument 351 if (FirstUnalloc == Regs.size()) in AllocateReg() 355 MCPhysReg Reg = Regs[FirstUnalloc]; in AllocateReg() 364 if (RegsRequired > Regs.size()) in AllocateRegBlock() 372 if (isAllocated(Regs[StartIdx + BlockIdx])) { in AllocateRegBlock() 380 MarkAllocated(Regs[StartIdx + BlockIdx]); in AllocateRegBlock() 382 return Regs[StartIdx]; in AllocateRegBlock() [all …]
|
H A D | RegisterPressure.h | 276 RegSet Regs; variable 298 RegSet::const_iterator I = Regs.find(SparseIndex); in contains() 299 if (I == Regs.end()) in contains() 308 auto InsertRes = Regs.insert(IndexMaskPair(SparseIndex, Pair.LaneMask)); in insert() 321 RegSet::iterator I = Regs.find(SparseIndex); in erase() 322 if (I == Regs.end()) in erase() 330 return Regs.size(); in size() 335 for (const IndexMaskPair &P : Regs) { in appendTo() 412 void addLiveRegs(ArrayRef<RegisterMaskPair> Regs);
|
H A D | MachineOutliner.h | 167 bool isAnyUnavailableAcrossOrOutOfSeq(std::initializer_list<Register> Regs, in isAnyUnavailableAcrossOrOutOfSeq() 171 return any_of(Regs, [&](Register Reg) { in isAnyUnavailableAcrossOrOutOfSeq()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | InlineAsmLowering.cpp | 35 SmallVector<Register, 1> Regs; member in __anon316a06300111::GISelAsmOperandInfo 132 OpInfo.Regs.push_back(R); in getRegistersForValue() 346 if (OpInfo.Regs.empty()) { in lowerInlineAsm() 369 for (Register Reg : OpInfo.Regs) { in lowerInlineAsm() 492 if (OpInfo.Regs.empty()) { in lowerInlineAsm() 499 unsigned NumRegs = OpInfo.Regs.size(); in lowerInlineAsm() 520 Inst.addReg(OpInfo.Regs[0]); in lowerInlineAsm() 531 for (Register Reg : OpInfo.Regs) { in lowerInlineAsm() 572 if (OpInfo.Regs.empty()) in lowerInlineAsm() 578 if (OpInfo.Regs.size() > 1) { in lowerInlineAsm() [all …]
|
H A D | CallLowering.cpp | 381 assert(OrigRegs[0] == Regs[0]); in buildCopyFromRegs() 386 Regs.size() == 1) { in buildCopyFromRegs() 398 Register SrcReg = Regs[0]; in buildCopyFromRegs() 439 SmallVector<Register> CastRegs(Regs.begin(), Regs.end()); in buildCopyFromRegs() 447 Regs.size() == 1) { in buildCopyFromRegs() 485 for (Register Reg : Regs) in buildCopyFromRegs() 506 Regs = Regs.drop_front(PartsPerElt); in buildCopyFromRegs() 517 if (NumElts == Regs.size()) in buildCopyFromRegs() 535 for (Register R : Regs) { in buildCopyFromRegs() 798 Args[i].OrigRegs.assign(Args[i].Regs.begin(), Args[i].Regs.end()); in handleAssignments() [all …]
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | RegisterInfoEmitter.cpp | 387 for (auto &RE : Regs) { in EmitRegMappingTables() 448 for (auto &RE : Regs) { in EmitRegMappingTables() 512 for (auto &RE : Regs) { in EmitRegMapping() 899 for (auto I = Regs.begin(), E = Regs.end(); I != E; ++I, ++i) { in runMCDesc() 968 for (const auto &Reg : Regs) { in runMCDesc() 1070 for (const auto &RE : Regs) { in runMCDesc() 1096 EmitRegMapping(OS, Regs, false); in runMCDesc() 1442 for (const auto &Reg : Regs) in runTargetDesc() 1452 for (const auto &Reg : Regs) { in runTargetDesc() 1667 EmitRegMapping(OS, Regs, true); in runTargetDesc() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | CallLowering.h | 63 SmallVector<Register, 4> Regs; member 81 ArgInfo(ArrayRef<Register> Regs, Type *Ty, unsigned OrigIndex, 84 : BaseArgInfo(Ty, Flags, IsFixed), Regs(Regs.begin(), Regs.end()), in BaseArgInfo() 86 if (!Regs.empty() && Flags.empty()) in BaseArgInfo() 90 (Regs.empty() || Regs[0] == 0)) && in BaseArgInfo() 94 ArgInfo(ArrayRef<Register> Regs, const Value &OrigValue, unsigned OrigIndex, 97 : ArgInfo(Regs, OrigValue.getType(), OrigIndex, Flags, IsFixed, &OrigValue) {} 298 assignValueToAddress(Arg.Regs[ValRegIndex], Addr, MemTy, MPO, VA); in assignValueToAddress()
|
H A D | IRTranslator.h | 708 auto Regs = getOrCreateVRegs(Val); in getOrCreateVReg() local 709 if (Regs.empty()) in getOrCreateVReg() 711 assert(Regs.size() == 1 && in getOrCreateVReg() 713 return Regs[0]; in getOrCreateVReg() 718 auto &Regs = *VMap.getVRegs(Token); in getOrCreateConvergenceTokenVReg() local 719 if (!Regs.empty()) { in getOrCreateConvergenceTokenVReg() 720 assert(Regs.size() == 1 && in getOrCreateConvergenceTokenVReg() 722 return Regs[0]; in getOrCreateConvergenceTokenVReg() 726 Regs.push_back(Reg); in getOrCreateConvergenceTokenVReg()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZFrameLowering.cpp | 922 auto *Regs = in isXPLeafCandidate() local 1079 SavedRegs.set(Regs.getFramePointerRegister()); in determineCalleeSaves() 1109 MIB.addReg(Regs.getStackPointerRegister()); in spillCalleeSavedRegisters() 1177 .addReg(Regs.getStackPointerRegister()) in restoreCalleeSavedRegisters() 1189 MIB.addReg(Regs.getStackPointerRegister()); in restoreCalleeSavedRegisters() 1284 Regs.getFramePointerRegister()) in emitPrologue() 1285 .addReg(Regs.getStackPointerRegister()); in emitPrologue() 1291 B.addLiveIn(Regs.getFramePointerRegister()); in emitPrologue() 1310 .addReg(Regs.getStackPointerRegister()) in emitPrologue() 1505 auto *Regs = in determineFrameLayout() local [all …]
|
H A D | SystemZRegisterInfo.cpp | 243 SystemZCallingConventionRegisters *Regs = Subtarget->getSpecialRegisters(); in getCalleeSavedRegs() local 245 return Regs->getCalleeSavedRegs(MF); in getCalleeSavedRegs() 253 SystemZCallingConventionRegisters *Regs = Subtarget->getSpecialRegisters(); in getCallPreservedMask() local 254 return Regs->getCallPreservedMask(MF, CC); in getCallPreservedMask() 262 SystemZCallingConventionRegisters *Regs = Subtarget->getSpecialRegisters(); in getReservedRegs() local 265 for (MCRegAliasIterator AI(Regs->getFramePointerRegister(), this, true); in getReservedRegs() 270 for (MCRegAliasIterator AI(Regs->getStackPointerRegister(), this, true); in getReservedRegs() 435 SystemZCallingConventionRegisters *Regs = Subtarget->getSpecialRegisters(); in getFrameRegister() local 437 return TFI->hasFP(MF) ? Regs->getFramePointerRegister() in getFrameRegister() 438 : Regs->getStackPointerRegister(); in getFrameRegister()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/ |
H A D | ARMUnwindOpAsm.cpp | 110 for (uint32_t Regs : {VFPRegSave & 0xffff0000u, VFPRegSave & 0x0000ffffu}) { in EmitVFPRegSave() 111 while (Regs) { in EmitVFPRegSave() 113 auto RangeMSB = llvm::bit_width(Regs); in EmitVFPRegSave() 114 auto RangeLen = llvm::countl_one(Regs << (32 - RangeMSB)); in EmitVFPRegSave() 124 Regs &= ~(-1u << RangeLSB); in EmitVFPRegSave()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/MCA/ |
H A D | HWEventListener.h | 78 HWInstructionDispatchedEvent(const InstRef &IR, ArrayRef<unsigned> Regs, in HWInstructionDispatchedEvent() argument 81 UsedPhysRegs(Regs), MicroOpcodes(UOps) {} in HWInstructionDispatchedEvent() 99 HWInstructionRetiredEvent(const InstRef &IR, ArrayRef<unsigned> Regs) in HWInstructionRetiredEvent() argument 101 FreedPhysRegs(Regs) {} in HWInstructionRetiredEvent()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/AsmParser/ |
H A D | SystemZAsmParser.cpp | 872 const unsigned *Regs; in parseRegister() local 887 if (Regs[Reg.Num] == 0) in parseRegister() 1113 const unsigned *Regs; in parseAddress() local 1115 case GR32Reg: Regs = SystemZMC::GR32Regs; break; in parseAddress() 1116 case GR64Reg: Regs = SystemZMC::GR64Regs; break; in parseAddress() 1126 Base = Reg1.Num == 0 ? 0 : Regs[Reg1.Num]; in parseAddress() 1142 Base = Reg1.Num == 0 ? 0 : Regs[Reg1.Num]; in parseAddress() 1148 Base = Reg2.Num == 0 ? 0 : Regs[Reg2.Num]; in parseAddress() 1156 Base = Reg2.Num == 0 ? 0 : Regs[Reg2.Num]; in parseAddress() 1174 Base = Reg2.Num == 0 ? 0 : Regs[Reg2.Num]; in parseAddress() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/ |
H A D | AVRISelLowering.cpp | 2030 Regs[I] = Regs[I + 1]; in insertMultibyteShift() 2034 Regs[Regs.size() - 1] = std::pair(ZeroReg, 0); in insertMultibyteShift() 2037 Regs = Regs.drop_back(1); in insertMultibyteShift() 2050 .addReg(Regs[0].first, 0, Regs[0].second) in insertMultibyteShift() 2051 .addReg(Regs[0].first, 0, Regs[0].second); in insertMultibyteShift() 2061 Regs[I] = Regs[I - 1]; in insertMultibyteShift() 2068 Regs = Regs.drop_front(1); in insertMultibyteShift() 2099 .addReg(Regs[Idx].first, 0, Regs[Idx].second); in insertMultibyteShift() 2131 Register In = Regs[I].first; in insertMultibyteShift() 2142 Regs[I] = std::pair(Out, 0); in insertMultibyteShift() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVCallLowering.cpp | 492 if (Info.OrigRet.Regs.size() > 1) in lowerCall() 521 Info.OrigRet.Regs.empty() ? Register(0) : Info.OrigRet.Regs[0]; in lowerCall() 534 assert(Arg.Regs.size() == 1 && "Call arg has multiple VRegs"); in lowerCall() 535 ArgVRegs.push_back(Arg.Regs[0]); in lowerCall() 537 if (!GR->getSPIRVTypeForVReg(Arg.Regs[0])) in lowerCall() 538 GR->assignSPIRVTypeToVReg(SPIRVTy, Arg.Regs[0], MF); in lowerCall() 586 assert(Arg.Regs.size() == 1 && "Call arg has multiple VRegs"); in lowerCall() 588 IndirectCall.ArgRegs.push_back(Arg.Regs[0]); in lowerCall() 610 if (Arg.Regs.size() > 1) in lowerCall() 612 MIB.addUse(Arg.Regs[0]); in lowerCall()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | Taint.cpp | 140 TaintedSubRegions Regs = SavedRegs ? *SavedRegs : F.getEmptyMap(); in addPartialTaint() local 142 Regs = F.add(Regs, SubRegion, Kind); in addPartialTaint() 143 ProgramStateRef NewState = State->set<DerivedSymTaint>(ParentSym, Regs); in addPartialTaint() 290 if (const TaintedSubRegions *Regs = in getTaintedSymbolsImpl() local 293 for (auto I : *Regs) { in getTaintedSymbolsImpl()
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/ |
H A D | CodeGenRegisters.cpp | 216 : RegI(Regs.begin()), RegE(Regs.end()) { in RegUnitIterator() 1201 if (!Regs.empty() && Regs[0]->isSubClassOf("X86Reg")) { in CodeGenRegBank() 1212 Regs.insert(Regs.end(), TupRegs.begin(), TupRegs.end()); in CodeGenRegBank() 1215 llvm::sort(Regs, LessRecordRegister()); in CodeGenRegBank() 1218 getReg(Regs[i]); in CodeGenRegBank() 1223 getReg(Regs[i]); in CodeGenRegBank() 1711 CodeGenRegister::Vec Regs; member 1741 if (Regs.empty()) in computeUberSets() 1778 USet->Regs.push_back(&Reg); in computeUberSets() 1816 : I->Regs) dbgs() in computeUberWeights() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | ExecutionDomainFix.cpp | 329 SmallVector<int, 4> Regs; in visitSoftInstr() local 341 auto I = partition_point(Regs, [&](int I) { in visitSoftInstr() 344 Regs.insert(I, rx); in visitSoftInstr() 350 while (!Regs.empty()) { in visitSoftInstr() 352 dv = LiveRegs[Regs.pop_back_val()]; in visitSoftInstr() 359 DomainValue *Latest = LiveRegs[Regs.pop_back_val()]; in visitSoftInstr()
|
H A D | AggressiveAntiDepBreaker.cpp | 80 std::vector<unsigned> &Regs, in GetGroupRegs() argument 85 Regs.push_back(Reg); in GetGroupRegs() 546 std::vector<unsigned> Regs; in FindSuitableFreeRegisters() local 547 State->GetGroupRegs(AntiDepGroupIndex, Regs, &RegRefs); in FindSuitableFreeRegisters() 548 assert(!Regs.empty() && "Empty register group!"); in FindSuitableFreeRegisters() 549 if (Regs.empty()) in FindSuitableFreeRegisters() 557 for (unsigned Reg : Regs) { in FindSuitableFreeRegisters() 576 for (unsigned Reg : Regs) { in FindSuitableFreeRegisters() 637 for (unsigned Reg : Regs) { in FindSuitableFreeRegisters()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVMachineFunctionInfo.h | 148 void setRVPushRegs(unsigned Regs) { RVPushRegs = Regs; }
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsCallLowering.cpp | 182 Arg.OrigRegs.assign(Arg.Regs.begin(), Arg.Regs.end()); in assignCustomValue() 183 Arg.Regs = { CopyLo.getReg(0), CopyHi.getReg(0) }; in assignCustomValue() 270 MIRBuilder.buildUnmerge({LLT::scalar(32), LLT::scalar(32)}, Arg.Regs[0]); in assignCustomValue() 274 Arg.OrigRegs.assign(Arg.Regs.begin(), Arg.Regs.end()); in assignCustomValue() 275 Arg.Regs = { Lo, Hi }; in assignCustomValue()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/ |
H A D | AMDGPUPALMetadata.cpp | 171 auto Regs = getRegisters(); in getRegister() local 172 auto It = Regs.find(MsgPackDoc.getNode(Reg)); in getRegister() 173 if (It == Regs.end()) in getRegister() 772 auto Regs = getRegisters(); in toString() local 773 for (auto I = Regs.begin(), E = Regs.end(); I != E; ++I) { in toString() 774 if (I != Regs.begin()) in toString()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
H A D | AArch64CallLowering.cpp | 318 Register ValVReg = Arg.Regs[RegIndex]; in assignValueToAddress() 450 if (CurVReg != CurArgInfo.Regs[0]) { in lowerReturn() 451 CurArgInfo.Regs[0] = CurVReg; in lowerReturn() 681 assert(OrigArg.Regs.size() == 1 && in lowerFormalArguments() 682 MRI.getType(OrigArg.Regs[0]).getSizeInBits() == 1 && in lowerFormalArguments() 688 Register OrigReg = OrigArg.Regs[0]; in lowerFormalArguments() 690 OrigArg.Regs[0] = WideReg; in lowerFormalArguments() 1288 assert(OutArg.Regs.size() == 1 && in lowerCall() 1289 MRI.getType(OutArg.Regs[0]).getSizeInBits() == 1 && in lowerCall() 1294 OutArg.Regs[0] = in lowerCall() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMLoadStoreOptimizer.cpp | 180 ArrayRef<std::pair<unsigned, bool>> Regs, 186 ArrayRef<std::pair<unsigned, bool>> Regs, 632 ArrayRef<std::pair<unsigned, bool>> Regs, in CreateLoadStoreMulti() argument 634 unsigned NumRegs = Regs.size(); in CreateLoadStoreMulti() 648 if (isThumb1 && ContainsReg(Regs, Base)) { in CreateLoadStoreMulti() 688 NewBase = Regs[NumRegs-1].first; in CreateLoadStoreMulti() 839 ArrayRef<std::pair<unsigned, bool>> Regs, in CreateLoadStoreDouble() argument 845 assert(Regs.size() == 2); in CreateLoadStoreDouble() 849 MIB.addReg(Regs[0].first, RegState::Define) in CreateLoadStoreDouble() 852 MIB.addReg(Regs[0].first, getKillRegState(Regs[0].second)) in CreateLoadStoreDouble() [all …]
|