|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
examples/Fibonacci/fibonacci.cpp 141 Args[0].IntVal = APInt(32, n);
examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp 827 ArgsV.push_back(Args[i]->codegen());
994 const std::string &VarName = VarNames[i].first;
995 ExprAST *Init = VarNames[i].second.get();
1029 NamedValues[VarNames[i].first] = OldBindings[i];
1029 NamedValues[VarNames[i].first] = OldBindings[i];
1047 Arg.setName(Args[Idx++]);
examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp 827 ArgsV.push_back(Args[i]->codegen());
994 const std::string &VarName = VarNames[i].first;
995 ExprAST *Init = VarNames[i].second.get();
1029 NamedValues[VarNames[i].first] = OldBindings[i];
1029 NamedValues[VarNames[i].first] = OldBindings[i];
1047 Arg.setName(Args[Idx++]);
examples/Kaleidoscope/BuildingAJIT/Chapter3/toy.cpp 826 ArgsV.push_back(Args[i]->codegen());
993 const std::string &VarName = VarNames[i].first;
994 ExprAST *Init = VarNames[i].second.get();
1028 NamedValues[VarNames[i].first] = OldBindings[i];
1028 NamedValues[VarNames[i].first] = OldBindings[i];
1046 Arg.setName(Args[Idx++]);
examples/Kaleidoscope/BuildingAJIT/Chapter4/toy.cpp 812 ArgsV.push_back(Args[i]->codegen());
979 const std::string &VarName = VarNames[i].first;
980 ExprAST *Init = VarNames[i].second.get();
1014 NamedValues[VarNames[i].first] = OldBindings[i];
1014 NamedValues[VarNames[i].first] = OldBindings[i];
1032 Arg.setName(Args[Idx++]);
examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp 836 ArgsV.push_back(Args[i]->codegen());
1003 const std::string &VarName = VarNames[i].first;
1004 ExprAST *Init = VarNames[i].second.get();
1038 NamedValues[VarNames[i].first] = OldBindings[i];
1038 NamedValues[VarNames[i].first] = OldBindings[i];
1056 Arg.setName(Args[Idx++]);
examples/Kaleidoscope/Chapter3/toy.cpp 458 ArgsV.push_back(Args[i]->codegen());
478 Arg.setName(Args[Idx++]);
examples/Kaleidoscope/Chapter4/toy.cpp 486 ArgsV.push_back(Args[i]->codegen());
506 Arg.setName(Args[Idx++]);
examples/Kaleidoscope/Chapter5/toy.cpp 613 ArgsV.push_back(Args[i]->codegen());
780 Arg.setName(Args[Idx++]);
examples/Kaleidoscope/Chapter6/toy.cpp 725 ArgsV.push_back(Args[i]->codegen());
892 Arg.setName(Args[Idx++]);
examples/Kaleidoscope/Chapter7/toy.cpp 832 ArgsV.push_back(Args[i]->codegen());
999 const std::string &VarName = VarNames[i].first;
1000 ExprAST *Init = VarNames[i].second.get();
1034 NamedValues[VarNames[i].first] = OldBindings[i];
1034 NamedValues[VarNames[i].first] = OldBindings[i];
1052 Arg.setName(Args[Idx++]);
examples/Kaleidoscope/Chapter8/toy.cpp 831 ArgsV.push_back(Args[i]->codegen());
998 const std::string &VarName = VarNames[i].first;
999 ExprAST *Init = VarNames[i].second.get();
1033 NamedValues[VarNames[i].first] = OldBindings[i];
1033 NamedValues[VarNames[i].first] = OldBindings[i];
1051 Arg.setName(Args[Idx++]);
examples/Kaleidoscope/Chapter9/toy.cpp 992 ArgsV.push_back(Args[i]->codegen());
1163 const std::string &VarName = VarNames[i].first;
1164 ExprAST *Init = VarNames[i].second.get();
1200 NamedValues[VarNames[i].first] = OldBindings[i];
1200 NamedValues[VarNames[i].first] = OldBindings[i];
1218 Arg.setName(Args[Idx++]);
examples/ParallelJIT/ParallelJIT.cpp 249 Args[0].IntVal = APInt(32, p->value);
gen/lib/Target/AArch64/AArch64GenAsmMatcher.inc40936 Res += Candidates[i].str() + ", ";
40937 return Res + Candidates[i].str() + "?";
gen/lib/Target/AMDGPU/AMDGPUGenAsmMatcher.inc80491 Res += Candidates[i].str() + ", ";
80492 return Res + Candidates[i].str() + "?";
gen/lib/Target/ARM/ARMGenAsmMatcher.inc16421 Res += Candidates[i].str() + ", ";
16422 return Res + Candidates[i].str() + "?";
gen/lib/Target/Mips/MipsGenAsmMatcher.inc11760 Res += Candidates[i].str() + ", ";
11761 return Res + Candidates[i].str() + "?";
gen/lib/Target/PowerPC/PPCGenAsmMatcher.inc 7247 Res += Candidates[i].str() + ", ";
7248 return Res + Candidates[i].str() + "?";
gen/lib/Target/SystemZ/SystemZGenAsmMatcher.inc 9283 Res += Candidates[i].str() + ", ";
9284 return Res + Candidates[i].str() + "?";
include/llvm/ADT/ImmutableSet.h 484 TreeTy *N = createdNodes[i];
include/llvm/ADT/MapVector.h 106 return Vector[I].second;
include/llvm/ADT/PriorityWorklist.h 101 assert(V[Index] == X && "Value not actually at index in map!");
104 V[Index] = T();
125 auto InsertResult = M.insert({V[i], i});
133 V[Index] = T();
140 V[i] = T();
168 assert(V[I->second] == X && "Value not actually at index in map!");
174 V[I->second] = T();
include/llvm/Analysis/AliasSetTracker.h 306 if (UnknownInsts[i] == I) {
307 UnknownInsts[i] = UnknownInsts.back();
include/llvm/Analysis/BlockFrequencyInfoImpl.h 451 assert(Working[Head.Index].isLoopHeader());
452 return *Working[Head.Index].Loop;
642 BFI.Working[Node.Index].getMass() = BlockMass::getEmpty();
676 const auto &Working = BFI.Working[Node.Index];
1104 Working[Header.Index].Loop = &Loops.back();
1115 if (Working[Index].isLoopHeader()) {
1116 LoopData *ContainingLoop = Working[Index].getContainingLoop();
1122 const LoopT *Loop = LI->getLoopFor(RPOT[Index]);
1129 const auto &HeaderData = Working[Header.Index];
1132 Working[Index].Loop = HeaderData.Loop;
1213 Working[Loop.getHeader().Index].getMass() = BlockMass::getFull();
1232 assert(!Working[0].isLoopHeader() && "entry block is a loop header");
1234 Working[0].getMass() = BlockMass::getFull();
1238 if (Working[Node.Index].isPackaged())
1314 if (auto *Loop = Working[Node.Index].getPackagedLoop()) {
include/llvm/Analysis/LoopInfo.h 425 if (Blocks[0] == BB)
429 if (Blocks[i] == BB) {
430 Blocks[i] = Blocks[0];
430 Blocks[i] = Blocks[0];
431 Blocks[0] = BB;
include/llvm/Bitstream/BitstreamReader.h 528 return CurAbbrevs[AbbrevNo].get();
include/llvm/Bitstream/BitstreamWriter.h 194 if (BlockInfoRecords[i].BlockID == BlockID)
195 return &BlockInfoRecords[i];
302 const BitCodeAbbrev *Abbv = CurAbbrevs[AbbrevNo].get();
include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h 601 State.Renderers[RendererID] = Renderer.getValue();
883 for (const auto &RenderOpFn : State.Renderers[RendererID])
895 State.Renderers[RendererID][RenderOpID](OutMIs[InsnID]);
include/llvm/CodeGen/LatencyPriorityQueue.h 70 return (*SUnits)[NodeNum].getHeight();
include/llvm/CodeGen/MachineFrameInfo.h 401 Objects[ObjectIndex + NumFixedObjects].PreAllocated = true;
460 Objects[ObjectIdx+NumFixedObjects].Size = Size;
474 Objects[ObjectIdx + NumFixedObjects].Alignment = assumeAligned(Align);
508 Objects[ObjectIdx+NumFixedObjects].isZExt = IsZExt;
520 Objects[ObjectIdx+NumFixedObjects].isSExt = IsSExt;
530 Objects[ObjectIdx+NumFixedObjects].SPOffset = SPOffset;
544 Objects[ObjectIdx+NumFixedObjects].SSPLayout = Kind;
683 Objects[ObjectIdx+NumFixedObjects].isImmutable = IsImmutable;
708 Objects[ObjectIdx+NumFixedObjects].StackID = ID;
731 Objects[ObjectIdx+NumFixedObjects].isStatepointSpillSlot = true;
759 Objects[ObjectIdx+NumFixedObjects].Size = ~0ULL;
include/llvm/CodeGen/MachineFunction.h 716 MBBNumbering[N] = nullptr;
include/llvm/CodeGen/MachineJumpTableInfo.h 106 JumpTables[Idx].MBBs.clear();
include/llvm/CodeGen/MachinePipeliner.h 215 int getASAP(SUnit *Node) { return ScheduleInfo[Node->NodeNum].ASAP; }
218 int getALAP(SUnit *Node) { return ScheduleInfo[Node->NodeNum].ALAP; }
230 return ScheduleInfo[Node->NodeNum].ZeroLatencyDepth;
239 return ScheduleInfo[Node->NodeNum].ZeroLatencyHeight;
include/llvm/CodeGen/PBQP/Graph.h 88 AdjEdgeIds[Idx] = AdjEdgeIds.back();
182 return Nodes[NId];
189 EdgeEntry& getEdge(EdgeId EId) { return Edges[EId]; }
197 Nodes[NId] = std::move(N);
212 Edges[EId] = std::move(E);
include/llvm/CodeGen/ResourcePriorityQueue.h 95 return (*SUnits)[NodeNum].getHeight();
include/llvm/CodeGen/ScheduleDAGInstrs.h 386 const SUnit *Addr = SUnits.empty() ? nullptr : &SUnits[0];
389 assert((Addr == nullptr || Addr == &SUnits[0]) &&
include/llvm/DebugInfo/DWARF/DWARFUnit.h 390 return DWARFDie(this, &DieArray[0]);
461 return DWARFDie(this, &DieArray[Index]);
include/llvm/DebugInfo/GSYM/LineTable.h 163 return Lines[i];
include/llvm/DebugInfo/PDB/Native/HashTable.h 145 if (auto EC = Stream.readInteger(Buckets[P].first))
150 Buckets[P].second = *Value;
281 assert(Traits.storageKeyToLookupKey(Buckets[Entry.index()].first) == K);
283 Buckets[Entry.index()].second = V;
287 auto &B = Buckets[Entry.index()];
318 auto LookupKey = Traits.storageKeyToLookupKey(Buckets[I].first);
319 NewMap.set_as_internal(LookupKey, Buckets[I].second, Traits,
320 Buckets[I].first);
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h 221 return *SourceModules[H].SourceMod;
225 return SourceModules[H].StubsToClone;
include/llvm/ExecutionEngine/Orc/IndirectionUtils.h 324 void *StubAddr = IndirectStubsInfos[Key.first].getStub(Key.second);
340 void *PtrAddr = IndirectStubsInfos[Key.first].getPtr(Key.second);
355 IndirectStubsInfos[Key.first].getPtr(Key.second));
381 *IndirectStubsInfos[Key.first].getPtr(Key.second) =
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h 432 assert(RemoteIndirectStubsInfos[K.first].StubBase != 0 &&
434 return RemoteIndirectStubsInfos[K.first].StubBase +
439 assert(RemoteIndirectStubsInfos[K.first].PtrBase != 0 &&
441 return RemoteIndirectStubsInfos[K.first].PtrBase +
include/llvm/IR/PassManager.h 505 auto *P = Passes[Idx].get();
include/llvm/IR/TypeFinder.h 59 StructType *&operator[](unsigned Idx) { return StructTypes[Idx]; }
include/llvm/LTO/legacy/LTOModule.h 140 return lto_symbol_attributes(_symbols[index].attributes);
147 return _symbols[index].name;
153 return _symbols[index].symbol;
include/llvm/Support/CommandLine.h 1482 reference operator[](size_type pos) { return Storage[pos]; }
include/llvm/Support/GenericDomTree.h 800 if (isReachableFromEntry(PredBlocks[i])) {
801 NewBBIDom = PredBlocks[i];
811 if (isReachableFromEntry(PredBlocks[i]))
812 NewBBIDom = findNearestCommonDominator(NewBBIDom, PredBlocks[i]);
include/llvm/Support/GenericDomTreeConstruction.h 283 VInfo = &NodeToInfo[NumToNode[VInfo->Parent]];
308 const NodePtr V = NumToNode[i];
310 VInfo.IDom = NumToNode[VInfo.Parent];
316 NodePtr W = NumToNode[i];
340 const NodePtr W = NumToNode[i];
342 const unsigned SDomNum = NodeToInfo[NumToNode[WInfo.Semi]].DFSNum;
419 << BlockNamePrinter(SNCA.NumToNode[Num]) << "\n");
458 const NodePtr FurthestAway = SNCA.NumToNode[NewNum];
467 const NodePtr N = SNCA.NumToNode[i];
478 << BlockNamePrinter(SNCA.NumToNode[i]) << "\n");
486 << i << ": " << BlockNamePrinter(SNCA.NumToNode[i]) << "\n");
529 const NodePtr N = SNCA.NumToNode[x];
596 NodeToInfo[NumToNode[1]].IDom = AttachTo->getBlock();
599 NodePtr W = NumToNode[i];
619 NodeToInfo[NumToNode[1]].IDom = AttachTo->getBlock();
621 const NodePtr N = NumToNode[i];
1103 const NodePtr N = SNCA.NumToNode[i];
include/llvm/Support/JSON.h 169 Value &operator[](size_t I) { return V[I]; }
612 if (!fromJSON((*A)[I], Out[I]))
include/llvm/Support/YAMLTraits.h 1890 return seq[index];
lib/Analysis/AliasSetTracker.cpp 285 return cast<Instruction>(UnknownInsts[0]);
lib/Analysis/BlockFrequencyInfoImpl.cpp 302 BlockNode Resolved = Working[Succ.Index].getResolvedNode();
323 if (Working[Resolved.Index].getContainingLoop() != OuterLoop) {
405 if (auto *Loop = Working[M.Index].getPackagedLoop())
428 BlockMass Mass = Working[Source.Index].getMass();
438 Working[W.TargetNode.Index].getMass() += Taken;
487 Scaled64 Scaled = BFI.Freqs[Index].Scaled * ScalingFactor;
488 BFI.Freqs[Index].Integer = std::max(UINT64_C(1), Scaled.toInt<uint64_t>());
490 << BFI.Freqs[Index].Scaled << ", scaled = " << Scaled
491 << ", int = " << BFI.Freqs[Index].Integer << "\n");
511 const auto &Working = BFI.Working[N.Index];
513 : BFI.Freqs[N.Index].Scaled;
524 Freqs[Index].Scaled = Working[Index].Mass.toScaled();
524 Freqs[Index].Scaled = Working[Index].Mass.toScaled();
537 Min = std::min(Min, Freqs[Index].Scaled);
538 Max = std::max(Max, Freqs[Index].Scaled);
602 Freqs[Node.Index].Integer = Freq;
641 if (!BFI.Working[Index].isPackaged())
767 if (BFI.Working[N.Index].isLoopHeader())
768 BFI.Working[N.Index].Loop->Parent = &*Loop;
770 BFI.Working[N.Index].Loop = &*Loop;
800 if (!Working[I->Index].isPackaged())
837 Working[W.TargetNode.Index].getMass() = Taken;
848 Working[W.TargetNode.Index].getMass() = Taken;
lib/Analysis/BranchProbabilityInfo.cpp 450 auto &HeaderMap = SccI.SccHeaders[SccNum];
lib/Analysis/CFLGraph.h 87 return Levels[Level];
lib/Analysis/CallGraph.cpp 203 if (CalledFunctions[i].second == Callee) {
205 CalledFunctions[i] = CalledFunctions.back();
lib/Analysis/CallGraphSCCPass.cpp 551 if (Nodes[i] != Old) continue;
552 Nodes[i] = New;
lib/Analysis/IntervalPartition.cpp 35 delete Intervals[i];
86 updatePredecessors(Intervals[i]);
112 updatePredecessors(Intervals[i]);
lib/Analysis/MemoryDependenceAnalysis.cpp 1512 Instruction *Target = PInfo[i].getResult().getInst();
1515 assert(Target->getParent() == PInfo[i].getBB());
lib/Analysis/ModuleSummaryAnalysis.cpp 442 Refs[RefCnt].setReadOnly();
445 Refs[RefCnt].setWriteOnly();
789 auto &Summary = GlobalList.second.SummaryList[0];
lib/Analysis/ScalarEvolution.cpp 7549 Indexes[VarIdxNum] = Val;
7826 Operands[i] = dyn_cast<Constant>(I->getOperand(i));
7827 if (!Operands[i]) return nullptr;
7833 Operands[i] = C;
7837 return ConstantFoldCompareInstOperands(CI->getPredicate(), Operands[0],
7838 Operands[1], DL, TLI);
7841 return ConstantFoldLoadFromConstPtr(Operands[0], LI->getType(), DL);
lib/Analysis/StratifiedSets.h 308 const auto *Link = &Links[Idx];
311 Link = &Links[Idx];
322 while (Links[CurrentIndex].hasBelow()) {
323 auto &CurrentBits = Links[CurrentIndex].Attrs;
324 auto NextIndex = Links[CurrentIndex].Below;
325 auto &NextBits = Links[NextIndex].Attrs;
417 auto *Start = &Links[Index];
423 Current = &Links[Current->getRemapIndex()];
431 auto *Next = &Links[Current->getRemapIndex()];
572 Links[Set].setBelow(At);
573 Links[At].setAbove(Set);
lib/AsmParser/LLParser.cpp 1440 GlobalValue *Val = ID < NumberedVals.size() ? NumberedVals[ID] : nullptr;
2912 Value *Val = ID < NumberedVals.size() ? NumberedVals[ID] : nullptr;
3251 GV = NumberedVals[Fn.UIntVal];
7426 GV = Fn.UIntVal < NumberedVals.size() ? NumberedVals[Fn.UIntVal] : nullptr;
7601 assert(TI[P.first].VTableVI == EmptyVI &&
7606 std::make_pair(&TI[P.first].VTableVI, P.second));
7972 NumberedValueInfos[ID] = VI;
8354 assert(Calls[P.first].first.getRef() == FwdVIRef &&
8359 std::make_pair(&Calls[P.first].first, P.second));
8441 assert(VTableFuncs[P.first].FuncVI == EmptyVI &&
8446 std::make_pair(&VTableFuncs[P.first].FuncVI, P.second));
8502 assert(Refs[P.first].getRef() == FwdVIRef &&
8506 FwdRef.first->second.push_back(std::make_pair(&Refs[P.first], P.second));
8597 assert(TypeTests[P.first] == 0 &&
8602 std::make_pair(&TypeTests[P.first], P.second));
8638 assert(VFuncIdList[P.first].GUID == 0 &&
8643 std::make_pair(&VFuncIdList[P.first].GUID, P.second));
8677 assert(ConstVCallList[P.first].VFunc.GUID == 0 &&
8682 std::make_pair(&ConstVCallList[P.first].VFunc.GUID, P.second));
8869 assert(NumberedValueInfos[GVId].getRef() != FwdVIRef);
8870 VI = NumberedValueInfos[GVId];
lib/BinaryFormat/MsgPackDocument.cpp 58 return (*Array)[Index];
lib/Bitcode/Reader/BitcodeAnalyzer.cpp 695 const PerRecordStats &RecStats = Stats.CodeFreq[FreqPairs[i].second];
714 FreqPairs[i].second, I->first, BlockInfo, CurStreamType))
717 O.OS << "UnknownCode" << FreqPairs[i].second << "\n";
849 BlockStats.CodeFreq[Code].NumInstances++;
850 BlockStats.CodeFreq[Code].TotalBits +=
853 BlockStats.CodeFreq[Code].NumAbbrev++;
lib/Bitcode/Reader/BitcodeReader.cpp 1190 if (Type *Ty = TypeList[ID])
1195 return TypeList[ID] = createIdentifiedStructType(Context);
1850 StructType *Res = cast_or_null<StructType>(TypeList[NumRecords]);
1853 TypeList[NumRecords] = nullptr;
1879 StructType *Res = cast_or_null<StructType>(TypeList[NumRecords]);
1882 TypeList[NumRecords] = nullptr;
1913 if (TypeList[NumRecords])
1917 TypeList[NumRecords++] = ResultTy;
2372 if (Record[0] >= TypeList.size() || !TypeList[Record[0]])
2374 if (TypeList[Record[0]] == VoidType)
2376 CurFullTy = TypeList[Record[0]];
2813 if (!FwdBBs[BBID])
2814 FwdBBs[BBID] = BasicBlock::Create(Context);
2815 BB = FwdBBs[BBID];
2876 V = FunctionBBs[ID];
3122 Section = SectionTable[Record[5] - 1];
3169 NewGV->setComdat(ComdatList[ComdatID - 1]);
3253 Func->setSection(SectionTable[Record[6] - 1]);
3262 Func->setGC(GCTable[Record[8] - 1]);
3280 Func->setComdat(ComdatList[ComdatID - 1]);
3722 else if (CurBBNo && FunctionBBs[CurBBNo - 1] &&
3723 !FunctionBBs[CurBBNo - 1]->empty())
3724 return &FunctionBBs[CurBBNo - 1]->back();
3802 FunctionBBs[i] = BasicBlock::Create(Context, "", F);
3812 if (I < RE && BBRefs[I]) {
3813 BBRefs[I]->insertInto(F);
3814 FunctionBBs[I] = BBRefs[I];
3814 FunctionBBs[I] = BBRefs[I];
3816 FunctionBBs[I] = BasicBlock::Create(Context, "", F);
3823 CurBB = FunctionBBs[0];
5118 OperandBundles.emplace_back(BundleTags[Record[0]], std::move(Inputs));
5138 CurBB = CurBBNo < FunctionBBs.size() ? FunctionBBs[CurBBNo] : nullptr;
5738 Refs[RefNo].setReadOnly();
5740 Refs[RefNo].setWriteOnly();
6630 return (*MsOrErr)[0];
lib/Bitcode/Reader/MetadataLoader.cpp 979 auto MDS = MDString::get(Context, MDStringRef[ID]);
997 GlobalMetadataBitPosIndex[ID - MDStringRef.size()]))
lib/Bitcode/Reader/ValueList.cpp 77 assert(FullTypes[Idx] == nullptr || FullTypes[Idx] == FullTy);
77 assert(FullTypes[Idx] == nullptr || FullTypes[Idx] == FullTy);
78 FullTypes[Idx] = FullTy;
80 WeakTrackingVH &OldV = ValuePtrs[Idx];
107 if (Value *V = ValuePtrs[Idx]) {
115 ValuePtrs[Idx] = C;
128 if (Value *V = ValuePtrs[Idx]) {
133 *FullTy = FullTypes[Idx];
143 ValuePtrs[Idx] = V;
lib/Bitcode/Writer/BitcodeWriter.cpp 2050 MDAbbrevs[MetadataAbbrev::DILocationAbbrevID] = createDILocationAbbrev();
2051 MDAbbrevs[MetadataAbbrev::GenericDINodeAbbrevID] =
lib/Bitcode/Writer/ValueEnumerator.cpp 236 Stack.back().Shuffle[I] = List[I].second;
543 ValueMap[Values[CstStart].first] = CstStart+1;
812 Values[ValueID-1].second++;
1008 ValueMap.erase(Values[i].first);
1010 MetadataMap.erase(MDs[i]);
1012 ValueMap.erase(BasicBlocks[i]);
lib/CodeGen/AggressiveAntiDepBreaker.cpp 68 GroupNodeIndices[i] = i;
70 KillIndices[i] = ~0u;
71 DefIndices[i] = BBSize;
76 unsigned Node = GroupNodeIndices[Reg];
77 while (GroupNodes[Node] != Node)
78 Node = GroupNodes[Node];
95 assert(GroupNodes[0] == 0 && "GroupNode 0 not parent!");
96 assert(GroupNodeIndices[0] == 0 && "Reg 0 not in Group 0!");
115 GroupNodeIndices[Reg] = idx;
122 return((KillIndices[Reg] != ~0u) && (DefIndices[Reg] == ~0u));
122 return((KillIndices[Reg] != ~0u) && (DefIndices[Reg] == ~0u));
167 KillIndices[Reg] = BB->size();
168 DefIndices[Reg] = ~0u;
185 KillIndices[AliasReg] = BB->size();
186 DefIndices[AliasReg] = ~0u;
222 } else if ((DefIndices[Reg] < InsertPosIndex)
223 && (DefIndices[Reg] >= Count)) {
224 DefIndices[Reg] = Count;
321 KillIndices[Reg] = KillIdx;
322 DefIndices[Reg] = ~0u;
337 KillIndices[SubregReg] = KillIdx;
338 DefIndices[SubregReg] = ~0u;
438 DefIndices[*AI] = Count;
576 unsigned Reg = Regs[i];
599 unsigned Reg = Regs[i];
661 unsigned Reg = Regs[i];
683 if (State->IsLive(NewReg) || (KillIndices[Reg] > DefIndices[NewReg])) {
683 if (State->IsLive(NewReg) || (KillIndices[Reg] > DefIndices[NewReg])) {
691 (KillIndices[Reg] > DefIndices[AliasReg])) {
691 (KillIndices[Reg] > DefIndices[AliasReg])) {
851 const SDep *Edge = Edges[i];
991 DefIndices[NewReg] = DefIndices[CurrReg];
991 DefIndices[NewReg] = DefIndices[CurrReg];
992 KillIndices[NewReg] = KillIndices[CurrReg];
992 KillIndices[NewReg] = KillIndices[CurrReg];
996 DefIndices[CurrReg] = KillIndices[CurrReg];
996 DefIndices[CurrReg] = KillIndices[CurrReg];
997 KillIndices[CurrReg] = ~0u;
998 assert(((KillIndices[CurrReg] == ~0u) !=
999 (DefIndices[CurrReg] == ~0u)) &&
lib/CodeGen/Analysis.cpp 182 InlineAsm::ConstraintInfo &CI = CInfos[i];
184 TargetLowering::ConstraintType CType = TLI.getConstraintType(CI.Codes[j]);
lib/CodeGen/AsmPrinter/AccelTable.cpp 77 Buckets[Bucket].push_back(&E.second);
lib/CodeGen/AsmPrinter/AsmPrinter.cpp 720 OutStreamer->EmitLabel(DeadBlockSyms[i]);
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp 53 LocInfo = DiagInfo->LocInfos[BufNum-1];
101 DiagInfo->LocInfos[BufNum - 1] = LocMDNode;
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp 2417 ContinuationBuilder.writeMemberType(Methods[0]);
lib/CodeGen/AsmPrinter/DwarfDebug.cpp 219 ? TmpBuf->Comments[Byte.index()].c_str()
lib/CodeGen/AsmPrinter/DwarfExpression.cpp 462 if (CU.ExprRefedBaseTypes[I].BitSize == BitSize &&
463 CU.ExprRefedBaseTypes[I].Encoding == Encoding)
lib/CodeGen/AsmPrinter/DwarfUnit.cpp 106 DIEBlocks[j]->~DIEBlock();
108 DIELocs[j]->~DIELoc();
lib/CodeGen/BranchFolding.cpp 797 if (SameTails[i].getBlock() == PredBB) {
803 unsigned t = EstimateRuntime(SameTails[i].getBlock()->begin(),
804 SameTails[i].getTailStartPos());
812 SameTails[commonTailIndex].getTailStartPos();
813 MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock();
829 SameTails[commonTailIndex].setBlock(newMBB);
830 SameTails[commonTailIndex].setTailStartPos(newMBB->begin());
890 MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock();
895 NextCommonInsts[i] = SameTails[i].getTailStartPos();
895 NextCommonInsts[i] = SameTails[i].getTailStartPos();
896 mergeOperations(SameTails[i].getTailStartPos(), *MBB);
898 assert(SameTails[i].getTailStartPos() == MBB->begin() &&
911 auto &Pos = NextCommonInsts[i];
912 assert(Pos != SameTails[i].getBlock()->end() &&
916 assert(Pos != SameTails[i].getBlock()->end() &&
921 NextCommonInsts[i] = ++Pos;
968 << printMBBReference(*MergePotentials[i].getBlock())
1010 SameTails[0].getBlock()->isLayoutSuccessor(SameTails[1].getBlock()) &&
1010 SameTails[0].getBlock()->isLayoutSuccessor(SameTails[1].getBlock()) &&
1011 SameTails[1].tailIsWholeBlock())
1014 SameTails[1].getBlock()->isLayoutSuccessor(
1015 SameTails[0].getBlock()) &&
1016 SameTails[0].tailIsWholeBlock())
1022 MachineBasicBlock *MBB = SameTails[i].getBlock();
1023 if (MBB == EntryBB && SameTails[i].tailIsWholeBlock())
1029 if (SameTails[i].tailIsWholeBlock())
1035 (SameTails[commonTailIndex].getBlock() == PredBB &&
1036 !SameTails[commonTailIndex].tailIsWholeBlock())) {
1046 MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock();
1062 LLVM_DEBUG(dbgs() << printMBBReference(*SameTails[i].getBlock())
1065 replaceTailWithBranchTo(SameTails[i].getTailStartPos(), *MBB);
1067 MergePotentials.erase(SameTails[i].getMPIter());
1096 TriedMerging.insert(MergePotentials[i].getBlock());
1207 TriedMerging.insert(MergePotentials[i].getBlock());
lib/CodeGen/CFIInstrInserter.cpp 108 return -MBBVector[MBB->getNumber()].IncomingCFAOffset;
144 MBBVector[MBB.getNumber()] = MBBInfo;
152 if (MBBVector[MBB.getNumber()].Processed) continue;
153 updateSuccCFAInfo(MBBVector[MBB.getNumber()]);
229 MBBCFAInfo &CurrentInfo = MBBVector[Current->getNumber()];
235 MBBCFAInfo &SuccInfo = MBBVector[Succ->getNumber()];
246 const MBBCFAInfo *PrevMBBInfo = &MBBVector[MF.front().getNumber()];
254 const MBBCFAInfo &MBBInfo = MBBVector[MBB.getNumber()];
313 const MBBCFAInfo &CurrMBBInfo = MBBVector[CurrMBB->getNumber()];
315 const MBBCFAInfo &SuccMBBInfo = MBBVector[Succ->getNumber()];
lib/CodeGen/CodeGenPrepare.cpp 4396 TargetLowering::AsmOperandInfo &OpInfo = TargetConstraints[i];
5040 TargetLowering::AsmOperandInfo &OpInfo = TargetConstraints[i];
lib/CodeGen/CriticalAntiDepBreaker.cpp 58 Classes[i] = nullptr;
61 KillIndices[i] = ~0u;
62 DefIndices[i] = BBSize;
76 Classes[Reg] = reinterpret_cast<TargetRegisterClass *>(-1);
77 KillIndices[Reg] = BBSize;
78 DefIndices[Reg] = ~0u;
94 Classes[Reg] = reinterpret_cast<TargetRegisterClass *>(-1);
95 KillIndices[Reg] = BBSize;
96 DefIndices[Reg] = ~0u;
120 if (KillIndices[Reg] != ~0u) {
124 Classes[Reg] = reinterpret_cast<TargetRegisterClass *>(-1);
125 KillIndices[Reg] = Count;
126 } else if (DefIndices[Reg] < InsertPosIndex && DefIndices[Reg] >= Count) {
126 } else if (DefIndices[Reg] < InsertPosIndex && DefIndices[Reg] >= Count) {
131 Classes[Reg] = reinterpret_cast<TargetRegisterClass *>(-1);
135 DefIndices[Reg] = InsertPosIndex;
199 if (!Classes[Reg] && NewRC)
200 Classes[Reg] = NewRC;
201 else if (!NewRC || Classes[Reg] != NewRC)
202 Classes[Reg] = reinterpret_cast<TargetRegisterClass *>(-1);
210 if (Classes[AliasReg]) {
211 Classes[AliasReg] = reinterpret_cast<TargetRegisterClass *>(-1);
212 Classes[Reg] = reinterpret_cast<TargetRegisterClass *>(-1);
217 if (Classes[Reg] != reinterpret_cast<TargetRegisterClass *>(-1))
231 Classes[Reg] == reinterpret_cast<TargetRegisterClass *>(-1)) {
267 DefIndices[i] = Count;
268 KillIndices[i] = ~0u;
270 Classes[i] = nullptr;
291 DefIndices[SubregReg] = Count;
292 KillIndices[SubregReg] = ~0u;
293 Classes[SubregReg] = nullptr;
300 Classes[*SR] = reinterpret_cast<TargetRegisterClass *>(-1);
316 if (!Classes[Reg] && NewRC)
317 Classes[Reg] = NewRC;
318 else if (!NewRC || Classes[Reg] != NewRC)
319 Classes[Reg] = reinterpret_cast<TargetRegisterClass *>(-1);
327 if (KillIndices[AliasReg] == ~0u) {
328 KillIndices[AliasReg] = Count;
329 DefIndices[AliasReg] = ~0u;
412 assert(((KillIndices[AntiDepReg] == ~0u) != (DefIndices[AntiDepReg] == ~0u))
412 assert(((KillIndices[AntiDepReg] == ~0u) != (DefIndices[AntiDepReg] == ~0u))
414 assert(((KillIndices[NewReg] == ~0u) != (DefIndices[NewReg] == ~0u))
414 assert(((KillIndices[NewReg] == ~0u) != (DefIndices[NewReg] == ~0u))
416 if (KillIndices[NewReg] != ~0u ||
417 Classes[NewReg] == reinterpret_cast<TargetRegisterClass *>(-1) ||
418 KillIndices[AntiDepReg] > DefIndices[NewReg])
418 KillIndices[AntiDepReg] > DefIndices[NewReg])
468 if (KillIndices[Reg] == ~0u)
629 const TargetRegisterClass *RC = AntiDepReg != 0 ? Classes[AntiDepReg]
646 LastNewReg[AntiDepReg],
670 Classes[NewReg] = Classes[AntiDepReg];
670 Classes[NewReg] = Classes[AntiDepReg];
671 DefIndices[NewReg] = DefIndices[AntiDepReg];
671 DefIndices[NewReg] = DefIndices[AntiDepReg];
672 KillIndices[NewReg] = KillIndices[AntiDepReg];
672 KillIndices[NewReg] = KillIndices[AntiDepReg];
673 assert(((KillIndices[NewReg] == ~0u) !=
674 (DefIndices[NewReg] == ~0u)) &&
677 Classes[AntiDepReg] = nullptr;
678 DefIndices[AntiDepReg] = KillIndices[AntiDepReg];
678 DefIndices[AntiDepReg] = KillIndices[AntiDepReg];
679 KillIndices[AntiDepReg] = ~0u;
680 assert(((KillIndices[AntiDepReg] == ~0u) !=
681 (DefIndices[AntiDepReg] == ~0u)) &&
685 LastNewReg[AntiDepReg] = NewReg;
lib/CodeGen/ExecutionDomainFix.cpp 74 if (LiveRegs[rx] == dv)
76 if (LiveRegs[rx])
77 release(LiveRegs[rx]);
78 LiveRegs[rx] = retain(dv);
84 if (!LiveRegs[rx])
87 release(LiveRegs[rx]);
88 LiveRegs[rx] = nullptr;
94 if (DomainValue *dv = LiveRegs[rx]) {
103 assert(LiveRegs[rx] && "Not live after collapse?");
104 LiveRegs[rx]->addDomain(domain);
123 if (LiveRegs[rx] == dv)
146 if (LiveRegs[rx] == B)
179 DomainValue *pdv = resolve(Incoming[rx]);
182 if (!LiveRegs[rx]) {
188 if (LiveRegs[rx]->isCollapsed()) {
190 unsigned Domain = LiveRegs[rx]->getFirstDomain();
198 merge(LiveRegs[rx], pdv);
297 DomainValue *dv = LiveRegs[rx];
332 DomainValue *&LR = LiveRegs[rx];
352 dv = LiveRegs[Regs.pop_back_val()];
359 DomainValue *Latest = LiveRegs[Regs.pop_back_val()];
369 if (LiveRegs[i] == Latest)
387 if (!LiveRegs[rx] || (mo.isDef() && LiveRegs[rx] != dv)) {
387 if (!LiveRegs[rx] || (mo.isDef() && LiveRegs[rx] != dv)) {
448 AliasMap[*AI].push_back(i);
lib/CodeGen/ExpandMemCmp.cpp 280 Builder.SetInsertPoint(LoadCmpBlocks[BlockIndex]);
294 PhiRes->addIncoming(Diff, LoadCmpBlocks[BlockIndex]);
302 BranchInst::Create(EndBlock, LoadCmpBlocks[BlockIndex + 1], Cmp);
328 Builder.SetInsertPoint(LoadCmpBlocks[BlockIndex]);
380 Value *Or = Builder.CreateOr(InList[i], InList[i + 1]);
380 Value *Or = Builder.CreateOr(InList[i], InList[i + 1]);
398 Cmp = Builder.CreateICmpNE(OrList[0], ConstantInt::get(Diff->getType(), 0));
410 : LoadCmpBlocks[BlockIndex + 1];
421 PhiRes->addIncoming(Zero, LoadCmpBlocks[BlockIndex]);
448 Builder.SetInsertPoint(LoadCmpBlocks[BlockIndex]);
474 ResBlock.PhiSrc1->addIncoming(LoadSrc1, LoadCmpBlocks[BlockIndex]);
475 ResBlock.PhiSrc2->addIncoming(LoadSrc2, LoadCmpBlocks[BlockIndex]);
481 : LoadCmpBlocks[BlockIndex + 1];
492 PhiRes->addIncoming(Zero, LoadCmpBlocks[BlockIndex]);
629 StartBlock->getTerminator()->setSuccessor(0, LoadCmpBlocks[0]);
lib/CodeGen/GlobalISel/CombinerHelper.cpp 956 Type *IRTy = getTypeForLLT(MemOps[0], C);
969 LLT LargestTy = MemOps[0];
971 if (MemOps[i].getSizeInBits() > LargestTy.getSizeInBits())
972 LargestTy = MemOps[i];
988 LLT Ty = MemOps[I];
1075 Type *IRTy = getTypeForLLT(MemOps[0], C);
1182 Type *IRTy = getTypeForLLT(MemOps[0], C);
1229 LLT CopyTy = MemOps[I];
lib/CodeGen/GlobalISel/IRTranslator.cpp 655 JumpTableHeader *JTH = &SL->JTCases[I->JTCasesIndex].first;
656 SwitchCG::JumpTable *JT = &SL->JTCases[I->JTCasesIndex].second;
lib/CodeGen/GlobalMerge.cpp 346 ++UsedGlobalSets[CurGVOnlySetIdx].UsageCount;
354 if (UsedGlobalSets[UGSIdx].Globals.test(GI)) {
355 ++UsedGlobalSets[UGSIdx].UsageCount;
360 --UsedGlobalSets[UGSIdx].UsageCount;
364 if (size_t ExpandedIdx = EncounteredUGS[UGSIdx]) {
365 ++UsedGlobalSets[ExpandedIdx].UsageCount;
372 GlobalUsesByFunction[ParentFn] = EncounteredUGS[UGSIdx] =
377 NewUGS.Globals |= UsedGlobalSets[UGSIdx].Globals;
400 const UsedGlobalSet &UGS = UsedGlobalSets[e - i - 1];
419 const UsedGlobalSet &UGS = UsedGlobalSets[e - i - 1];
532 MergedLayout->getElementOffset(StructIdxs[idx]));
536 ConstantInt::get(Int32Ty, StructIdxs[idx]),
549 GlobalAlias *GA = GlobalAlias::create(Tys[StructIdxs[idx]], AddrSpace,
549 GlobalAlias *GA = GlobalAlias::create(Tys[StructIdxs[idx]], AddrSpace,
lib/CodeGen/IfConversion.cpp 1220 BBInfo &BBI = BBAnalysis[BB->getNumber()];
1268 BBInfo &TrueBBI = BBAnalysis[BBI.TrueBB->getNumber()];
1269 BBInfo &FalseBBI = BBAnalysis[BBI.FalseBB->getNumber()];
1456 BBInfo &PBBI = BBAnalysis[Predecessor->getNumber()];
1528 BBInfo &TrueBBI = BBAnalysis[BBI.TrueBB->getNumber()];
1529 BBInfo &FalseBBI = BBAnalysis[BBI.FalseBB->getNumber()];
1613 BBInfo &TrueBBI = BBAnalysis[BBI.TrueBB->getNumber()];
1614 BBInfo &FalseBBI = BBAnalysis[BBI.FalseBB->getNumber()];
1648 BBInfo &PBBI = BBAnalysis[PBB->getNumber()];
2006 BBInfo &TrueBBI = BBAnalysis[BBI.TrueBB->getNumber()];
2007 BBInfo &FalseBBI = BBAnalysis[BBI.FalseBB->getNumber()];
2041 BBInfo &TrueBBI = BBAnalysis[BBI.TrueBB->getNumber()];
2042 BBInfo &FalseBBI = BBAnalysis[BBI.FalseBB->getNumber()];
2070 BBInfo &TailBBI = BBAnalysis[TailBB->getNumber()];
lib/CodeGen/InterleavedLoadCombinePass.cpp 1074 Res[i] = C;
1079 if (Res[i] == Candidates.end())
1083 Res[0] = C0;
1088 if (Res[0] != Candidates.end()) {
1091 InterleavedLoad.splice(InterleavedLoad.end(), Candidates, Res[i]);
lib/CodeGen/LatencyPriorityQueue.cpp 82 NumNodesSolelyBlocking[SU->NodeNum] = NumNodesBlocking;
lib/CodeGen/LiveVariables.cpp 101 if (VRInfo.Kills[i]->getParent() == MBB) {
149 assert(VRInfo.Kills[i]->getParent() != MBB && "entry should be at end!");
199 MachineInstr *Def = PhysRegDef[SubReg];
232 MachineInstr *LastDef = PhysRegDef[Reg];
234 if (!LastDef && !PhysRegUse[Reg]) {
249 PhysRegDef[Reg] = LastPartialDef;
262 PhysRegDef[SubReg] = LastPartialDef;
267 } else if (LastDef && !PhysRegUse[Reg] &&
276 PhysRegUse[*SubRegs] = &MI;
282 MachineInstr *LastDef = PhysRegDef[Reg];
283 MachineInstr *LastUse = PhysRegUse[Reg];
292 MachineInstr *Def = PhysRegDef[SubReg];
299 } else if (MachineInstr *Use = PhysRegUse[SubReg]) {
312 MachineInstr *LastDef = PhysRegDef[Reg];
313 MachineInstr *LastUse = PhysRegUse[Reg];
341 MachineInstr *Def = PhysRegDef[SubReg];
352 if (MachineInstr *Use = PhysRegUse[SubReg]) {
364 if (!PhysRegUse[Reg]) {
369 PhysRegDef[Reg]->addRegisterDead(Reg, TRI, true);
375 if (PhysRegDef[Reg] == PhysRegDef[SubReg]) {
375 if (PhysRegDef[Reg] == PhysRegDef[SubReg]) {
376 MachineOperand *MO = PhysRegDef[Reg]->findRegisterDefOperand(SubReg);
383 PhysRegDef[Reg]->addOperand(MachineOperand::CreateReg(SubReg,
392 PhysRegUse[*SS] = LastRefOrPartRef;
397 } else if (LastRefOrPartRef == PhysRegDef[Reg] && LastRefOrPartRef != MI) {
428 if (!PhysRegDef[Reg] && !PhysRegUse[Reg])
428 if (!PhysRegDef[Reg] && !PhysRegUse[Reg])
437 if ((PhysRegDef[*SR] || PhysRegUse[*SR]) && MO.clobbersPhysReg(*SR))
437 if ((PhysRegDef[*SR] || PhysRegUse[*SR]) && MO.clobbersPhysReg(*SR))
447 if (PhysRegDef[Reg] || PhysRegUse[Reg]) {
447 if (PhysRegDef[Reg] || PhysRegUse[Reg]) {
462 if (PhysRegDef[SubReg] || PhysRegUse[SubReg]) {
462 if (PhysRegDef[SubReg] || PhysRegUse[SubReg]) {
494 PhysRegDef[SubReg] = &MI;
495 PhysRegUse[SubReg] = nullptr;
588 if (!PHIVarInfo[MBB->getNumber()].empty()) {
589 SmallVectorImpl<unsigned> &VarInfoVec = PHIVarInfo[MBB->getNumber()];
616 if ((PhysRegDef[i] || PhysRegUse[i]) && !LiveOuts.count(i))
616 if ((PhysRegDef[i] || PhysRegUse[i]) && !LiveOuts.count(i))
658 if (VirtRegInfo[Reg].Kills[j] == MRI->getVRegDef(Reg))
659 VirtRegInfo[Reg].Kills[j]->addRegisterDead(Reg, TRI);
661 VirtRegInfo[Reg].Kills[j]->addRegisterKilled(Reg, TRI);
715 PHIVarInfo[BBI.getOperand(i + 1).getMBB()->getNumber()]
743 Kills.insert(VI.Kills[i]->getParent());
lib/CodeGen/MIRPrinter.cpp 422 YMF.FixedStackObjects[StackObject.ID].CalleeSavedRegister = Reg;
423 YMF.FixedStackObjects[StackObject.ID].CalleeSavedRestored =
426 YMF.StackObjects[StackObject.ID].CalleeSavedRegister = Reg;
427 YMF.StackObjects[StackObject.ID].CalleeSavedRestored =
439 YMF.StackObjects[StackObject.ID].LocalOffset = LocalObject.second;
458 auto &Object = YMF.FixedStackObjects[StackObject.ID];
461 auto &Object = YMF.StackObjects[StackObject.ID];
lib/CodeGen/MachineFunction.cpp 305 assert(MBBNumbering[MBBI->getNumber()] == &*MBBI &&
307 MBBNumbering[MBBI->getNumber()] = nullptr;
311 if (MBBNumbering[BlockNo])
312 MBBNumbering[BlockNo]->setNumber(-1);
314 MBBNumbering[BlockNo] = &*MBBI;
636 LandingPadInfo &LP = LandingPads[i];
642 return LandingPads[N];
711 IdsInFilter[I] = getTypeIDFor(TyInfo[I]);
718 LandingPadInfo &LandingPad = LandingPads[i];
732 for (unsigned j = 0, e = LandingPads[i].BeginLabels.size(); j != e; ++j) {
746 if (LandingPads[i].BeginLabels.empty()) {
755 (LandingPad.TypeIds.size() == 1 && !LandingPad.TypeIds[0]))
792 if (TypeInfos[i] == TI) return i + 1;
807 if (FilterIds[--i] != TyIds[--j])
807 if (FilterIds[--i] != TyIds[--j])
929 MachineJumpTableEntry &JTE = JumpTables[Idx];
931 if (JTE.MBBs[j] == Old) {
932 JTE.MBBs[j] = New;
1003 if (Constants[i].isMachineConstantPoolEntry()) {
1004 Deleted.insert(Constants[i].Val.MachineCPVal);
1005 delete Constants[i].Val.MachineCPVal;
1069 if (!Constants[i].isMachineConstantPoolEntry() &&
1070 CanShareConstantPoolEntry(Constants[i].Val.ConstVal, C, DL)) {
1071 if ((unsigned)Constants[i].getAlignment() < Alignment)
1072 Constants[i].Alignment = Alignment;
lib/CodeGen/MachineModuleInfo.cpp 144 BBCallbacks[Entry.Index] = nullptr; // Clear the callback.
171 BBCallbacks[OldEntry.Index].setPtr(New); // Update the callback.
176 BBCallbacks[OldEntry.Index] = nullptr; // Update the callback.
257 if (Personalities[i] == Personality)
lib/CodeGen/MachineOutliner.cpp 972 CandidatesForRepeatedSeq[i].front()->getDebugLoc());
997 OF.Candidates[i].front()->getDebugLoc());
1051 MachineBasicBlock::iterator StartIt = Mapper.InstrList[StartIdx];
1052 MachineBasicBlock::iterator EndIt = Mapper.InstrList[EndIdx];
1070 CandidatesForRepeatedSeq[0].getMF()->getSubtarget().getInstrInfo();
lib/CodeGen/MachinePipeliner.cpp 1116 SUnit *SU = &SUnits[i];
1148 for (auto &SI : SUnits[i].Succs) {
1174 for (auto &PI : SUnits[i].Preds) {
1175 if (!SUnits[i].getInstr()->mayStore() ||
1176 !DAG->isLoopCarriedDep(&SUnits[i], PI, false))
1199 SUnit *SV = &SUnits[V];
1370 const SUnit &SU = SUnits[*I];
1382 SUnit *SU = &SUnits[*I];
1396 ScheduleInfo[*I].ASAP = asap;
1397 ScheduleInfo[*I].ZeroLatencyDepth = zeroLatencyDepth;
1406 SUnit *SU = &SUnits[*I];
1420 ScheduleInfo[*I].ALAP = alap;
1421 ScheduleInfo[*I].ZeroLatencyHeight = zeroLatencyHeight;
1431 dbgs() << "\t ASAP = " << getASAP(&SUnits[i]) << "\n";
1432 dbgs() << "\t ALAP = " << getALAP(&SUnits[i]) << "\n";
1433 dbgs() << "\t MOV = " << getMOV(&SUnits[i]) << "\n";
1434 dbgs() << "\t D = " << getDepth(&SUnits[i]) << "\n";
1435 dbgs() << "\t H = " << getHeight(&SUnits[i]) << "\n";
1436 dbgs() << "\t ZLD = " << getZeroLatencyDepth(&SUnits[i]) << "\n";
1437 dbgs() << "\t ZLH = " << getZeroLatencyHeight(&SUnits[i]) << "\n";
1727 SUnit *SU = &SUnits[i];
2644 SUnit &SU = SSD->SUnits[i];
2831 SUnit *SU = &SSD->SUnits[i];
lib/CodeGen/MachineRegisterInfo.cpp 475 if (LiveIns[i].second) {
476 if (use_nodbg_empty(LiveIns[i].second)) {
487 TII.get(TargetOpcode::COPY), LiveIns[i].second)
488 .addReg(LiveIns[i].first);
491 EntryMBB->addLiveIn(LiveIns[i].first);
495 EntryMBB->addLiveIn(LiveIns[i].first);
lib/CodeGen/MachineScheduler.cpp 1075 while (CritIdx != CritEnd && RegionCriticalPSets[CritIdx].getPSet() < ID)
1077 if (CritIdx != CritEnd && RegionCriticalPSets[CritIdx].getPSet() == ID) {
1078 if ((int)NewMaxPressure[ID] > RegionCriticalPSets[CritIdx].getUnitInc()
1080 RegionCriticalPSets[CritIdx].setUnitInc(NewMaxPressure[ID]);
lib/CodeGen/PostRASchedulerList.cpp 537 if (!SUnits[i].NumPredsLeft && !SUnits[i].isAvailable) {
537 if (!SUnits[i].NumPredsLeft && !SUnits[i].isAvailable) {
538 AvailableQueue.push(&SUnits[i]);
539 SUnits[i].isAvailable = true;
556 if (PendingQueue[i]->getDepth() <= CurCycle) {
557 AvailableQueue.push(PendingQueue[i]);
558 PendingQueue[i]->isAvailable = true;
559 PendingQueue[i] = PendingQueue.back();
562 } else if (PendingQueue[i]->getDepth() < MinDepth)
563 MinDepth = PendingQueue[i]->getDepth();
663 if (!Sequence[i])
680 if (SUnit *SU = Sequence[i])
lib/CodeGen/ReachingDefAnalysis.cpp 46 LiveRegs[*Unit] = -1;
47 MBBReachingDefs[MBBNumber][*Unit].push_back(LiveRegs[*Unit]);
47 MBBReachingDefs[MBBNumber][*Unit].push_back(LiveRegs[*Unit]);
66 LiveRegs[Unit] = std::max(LiveRegs[Unit], Incoming[Unit]);
66 LiveRegs[Unit] = std::max(LiveRegs[Unit], Incoming[Unit]);
67 if ((LiveRegs[Unit] != ReachingDefDefaultVal))
68 MBBReachingDefs[MBBNumber][Unit].push_back(LiveRegs[Unit]);
68 MBBReachingDefs[MBBNumber][Unit].push_back(LiveRegs[Unit]);
116 LiveRegs[*Unit] = CurInstr;
117 MBBReachingDefs[MBBNumber][*Unit].push_back(CurInstr);
182 for (int Def : MBBReachingDefs[MBBNumber][*Unit]) {
lib/CodeGen/RegAllocFast.cpp 242 PhysRegState[PhysReg] = NewState;
389 assert(PhysRegState[LR.PhysReg] == LR.VirtReg &&
418 assert(PhysRegState[LR.PhysReg] == LR.VirtReg && "Broken RegState mapping");
462 switch (PhysRegState[PhysReg]) {
466 PhysRegState[PhysReg] = regFree;
480 switch (PhysRegState[Alias]) {
523 switch (unsigned VirtReg = PhysRegState[PhysReg]) {
539 switch (unsigned VirtReg = PhysRegState[Alias]) {
912 if (ThroughRegs.count(PhysRegState[*AI]))
979 if (PhysRegState[Reg] == regDisabled) continue;
981 switch(PhysRegState[Reg]) {
988 dbgs() << '=' << printReg(PhysRegState[Reg]);
989 LiveRegMap::iterator LRI = findLiveVirtReg(PhysRegState[Reg]);
1007 assert(PhysRegState[i->PhysReg] == i->VirtReg && "Bad inverse map");
lib/CodeGen/RegAllocPBQP.cpp 665 if (isACalleeSavedRegister(VRegAllowed[i], TRI, MF))
lib/CodeGen/RegUsageInfoCollector.cpp 143 RegMask[Reg / 32] &= ~(1u << Reg % 32);
183 if (MachineOperand::clobbersPhysReg(&(RegMask[0]), PReg))
lib/CodeGen/RegisterCoalescer.cpp 3652 if (JoinGlobalCopies && MBBs[i].Depth < CurrDepth) {
3654 CurrDepth = MBBs[i].Depth;
3656 copyCoalesceInMBB(MBBs[i].MBB);
lib/CodeGen/RegisterPressure.cpp 60 CurrSetPressure[*PSetI] += Weight;
74 assert(CurrSetPressure[*PSetI] >= Weight && "register pressure underflow");
75 CurrSetPressure[*PSetI] -= Weight;
164 CurrSetPressure[*PSetI] += Weight;
165 P.MaxSetPressure[*PSetI] =
166 std::max(P.MaxSetPressure[*PSetI], CurrSetPressure[*PSetI]);
166 std::max(P.MaxSetPressure[*PSetI], CurrSetPressure[*PSetI]);
1176 unsigned MOld = P.MaxSetPressure[PSetID];
lib/CodeGen/ScheduleDAG.cpp 484 Node2Index[NodeNum] = Degree;
502 if (SU->NodeNum < DAGSize && !--Node2Index[SU->NodeNum])
516 assert(Node2Index[SU.NodeNum] > Node2Index[PD.getSUnit()->NodeNum] &&
516 assert(Node2Index[SU.NodeNum] > Node2Index[PD.getSUnit()->NodeNum] &&
550 LowerBound = Node2Index[Y->NodeNum];
551 UpperBound = Node2Index[X->NodeNum];
586 if (Node2Index[s] == UpperBound) {
591 if (!Visited.test(s) && Node2Index[s] < UpperBound) {
602 int LowerBound = Node2Index[StartSU.NodeNum];
603 int UpperBound = Node2Index[TargetSU.NodeNum];
628 if (Node2Index[s] == UpperBound) {
633 if (!Visited.test(s) && Node2Index[s] < UpperBound) {
662 if (Node2Index[s] == LowerBound) {
687 int w = Index2Node[i];
722 LowerBound = Node2Index[TargetSU->NodeNum];
723 UpperBound = Node2Index[SU->NodeNum];
735 Node2Index[n] = index;
736 Index2Node[index] = n;
lib/CodeGen/ScheduleDAGInstrs.cpp 1060 SUnit *newBarrierChain = &SUnits[*(NodeNums.end() - N)];
1247 return R.DFSNodeData[SU->NodeNum].SubtreeID
1254 R.DFSNodeData[SU->NodeNum].InstrCount =
1264 R.DFSNodeData[SU->NodeNum].SubtreeID = SU->NodeNum;
1273 unsigned InstrCount = R.DFSNodeData[SU->NodeNum].InstrCount;
1278 if ((InstrCount - R.DFSNodeData[PredNum].InstrCount) < R.SubtreeLimit)
1282 if (R.DFSNodeData[PredNum].SubtreeID == PredNum) {
1304 R.DFSNodeData[Succ->NodeNum].InstrCount
1305 += R.DFSNodeData[PredDep.getSUnit()->NodeNum].InstrCount;
1335 R.DFSNodeData[Idx].SubtreeID = SubtreeClasses[Idx];
1337 << R.DFSNodeData[Idx].SubtreeID << '\n');
1360 if (R.DFSNodeData[PredNum].SubtreeID != PredNum)
1372 if (CheckLimit && R.DFSNodeData[PredNum].InstrCount > R.SubtreeLimit)
1374 R.DFSNodeData[PredNum].SubtreeID = Succ->NodeNum;
1386 R.SubtreeConnections[FromTree];
1489 for (const Connection &C : SubtreeConnections[SubtreeID]) {
1490 SubtreeConnectLevels[C.TreeID] =
1491 std::max(SubtreeConnectLevels[C.TreeID], C.Level);
1493 << SubtreeConnectLevels[C.TreeID] << '\n');
lib/CodeGen/SelectionDAG/ResourcePriorityQueue.cpp 60 RegLimit[RC->getID()] = TRI->getRegPressureLimit(RC, *IS->MF);
168 SUnit *SU = &(*SUnits)[i];
233 NumNodesSolelyBlocking[SU->NodeNum] = NumNodesBlocking;
268 for (const SDep &Succ : Packet[i]->Succs) {
365 if ((RegPressure[RC->getID()] +
367 (RegPressure[RC->getID()] +
368 rawRegPressureDelta(SU, RC->getID()) >= RegLimit[RC->getID()]))
422 ResCount += (NumNodesSolelyBlocking[SU->NodeNum] * ScaleTwo);
480 RegPressure[RC->getID()] += numberRCValSuccInSU(SU, RC->getID());
491 if (RegPressure[RC->getID()] >
493 RegPressure[RC->getID()] -= numberRCValPredInSU(SU, RC->getID());
494 else RegPressure[RC->getID()] = 0;
lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp 169 if (!LiveRegDefs[Pred.getReg()]) {
171 LiveRegDefs[Pred.getReg()] = Pred.getSUnit();
172 LiveRegCycles[Pred.getReg()] = CurCycle;
194 if (LiveRegCycles[Succ.getReg()] == Succ.getSUnit()->getHeight()) {
196 assert(LiveRegDefs[Succ.getReg()] == SU &&
199 LiveRegDefs[Succ.getReg()] = nullptr;
200 LiveRegCycles[Succ.getReg()] = 0;
270 LoadSU = &SUnits[LoadNode->getNodeId()];
453 if (LiveRegDefs[*AI] && LiveRegDefs[*AI] != SU) {
453 if (LiveRegDefs[*AI] && LiveRegDefs[*AI] != SU) {
532 SUnit *RootSU = &SUnits[DAG->getRoot().getNode()->getNodeId()];
571 SUnit *LRDef = LiveRegDefs[Reg];
603 LiveRegDefs[Reg] = NewDef;
771 SDNode *N = Sequence[NumNodes-i-1];
lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp 587 SUnit *Def = &SUnits[N->getNodeId()];
612 unsigned ReadyCycle = PendingQueue[i]->getHeight();
616 if (PendingQueue[i]->isAvailable) {
617 if (!isReady(PendingQueue[i]))
619 AvailableQueue->push(PendingQueue[i]);
621 PendingQueue[i]->isPending = false;
622 PendingQueue[i] = PendingQueue.back();
1005 LoadSU = &SUnits[LoadNode->getNodeId()];
1023 NewSU = &SUnits[N->getNodeId()];
1603 SUnit *RootSU = &SUnits[DAG->getRoot().getNode()->getNodeId()];
1768 RegLimit[RC->getID()] = tri->getRegPressureLimit(RC, MF);
1943 if (SUNumbers[SU->NodeNum] != 0)
1944 return SUNumbers[SU->NodeNum];
1964 if (SUNumbers[PredSU->NodeNum] == 0) {
1987 unsigned PredSethiUllman = SUNumbers[PredSU->NodeNum];
1999 SUNumbers[TempSU->NodeNum] = SethiUllmanNumber;
2003 assert(SUNumbers[SU->NodeNum] > 0 && "SethiUllman should never be zero!");
2004 return SUNumbers[SU->NodeNum];
2024 SethiUllmanNumbers[SU->NodeNum] = 0;
2212 RegPressure[RCId] += Cost;
2227 if (RegPressure[RCId] < Cost) {
2232 RegPressure[RCId] = 0;
2235 RegPressure[RCId] -= Cost;
2274 RegPressure[RCId] += TLI->getRepRegClassCostFor(VT);
2286 RegPressure[RCId] += TLI->getRepRegClassCostFor(VT);
2295 if (RegPressure[RCId] < TLI->getRepRegClassCostFor(VT))
2297 RegPressure[RCId] = 0;
2299 RegPressure[RCId] -= TLI->getRepRegClassCostFor(VT);
2314 RegPressure[RCId] += TLI->getRepRegClassCostFor(VT);
2826 Op->OrigNode == &(*SUnits)[DU->getNodeId()])
3073 const SUnit *DUSU = &(*SUnits)[DU->getNodeId()];
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp 72 Addr = &SUnits[0];
75 assert((Addr == nullptr || Addr == &SUnits[0]) &&
430 SUnit *SrcSU = &SUnits[SrcN->getNodeId()];
444 SUnit *SU = &SUnits[su];
475 SUnit *OpSU = &SUnits[OpN->getNodeId()];
723 if (!Sequence[i])
888 SUnit *SU = Sequence[i];
lib/CodeGen/SelectionDAG/ScheduleDAGVLIW.cpp 175 if (SUnits[i].Preds.empty()) {
176 AvailableQueue->push(&SUnits[i]);
177 SUnits[i].isAvailable = true;
189 if (PendingQueue[i]->getDepth() == CurCycle) {
190 AvailableQueue->push(PendingQueue[i]);
191 PendingQueue[i]->isAvailable = true;
192 PendingQueue[i] = PendingQueue.back();
197 assert(PendingQueue[i]->getDepth() > CurCycle && "Negative latency?");
lib/CodeGen/SelectionDAG/SelectionDAG.cpp 852 assert(CondCodeNodes[cast<CondCodeSDNode>(N)->get()] &&
854 Erased = CondCodeNodes[cast<CondCodeSDNode>(N)->get()] != nullptr;
855 CondCodeNodes[cast<CondCodeSDNode>(N)->get()] = nullptr;
876 Erased = ValueTypeNodes[VT.getSimpleVT().SimpleTy] != nullptr;
877 ValueTypeNodes[VT.getSimpleVT().SimpleTy] = nullptr;
1514 ExtendedValueTypeNodes[VT] : ValueTypeNodes[VT.getSimpleVT().SimpleTy];
1553 if (!CondCodeNodes[Cond]) {
1555 CondCodeNodes[Cond] = N;
1559 return SDValue(CondCodeNodes[Cond], 0);
5812 Type *Ty = MemOps[0].getTypeForEVT(C);
5839 EVT VT = MemOps[i];
5994 Type *Ty = MemOps[0].getTypeForEVT(C);
6012 EVT VT = MemOps[i];
6032 EVT VT = MemOps[i];
6095 Type *Ty = MemOps[0].getTypeForEVT(*DAG.getContext());
6110 EVT LargestVT = MemOps[0];
6112 if (MemOps[i].bitsGT(LargestVT))
6113 LargestVT = MemOps[i];
6117 EVT VT = MemOps[i];
8420 SDNode *N = Order[I];
8881 return &SimpleVTArray->VTs[VT.getSimpleVT().SimpleTy];
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp 2275 assert(SL->SwitchCases[0].ThisBB == BrMBB && "Unexpected lowering!");
2280 ExportFromCurrentBlock(SL->SwitchCases[i].CmpLHS);
2281 ExportFromCurrentBlock(SL->SwitchCases[i].CmpRHS);
2285 visitSwitchCase(SL->SwitchCases[0], BrMBB);
2293 FuncInfo.MF->erase(SL->SwitchCases[i].ThisBB);
2911 if (SL->JTCases[i].first.HeaderBB == First)
2912 SL->JTCases[i].first.HeaderBB = Last;
2916 if (SL->BitTestCases[i].Parent == First)
2917 SL->BitTestCases[i].Parent = Last;
8252 cast<ConstantSDNode>(AsmNodeOperands[CurOp])->getZExtValue();
8264 MVT RegVT = AsmNodeOperands[CurOp+1].getSimpleValueType();
8301 AsmNodeOperands.push_back(AsmNodeOperands[CurOp+1]);
8401 AsmNodeOperands[InlineAsm::Op_InputChain] = Chain;
9098 if (Args[i].IsSwiftError) {
9113 ComputeValueVTs(*this, DL, Args[i].Ty, ValueVTs);
9115 Type *FinalType = Args[i].Ty;
9116 if (Args[i].IsByVal)
9117 FinalType = cast<PointerType>(Args[i].Ty)->getElementType();
9124 SDValue Op = SDValue(Args[i].Node.getNode(),
9125 Args[i].Node.getResNo() + Value);
9133 if (Args[i].Ty->isPointerTy()) {
9136 cast<PointerType>(Args[i].Ty)->getAddressSpace());
9138 if (Args[i].IsZExt)
9140 if (Args[i].IsSExt)
9142 if (Args[i].IsInReg) {
9155 if (Args[i].IsSRet)
9157 if (Args[i].IsSwiftSelf)
9159 if (Args[i].IsSwiftError)
9161 if (Args[i].IsCFGuardTarget)
9163 if (Args[i].IsByVal)
9165 if (Args[i].IsInAlloca) {
9174 if (Args[i].IsByVal || Args[i].IsInAlloca) {
9174 if (Args[i].IsByVal || Args[i].IsInAlloca) {
9175 PointerType *Ty = cast<PointerType>(Args[i].Ty);
9179 Args[i].ByValType ? Args[i].ByValType : ElementTy);
9179 Args[i].ByValType ? Args[i].ByValType : ElementTy);
9184 if (Args[i].Alignment)
9185 FrameAlign = Args[i].Alignment;
9190 if (Args[i].IsNest)
9203 if (Args[i].IsSExt)
9205 else if (Args[i].IsZExt)
9210 if (Args[i].IsReturned && !Op.getValueType().isVector() &&
9212 assert((CLI.RetTy == Args[i].Ty ||
9213 (CLI.RetTy->isPointerTy() && Args[i].Ty->isPointerTy() &&
9215 Args[i].Ty->getPointerAddressSpace())) &&
9228 (ExtendKind != ISD::ANY_EXTEND && CLI.RetSExt == Args[i].IsSExt &&
9229 CLI.RetZExt == Args[i].IsZExt))
10161 JumpTableHeader *JTH = &SL->JTCases[I->JTCasesIndex].first;
10162 SwitchCG::JumpTable *JT = &SL->JTCases[I->JTCasesIndex].second;
10210 BitTestBlock *BTB = &SL->BitTestCases[I->BTCasesIndex];
10456 CaseCluster &CC = Clusters[Index];
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp 1701 << "Node " << i << " : (" << FuncInfo->PHINodesToUpdate[i].first
1702 << ", " << FuncInfo->PHINodesToUpdate[i].second << ")\n");
1707 MachineInstrBuilder PHI(*MF, FuncInfo->PHINodesToUpdate[i].first);
1712 PHI.addReg(FuncInfo->PHINodesToUpdate[i].second).addMBB(FuncInfo->MBB);
1833 MachineInstrBuilder PHI(*MF, FuncInfo->PHINodesToUpdate[pi].first);
1840 PHI.addReg(FuncInfo->PHINodesToUpdate[pi].second).addMBB(BTB.Parent);
1842 PHI.addReg(FuncInfo->PHINodesToUpdate[pi].second)
1851 PHI.addReg(FuncInfo->PHINodesToUpdate[pi].second).addMBB(cBB);
1862 if (!SDB->SL->JTCases[i].first.Emitted) {
1864 FuncInfo->MBB = SDB->SL->JTCases[i].first.HeaderBB;
1867 SDB->visitJumpTableHeader(SDB->SL->JTCases[i].second,
1868 SDB->SL->JTCases[i].first, FuncInfo->MBB);
1875 FuncInfo->MBB = SDB->SL->JTCases[i].second.MBB;
1878 SDB->visitJumpTable(SDB->SL->JTCases[i].second);
1886 MachineInstrBuilder PHI(*MF, FuncInfo->PHINodesToUpdate[pi].first);
1891 if (PHIBB == SDB->SL->JTCases[i].second.Default)
1892 PHI.addReg(FuncInfo->PHINodesToUpdate[pi].second)
1893 .addMBB(SDB->SL->JTCases[i].first.HeaderBB);
1896 PHI.addReg(FuncInfo->PHINodesToUpdate[pi].second).addMBB(FuncInfo->MBB);
1905 FuncInfo->MBB = SDB->SL->SwitchCases[i].ThisBB;
1910 Succs.push_back(SDB->SL->SwitchCases[i].TrueBB);
1911 if (SDB->SL->SwitchCases[i].TrueBB != SDB->SL->SwitchCases[i].FalseBB)
1911 if (SDB->SL->SwitchCases[i].TrueBB != SDB->SL->SwitchCases[i].FalseBB)
1912 Succs.push_back(SDB->SL->SwitchCases[i].FalseBB);
1915 SDB->visitSwitchCase(SDB->SL->SwitchCases[i], FuncInfo->MBB);
1942 if (FuncInfo->PHINodesToUpdate[pn].first == PHI) {
1943 PHI.addReg(FuncInfo->PHINodesToUpdate[pn].second).addMBB(ThisBB);
2035 Ops.push_back(InOps[InlineAsm::Op_InputChain]); // 0
2036 Ops.push_back(InOps[InlineAsm::Op_AsmString]); // 1
2037 Ops.push_back(InOps[InlineAsm::Op_MDNode]); // 2, !srcloc
2038 Ops.push_back(InOps[InlineAsm::Op_ExtraInfo]); // 3 (SideEffect, AlignStack)
2041 if (InOps[e-1].getValueType() == MVT::Glue)
2045 unsigned Flags = cast<ConstantSDNode>(InOps[i])->getZExtValue();
2059 Flags = cast<ConstantSDNode>(InOps[CurOp])->getZExtValue();
2062 Flags = cast<ConstantSDNode>(InOps[CurOp])->getZExtValue();
2069 if (SelectInlineAsmMemoryOperand(InOps[i+1], ConstraintID, SelOps))
2843 MatcherIndex = OpcodeOffset[N.getOpcode()];
2863 OpcodeOffset[Opc] = Idx;
2869 MatcherIndex = OpcodeOffset[N.getOpcode()];
lib/CodeGen/SelectionDAG/TargetLowering.cpp 4285 AsmOperandInfo &OpInfo = ConstraintOperands[cIndex];
4294 AsmOperandInfo &Input = ConstraintOperands[OpInfo.MatchingInput];
4322 AsmOperandInfo &cInfo = ConstraintOperands[cIndex];
4333 AsmOperandInfo &OpInfo = ConstraintOperands[cIndex];
4340 AsmOperandInfo &Input = ConstraintOperands[OpInfo.MatchingInput];
4390 rCodes = &info.multipleAlternatives[maIndex].Codes;
4396 getSingleConstraintMatchWeight(info, (*rCodes)[i].c_str());
4484 TLI.getConstraintType(OpInfo.Codes[i]);
4492 assert(OpInfo.Codes[i].size() == 1 &&
4495 TLI.LowerAsmOperandForConstraint(Op, OpInfo.Codes[i],
4518 OpInfo.ConstraintCode = OpInfo.Codes[BestIdx];
4531 OpInfo.ConstraintCode = OpInfo.Codes[0];
lib/CodeGen/ShadowStackGCLowering.cpp 109 Constant *C = cast<Constant>(Roots[I].first->getArgOperand(1));
160 EltTys.push_back(Roots[I].second->getAllocatedType());
328 AllocaInst *OriginalAlloca = Roots[I].second;
366 Roots[I].first->eraseFromParent();
367 Roots[I].second->eraseFromParent();
lib/CodeGen/StackSlotColoring.cpp 332 LiveInterval *li = SSIntervals[i];
345 LiveInterval *li = SSIntervals[i];
354 LLVM_DEBUG(SSIntervals[i]->dump());
lib/CodeGen/SwitchLoweringUtils.cpp 52 assert(Clusters[i - 1].High->getValue().slt(Clusters[i].Low->getValue()));
52 assert(Clusters[i - 1].High->getValue().slt(Clusters[i].Low->getValue()));
70 const APInt &Hi = Clusters[i].High->getValue();
71 const APInt &Lo = Clusters[i].Low->getValue();
86 Clusters[0] = JTCluster;
176 Clusters[DstIndex++] = JTCluster;
179 std::memmove(&Clusters[DstIndex++], &Clusters[I], sizeof(Clusters[I]));
179 std::memmove(&Clusters[DstIndex++], &Clusters[I], sizeof(Clusters[I]));
179 std::memmove(&Clusters[DstIndex++], &Clusters[I], sizeof(Clusters[I]));
268 assert(Clusters[0].Kind == CC_Range || Clusters[0].Kind == CC_JumpTable);
268 assert(Clusters[0].Kind == CC_Range || Clusters[0].Kind == CC_JumpTable);
272 assert(Clusters[i-1].High->getValue().slt(Clusters[i].Low->getValue()));
272 assert(Clusters[i-1].High->getValue().slt(Clusters[i].Low->getValue()));
311 if (!TLI->rangeFitsInWord(Clusters[i].Low->getValue(),
312 Clusters[j].High->getValue(), *DL))
320 if (Clusters[k].Kind != CC_Range) {
324 Dests.set(Clusters[k].MBB->getNumber());
348 Clusters[DstIndex++] = BitTestCluster;
351 std::memmove(&Clusters[DstIndex], &Clusters[First],
351 std::memmove(&Clusters[DstIndex], &Clusters[First],
352 sizeof(Clusters[0]) * NumClusters);
370 assert(Clusters[I].Kind == CC_Range);
371 Dests.set(Clusters[I].MBB->getNumber());
372 NumCmps += (Clusters[I].Low == Clusters[I].High) ? 1 : 2;
372 NumCmps += (Clusters[I].Low == Clusters[I].High) ? 1 : 2;
376 APInt Low = Clusters[First].Low->getValue();
377 APInt High = Clusters[Last].High->getValue();
394 if (Clusters[I].Low->getValue() != Clusters[I - 1].High->getValue() + 1) {
394 if (Clusters[I].Low->getValue() != Clusters[I - 1].High->getValue() + 1) {
417 if (CBV[j].BB == Clusters[i].MBB)
417 if (CBV[j].BB == Clusters[i].MBB)
421 CaseBits(0, Clusters[i].MBB, 0, BranchProbability::getZero()));
422 CaseBits *CB = &CBV[j];
425 uint64_t Lo = (Clusters[i].Low->getValue() - LowBound).getZExtValue();
426 uint64_t Hi = (Clusters[i].High->getValue() - LowBound).getZExtValue();
430 CB->ExtraProb += Clusters[i].Prob;
431 TotalProb += Clusters[i].Prob;
454 BTCluster = CaseCluster::bitTests(Clusters[First].Low, Clusters[Last].High,
454 BTCluster = CaseCluster::bitTests(Clusters[First].Low, Clusters[Last].High,
473 CaseCluster &CC = Clusters[SrcIndex];
477 if (DstIndex != 0 && Clusters[DstIndex - 1].MBB == Succ &&
478 (CaseVal->getValue() - Clusters[DstIndex - 1].High->getValue()) == 1) {
481 Clusters[DstIndex - 1].High = CaseVal;
482 Clusters[DstIndex - 1].Prob += CC.Prob;
484 std::memmove(&Clusters[DstIndex++], &Clusters[SrcIndex],
484 std::memmove(&Clusters[DstIndex++], &Clusters[SrcIndex],
485 sizeof(Clusters[SrcIndex]));
lib/CodeGen/TailDuplicator.cpp 203 MachineBasicBlock *SrcBB = LI->second[j].first;
204 unsigned SrcReg = LI->second[j].second;
503 MachineBasicBlock *SrcBB = LI->second[j].first;
511 unsigned SrcReg = LI->second[j].second;
lib/CodeGen/UnreachableBlockElim.cpp 152 for (auto &I : DeadBlocks[i]->instrs())
154 DeadBlocks[i]->getParent()->eraseCallSiteInfo(&I);
156 DeadBlocks[i]->eraseFromParent();
lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp 60 Result.first->getValue().push_back(Targets[0]);
lib/DebugInfo/CodeView/LazyRandomTypeCollection.cpp 87 return Records[Index.toArrayIndex()].Offset;
97 return Records[Index.toArrayIndex()].Type;
110 return Records[Index.toArrayIndex()].Type;
128 if (Records[I].Name.data() == nullptr) {
130 Records[I].Name = Result;
132 return Records[I].Name;
141 if (!Records[Index.toArrayIndex()].Type.valid())
241 uint32_t Offset = Records[LargestTypeIndex.toArrayIndex()].Offset;
252 Records[Idx].Type = *Begin;
253 Records[Idx].Offset = Begin.offset();
273 Records[Idx].Type = *RI;
274 Records[Idx].Offset = RI.offset();
lib/DebugInfo/CodeView/TypeTableCollection.cpp 47 if (Names[I].data() == nullptr) {
49 Names[I] = Result;
51 return Names[I];
lib/DebugInfo/DWARF/DWARFDebugLine.cpp 825 uint8_t OpcodeLength = Prologue.StandardOpcodeLengths[Opcode - 1];
lib/DebugInfo/DWARF/DWARFExpression.cpp 31 Descriptions[DW_OP_addr] = Desc(Op::Dwarf2, Op::SizeAddr);
32 Descriptions[DW_OP_deref] = Desc(Op::Dwarf2);
33 Descriptions[DW_OP_const1u] = Desc(Op::Dwarf2, Op::Size1);
34 Descriptions[DW_OP_const1s] = Desc(Op::Dwarf2, Op::SignedSize1);
35 Descriptions[DW_OP_const2u] = Desc(Op::Dwarf2, Op::Size2);
36 Descriptions[DW_OP_const2s] = Desc(Op::Dwarf2, Op::SignedSize2);
37 Descriptions[DW_OP_const4u] = Desc(Op::Dwarf2, Op::Size4);
38 Descriptions[DW_OP_const4s] = Desc(Op::Dwarf2, Op::SignedSize4);
39 Descriptions[DW_OP_const8u] = Desc(Op::Dwarf2, Op::Size8);
40 Descriptions[DW_OP_const8s] = Desc(Op::Dwarf2, Op::SignedSize8);
41 Descriptions[DW_OP_constu] = Desc(Op::Dwarf2, Op::SizeLEB);
42 Descriptions[DW_OP_consts] = Desc(Op::Dwarf2, Op::SignedSizeLEB);
43 Descriptions[DW_OP_dup] = Desc(Op::Dwarf2);
44 Descriptions[DW_OP_drop] = Desc(Op::Dwarf2);
45 Descriptions[DW_OP_over] = Desc(Op::Dwarf2);
46 Descriptions[DW_OP_pick] = Desc(Op::Dwarf2, Op::Size1);
47 Descriptions[DW_OP_swap] = Desc(Op::Dwarf2);
48 Descriptions[DW_OP_rot] = Desc(Op::Dwarf2);
49 Descriptions[DW_OP_xderef] = Desc(Op::Dwarf2);
50 Descriptions[DW_OP_abs] = Desc(Op::Dwarf2);
51 Descriptions[DW_OP_and] = Desc(Op::Dwarf2);
52 Descriptions[DW_OP_div] = Desc(Op::Dwarf2);
53 Descriptions[DW_OP_minus] = Desc(Op::Dwarf2);
54 Descriptions[DW_OP_mod] = Desc(Op::Dwarf2);
55 Descriptions[DW_OP_mul] = Desc(Op::Dwarf2);
56 Descriptions[DW_OP_neg] = Desc(Op::Dwarf2);
57 Descriptions[DW_OP_not] = Desc(Op::Dwarf2);
58 Descriptions[DW_OP_or] = Desc(Op::Dwarf2);
59 Descriptions[DW_OP_plus] = Desc(Op::Dwarf2);
60 Descriptions[DW_OP_plus_uconst] = Desc(Op::Dwarf2, Op::SizeLEB);
61 Descriptions[DW_OP_shl] = Desc(Op::Dwarf2);
62 Descriptions[DW_OP_shr] = Desc(Op::Dwarf2);
63 Descriptions[DW_OP_shra] = Desc(Op::Dwarf2);
64 Descriptions[DW_OP_xor] = Desc(Op::Dwarf2);
65 Descriptions[DW_OP_skip] = Desc(Op::Dwarf2, Op::SignedSize2);
66 Descriptions[DW_OP_bra] = Desc(Op::Dwarf2, Op::SignedSize2);
67 Descriptions[DW_OP_eq] = Desc(Op::Dwarf2);
68 Descriptions[DW_OP_ge] = Desc(Op::Dwarf2);
69 Descriptions[DW_OP_gt] = Desc(Op::Dwarf2);
70 Descriptions[DW_OP_le] = Desc(Op::Dwarf2);
71 Descriptions[DW_OP_lt] = Desc(Op::Dwarf2);
72 Descriptions[DW_OP_ne] = Desc(Op::Dwarf2);
74 Descriptions[LA] = Desc(Op::Dwarf2);
76 Descriptions[LA] = Desc(Op::Dwarf2);
78 Descriptions[LA] = Desc(Op::Dwarf2, Op::SignedSizeLEB);
79 Descriptions[DW_OP_regx] = Desc(Op::Dwarf2, Op::SizeLEB);
80 Descriptions[DW_OP_fbreg] = Desc(Op::Dwarf2, Op::SignedSizeLEB);
81 Descriptions[DW_OP_bregx] = Desc(Op::Dwarf2, Op::SizeLEB, Op::SignedSizeLEB);
82 Descriptions[DW_OP_piece] = Desc(Op::Dwarf2, Op::SizeLEB);
83 Descriptions[DW_OP_deref_size] = Desc(Op::Dwarf2, Op::Size1);
84 Descriptions[DW_OP_xderef_size] = Desc(Op::Dwarf2, Op::Size1);
85 Descriptions[DW_OP_nop] = Desc(Op::Dwarf2);
86 Descriptions[DW_OP_push_object_address] = Desc(Op::Dwarf3);
87 Descriptions[DW_OP_call2] = Desc(Op::Dwarf3, Op::Size2);
88 Descriptions[DW_OP_call4] = Desc(Op::Dwarf3, Op::Size4);
89 Descriptions[DW_OP_call_ref] = Desc(Op::Dwarf3, Op::SizeRefAddr);
90 Descriptions[DW_OP_form_tls_address] = Desc(Op::Dwarf3);
91 Descriptions[DW_OP_call_frame_cfa] = Desc(Op::Dwarf3);
92 Descriptions[DW_OP_bit_piece] = Desc(Op::Dwarf3, Op::SizeLEB, Op::SizeLEB);
93 Descriptions[DW_OP_implicit_value] =
95 Descriptions[DW_OP_stack_value] = Desc(Op::Dwarf3);
96 Descriptions[DW_OP_GNU_push_tls_address] = Desc(Op::Dwarf3);
97 Descriptions[DW_OP_addrx] = Desc(Op::Dwarf4, Op::SizeLEB);
98 Descriptions[DW_OP_GNU_addr_index] = Desc(Op::Dwarf4, Op::SizeLEB);
99 Descriptions[DW_OP_GNU_const_index] = Desc(Op::Dwarf4, Op::SizeLEB);
100 Descriptions[DW_OP_GNU_entry_value] = Desc(Op::Dwarf4, Op::SizeLEB);
102 Descriptions[DW_OP_convert] = Desc(Op::Dwarf5, Op::BaseTypeRef);
103 Descriptions[DW_OP_entry_value] = Desc(Op::Dwarf5, Op::SizeLEB);
114 return Descriptions[OpCode];
lib/DebugInfo/DWARF/DWARFUnit.cpp 426 DWARFDie UnitDie(this, &DieArray[0]);
690 if (DieArray[I].getDepth() == ParentDepth)
691 return DWARFDie(this, &DieArray[I]);
710 if (DieArray[I].getDepth() == Depth)
711 return DWARFDie(this, &DieArray[I]);
727 if (DieArray[I].getDepth() == Depth - 1)
729 if (DieArray[I].getDepth() == Depth)
730 return DWARFDie(this, &DieArray[I]);
743 return DWARFDie(this, &DieArray[I]);
753 if (DieArray[I].getDepth() == Depth + 1 &&
754 DieArray[I].getTag() == dwarf::DW_TAG_null)
755 return DWARFDie(this, &DieArray[I]);
756 assert(DieArray[I].getDepth() > Depth && "Not processing children?");
lib/DebugInfo/GSYM/GsymReader.cpp 185 if (Data.getU32(&Offset, &Swap->Files[0].Dir, NumFiles*2))
lib/DebugInfo/GSYM/LineTable.cpp 168 const int64_t FirstDelta = DeltaInfos[I].Delta;
172 auto LineRange = DeltaInfos[J].Delta - FirstDelta;
175 CurrCount += DeltaInfos[J].Count;
183 MinLineDelta = DeltaInfos[BestIndex].Delta;
184 MaxLineDelta = DeltaInfos[BestEndIndex].Delta;
lib/DebugInfo/MSF/MSFBuilder.cpp 206 auto &CurrentBlocks = StreamData[Idx].second;
213 auto CurrentBlocks = ArrayRef<uint32_t>(StreamData[Idx].second);
217 StreamData[Idx].second = CurrentBlocks.drop_back(RemovedBlocks);
220 StreamData[Idx].first = Size;
298 Sizes[I] = StreamData[I].first;
300 Allocator.Allocate<ulittle32_t>(StreamData[I].second.size());
301 std::uninitialized_copy_n(StreamData[I].second.begin(),
302 StreamData[I].second.size(), BlockList);
303 L.StreamMap[I] =
304 ArrayRef<ulittle32_t>(BlockList, StreamData[I].second.size());
lib/DebugInfo/PDB/Native/DbiModuleList.cpp 228 ModuleInitialFileIndex[I] = NextFileIndex;
229 ModuleDescriptorOffsets[I] = DescriptorIter.offset();
lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp 273 AddrMap.push_back(ulittle32_t(SymOffsets[Idx]));
lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp 322 auto InfoStreamBlocks = Layout.StreamMap[StreamPDB];
lib/DebugInfo/PDB/Native/PDBStringTableBuilder.cpp 187 if (Buckets[Slot] != 0)
189 Buckets[Slot] = Offset;
lib/DebugInfo/PDB/Native/SymbolCache.cpp 124 NativeRawSymbol &UnmodifiedNRS = *Cache[UnmodifiedId];
292 if (Compilands[Index] == 0) {
294 Compilands[Index] =
298 return Session.getConcreteSymbolById<PDBSymbolCompiland>(Compilands[Index]);
lib/DebugInfo/PDB/Native/TpiStream.cpp 156 HashMap[HV].push_back(TIB++);
lib/DebugInfo/PDB/Native/TpiStreamBuilder.cpp 132 HashBuffer[I] = TypeHashes[I] % (MaxTpiHashBuckets - 1);
lib/DebugInfo/PDB/UDTLayout.cpp 219 std::make_unique<VTableLayoutItem>(*this, std::move(VTables[0]));
lib/ExecutionEngine/ExecutionEngine.cpp 458 assert(!isTargetNullPtr(this, GVTOP(GVArgs[1])) &&
617 Result.AggregateVal[i].IntVal =
621 Result.AggregateVal[i] = getConstantValue(ElemUndef);
635 Result.AggregateVal[i].IntVal =
948 Result.AggregateVal[i].FloatVal = cast<ConstantFP>(
954 Result.AggregateVal[i].FloatVal = CDV->getElementAsFloat(i);
970 Result.AggregateVal[i].DoubleVal = cast<ConstantFP>(
976 Result.AggregateVal[i].DoubleVal = CDV->getElementAsDouble(i);
992 Result.AggregateVal[i].IntVal = cast<ConstantInt>(
995 Result.AggregateVal[i].IntVal =
1002 Result.AggregateVal[i].IntVal = APInt(
1106 Result.AggregateVal[i].FloatVal = *((float*)Ptr+i);
1111 Result.AggregateVal[i].DoubleVal = *((double*)Ptr+i);
1119 LoadIntFromMemory(Result.AggregateVal[i].IntVal,
1260 const GlobalValue *GV = NonCanonicalGlobals[i];
lib/ExecutionEngine/Interpreter/Execution.cpp 79 R.AggregateVal[i].FloatVal = -Src.AggregateVal[i].FloatVal;
79 R.AggregateVal[i].FloatVal = -Src.AggregateVal[i].FloatVal;
82 R.AggregateVal[i].DoubleVal = -Src.AggregateVal[i].DoubleVal;
82 R.AggregateVal[i].DoubleVal = -Src.AggregateVal[i].DoubleVal;
448 if (DestMask.AggregateVal[_i].IntVal == false)
449 Dest.AggregateVal[_i].IntVal = APInt(1,false);
594 Dest.AggregateVal[_i].IntVal = APInt(1,
595 ( (Src1.AggregateVal[_i].FloatVal ==
596 Src1.AggregateVal[_i].FloatVal) &&
597 (Src2.AggregateVal[_i].FloatVal ==
598 Src2.AggregateVal[_i].FloatVal)));
601 Dest.AggregateVal[_i].IntVal = APInt(1,
602 ( (Src1.AggregateVal[_i].DoubleVal ==
603 Src1.AggregateVal[_i].DoubleVal) &&
604 (Src2.AggregateVal[_i].DoubleVal ==
605 Src2.AggregateVal[_i].DoubleVal)));
625 Dest.AggregateVal[_i].IntVal = APInt(1,
626 ( (Src1.AggregateVal[_i].FloatVal !=
627 Src1.AggregateVal[_i].FloatVal) ||
628 (Src2.AggregateVal[_i].FloatVal !=
629 Src2.AggregateVal[_i].FloatVal)));
632 Dest.AggregateVal[_i].IntVal = APInt(1,
633 ( (Src1.AggregateVal[_i].DoubleVal !=
634 Src1.AggregateVal[_i].DoubleVal) ||
635 (Src2.AggregateVal[_i].DoubleVal !=
636 Src2.AggregateVal[_i].DoubleVal)));
655 Dest.AggregateVal[_i].IntVal = APInt(1,val);
803 R.AggregateVal[i].FloatVal =
804 fmod(Src1.AggregateVal[i].FloatVal, Src2.AggregateVal[i].FloatVal);
804 fmod(Src1.AggregateVal[i].FloatVal, Src2.AggregateVal[i].FloatVal);
808 R.AggregateVal[i].DoubleVal =
809 fmod(Src1.AggregateVal[i].DoubleVal, Src2.AggregateVal[i].DoubleVal);
809 fmod(Src1.AggregateVal[i].DoubleVal, Src2.AggregateVal[i].DoubleVal);
851 Dest.AggregateVal[i] = (Src1.AggregateVal[i].IntVal == 0) ?
851 Dest.AggregateVal[i] = (Src1.AggregateVal[i].IntVal == 0) ?
852 Src3.AggregateVal[i] : Src2.AggregateVal[i];
852 Src3.AggregateVal[i] : Src2.AggregateVal[i];
1007 SetValue(PN, ResultValues[i], SF);
1201 uint64_t shiftAmount = Src2.AggregateVal[i].IntVal.getZExtValue();
1202 llvm::APInt valueToShift = Src1.AggregateVal[i].IntVal;
1228 uint64_t shiftAmount = Src2.AggregateVal[i].IntVal.getZExtValue();
1229 llvm::APInt valueToShift = Src1.AggregateVal[i].IntVal;
1255 uint64_t shiftAmount = Src2.AggregateVal[i].IntVal.getZExtValue();
1256 llvm::APInt valueToShift = Src1.AggregateVal[i].IntVal;
1281 Dest.AggregateVal[i].IntVal = Src.AggregateVal[i].IntVal.trunc(DBitWidth);
1281 Dest.AggregateVal[i].IntVal = Src.AggregateVal[i].IntVal.trunc(DBitWidth);
1301 Dest.AggregateVal[i].IntVal = Src.AggregateVal[i].IntVal.sext(DBitWidth);
1301 Dest.AggregateVal[i].IntVal = Src.AggregateVal[i].IntVal.sext(DBitWidth);
1322 Dest.AggregateVal[i].IntVal = Src.AggregateVal[i].IntVal.zext(DBitWidth);
1322 Dest.AggregateVal[i].IntVal = Src.AggregateVal[i].IntVal.zext(DBitWidth);
1344 Dest.AggregateVal[i].FloatVal = (float)Src.AggregateVal[i].DoubleVal;
1344 Dest.AggregateVal[i].FloatVal = (float)Src.AggregateVal[i].DoubleVal;
1366 Dest.AggregateVal[i].DoubleVal = (double)Src.AggregateVal[i].FloatVal;
1366 Dest.AggregateVal[i].DoubleVal = (double)Src.AggregateVal[i].FloatVal;
1392 Dest.AggregateVal[i].IntVal = APIntOps::RoundFloatToAPInt(
1393 Src.AggregateVal[i].FloatVal, DBitWidth);
1396 Dest.AggregateVal[i].IntVal = APIntOps::RoundDoubleToAPInt(
1397 Src.AggregateVal[i].DoubleVal, DBitWidth);
1430 Dest.AggregateVal[i].IntVal = APIntOps::RoundFloatToAPInt(
1431 Src.AggregateVal[i].FloatVal, DBitWidth);
1434 Dest.AggregateVal[i].IntVal = APIntOps::RoundDoubleToAPInt(
1435 Src.AggregateVal[i].DoubleVal, DBitWidth);
1464 Dest.AggregateVal[i].FloatVal =
1465 APIntOps::RoundAPIntToFloat(Src.AggregateVal[i].IntVal);
1468 Dest.AggregateVal[i].DoubleVal =
1469 APIntOps::RoundAPIntToDouble(Src.AggregateVal[i].IntVal);
1496 Dest.AggregateVal[i].FloatVal =
1497 APIntOps::RoundSignedAPIntToFloat(Src.AggregateVal[i].IntVal);
1500 Dest.AggregateVal[i].DoubleVal =
1501 APIntOps::RoundSignedAPIntToDouble(Src.AggregateVal[i].IntVal);
1591 TempSrc.AggregateVal[i].IntVal =
1592 APInt::floatToBits(SrcVec.AggregateVal[i].FloatVal);
1596 TempSrc.AggregateVal[i].IntVal =
1597 APInt::doubleToBits(SrcVec.AggregateVal[i].DoubleVal);
1600 TempSrc.AggregateVal[i].IntVal = SrcVec.AggregateVal[i].IntVal;
1600 TempSrc.AggregateVal[i].IntVal = SrcVec.AggregateVal[i].IntVal;
1619 Tmp = TempSrc.AggregateVal[SrcElt++].IntVal;
1635 Elt.IntVal = TempSrc.AggregateVal[i].IntVal;
1651 Dest.AggregateVal[i].DoubleVal =
1652 TempDst.AggregateVal[i].IntVal.bitsToDouble();
1656 Dest.AggregateVal[i].FloatVal =
1657 TempDst.AggregateVal[i].IntVal.bitsToFloat();
1663 Dest.DoubleVal = TempDst.AggregateVal[0].IntVal.bitsToDouble();
1665 Dest.FloatVal = TempDst.AggregateVal[0].IntVal.bitsToFloat();
1667 Dest.IntVal = TempDst.AggregateVal[0].IntVal;
1777 GenericValue Src = ECStack[VAList.UIntPairVal.first]
1778 .VarArgs[VAList.UIntPairVal.second];
1816 Dest.IntVal = Src1.AggregateVal[indx].IntVal;
1819 Dest.FloatVal = Src1.AggregateVal[indx].FloatVal;
1822 Dest.DoubleVal = Src1.AggregateVal[indx].DoubleVal;
1852 Dest.AggregateVal[indx].IntVal = Src2.IntVal;
1855 Dest.AggregateVal[indx].FloatVal = Src2.FloatVal;
1858 Dest.AggregateVal[indx].DoubleVal = Src2.DoubleVal;
1891 unsigned j = Src3.AggregateVal[i].IntVal.getZExtValue();
1893 Dest.AggregateVal[i].IntVal = Src1.AggregateVal[j].IntVal;
1893 Dest.AggregateVal[i].IntVal = Src1.AggregateVal[j].IntVal;
1895 Dest.AggregateVal[i].IntVal = Src2.AggregateVal[j-src1Size].IntVal;
1895 Dest.AggregateVal[i].IntVal = Src2.AggregateVal[j-src1Size].IntVal;
1907 unsigned j = Src3.AggregateVal[i].IntVal.getZExtValue();
1909 Dest.AggregateVal[i].FloatVal = Src1.AggregateVal[j].FloatVal;
1909 Dest.AggregateVal[i].FloatVal = Src1.AggregateVal[j].FloatVal;
1911 Dest.AggregateVal[i].FloatVal = Src2.AggregateVal[j-src1Size].FloatVal;
1911 Dest.AggregateVal[i].FloatVal = Src2.AggregateVal[j-src1Size].FloatVal;
1918 unsigned j = Src3.AggregateVal[i].IntVal.getZExtValue();
1920 Dest.AggregateVal[i].DoubleVal = Src1.AggregateVal[j].DoubleVal;
1920 Dest.AggregateVal[i].DoubleVal = Src1.AggregateVal[j].DoubleVal;
1922 Dest.AggregateVal[i].DoubleVal =
1923 Src2.AggregateVal[j-src1Size].DoubleVal;
1943 pSrc = &pSrc->AggregateVal[*IdxBegin];
1988 pDest = &pDest->AggregateVal[*IdxBegin];
lib/ExecutionEngine/Interpreter/Interpreter.h 184 return &(ECStack.back ().VarArgs[0]);
lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp 188 auto &Cur = *Sections[I];
189 auto &Next = *Sections[I + 1];
336 SecIndexToSymbols[NSym.Sect - 1].push_back(&NSym);
379 auto &SecNSymStack = SecIndexToSymbols[SecIndex];
lib/ExecutionEngine/MCJIT/MCJIT.cpp 657 EventListeners[I]->notifyObjectLoaded(Key, Obj, L);
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp 452 (SectionSizes[Idx] + Alignment - 1) / Alignment * Alignment;
lib/FuzzMutate/FuzzerCLI.cpp 63 errs() << " " << Args[I];
127 errs() << " " << Args[I];
lib/IR/AsmWriter.cpp 241 Stack.back().Shuffle[I] = List[I].second;
516 assert(!NumberedTypes[P.second] && "Didn't get a unique numbering?");
517 NumberedTypes[P.second] = P.first;
2682 moduleVec[Machine.getModulePathSlot(ModPath.first())] = std::make_pair(
3381 TypePrinter.printStructBody(NumberedTypes[I], Out);
4136 asVec[I->second] = *I;
lib/IR/AutoUpgrade.cpp 858 NewCtors[i] = ConstantStruct::get(
lib/IR/InlineAsm.cpp 74 pCodes = &multipleAlternatives[0].Codes;
149 if (N >= ConstraintsSoFar.size() || ConstraintsSoFar[N].Type != isOutput||
157 ConstraintsSoFar[N].multipleAlternatives.size())
160 ConstraintsSoFar[N].multipleAlternatives[multipleAlternativeIndex];
160 ConstraintsSoFar[N].multipleAlternatives[multipleAlternativeIndex];
167 if (ConstraintsSoFar[N].hasMatchingInput() &&
168 (size_t)ConstraintsSoFar[N].MatchingInput !=
172 ConstraintsSoFar[N].MatchingInput = ConstraintsSoFar.size();
173 assert(ConstraintsSoFar[N].MatchingInput >= 0);
177 pCodes = &multipleAlternatives[multipleAlternativeIndex].Codes;
210 multipleAlternatives[currentAlternativeIndex];
265 switch (Constraints[i].Type) {
269 if (!Constraints[i].isIndirect) {
lib/IR/Metadata.cpp 1481 Elements[0] = dwarf::DW_OP_plus_uconst;
1482 Elements[1] = Offset;
lib/IR/ModuleSummaryIndex.cpp 187 P.second.SummaryList[0]->getBaseObject()))
lib/LTO/LTO.cpp 464 return Mods[0];
590 Expected<BitcodeLTOInfo> LTOInfo = Input.Mods[ModI].getLTOInfo();
603 BitcodeModule BM = Input.Mods[ModI];
lib/LTO/ThinLTOCodeGenerator.cpp 925 ProducedBinaries[count] = std::move(OutputBuffer);
927 ProducedBinaryFiles[count] =
1032 Modules[LeftIndex]->getSingleBitcodeModule().getBuffer().size();
1034 Modules[RightIndex]->getSingleBitcodeModule().getBuffer().size();
1042 auto &Mod = Modules[IndexCount];
1066 ProducedBinaries[count] = std::move(ErrOrBuffer.get());
1068 ProducedBinaryFiles[count] = writeGeneratedObject(
1122 ProducedBinaries[count] = std::move(OutputBuffer);
1125 ProducedBinaryFiles[count] = writeGeneratedObject(
lib/MC/ELFObjectWriter.cpp 793 SectionTable[SymtabShndxSectionIndex - 1];
952 const ELFRelocationEntry &Entry = Relocs[e - i - 1];
1004 const MCSectionELF *StrtabSection = SectionTable[StringTableIndex - 1];
lib/MC/MCCodeView.cpp 81 if (Functions[FuncId].isUnallocatedFunctionInfo())
83 return &Functions[FuncId];
91 if (!Functions[FuncId].isUnallocatedFunctionInfo())
95 Functions[FuncId].ParentFuncIdPlusOne = MCCVFunctionInfo::FunctionSentinel;
106 if (!Functions[FuncId].isUnallocatedFunctionInfo())
115 MCCVFunctionInfo *Info = &Functions[FuncId];
282 unsigned LocationFuncId = MCCVLines[Idx].getFunctionId();
285 FilteredLines.push_back(MCCVLines[Idx]);
300 MCCVLines[Idx].getLabel(),
323 return makeArrayRef(&MCCVLines[L], R - L);
lib/MC/MCParser/AsmParser.cpp 2731 A[PI] = FA.Value;
2745 if (A[FAI].empty()) {
2754 A[FAI] = M->Parameters[FAI].Value;
lib/MC/MCWin64EH.cpp 188 WinEH::Instruction &frameInst = info->Instructions[info->LastFrameInst];
628 WinEH::Instruction inst = EpilogInstrs[i];
lib/MC/WasmObjectWriter.cpp 963 CustomSections[Sym.ElementIndex].OutputIndex;
lib/MCA/HardwareUnits/RegisterFile.cpp 90 RegisterRenamingInfo &Entry = RegisterMappings[Reg].second;
105 RegisterRenamingInfo &OtherEntry = RegisterMappings[*I].second;
174 const RegisterRenamingInfo &RRI = RegisterMappings[RegID].second;
179 WriteRef &OtherWrite = RegisterMappings[RegID].first;
213 RegisterMappings[RegID].first = Write;
214 RegisterMappings[RegID].second.AliasRegID = 0U;
216 RegisterMappings[*I].first = Write;
217 RegisterMappings[*I].second.AliasRegID = 0U;
224 allocatePhysRegs(RegisterMappings[RegID].second, UsedPhysRegs);
232 RegisterMappings[*I].first = Write;
233 RegisterMappings[*I].second.AliasRegID = 0U;
258 MCPhysReg RenameAs = RegisterMappings[RegID].second.RenameAs;
269 freePhysRegs(RegisterMappings[RegID].second, FreedPhysRegs);
271 WriteRef &WR = RegisterMappings[RegID].first;
276 WriteRef &OtherWR = RegisterMappings[*I].first;
285 WriteRef &OtherWR = RegisterMappings[*I].first;
292 const RegisterMapping &RMFrom = RegisterMappings[RS.getRegisterID()];
293 const RegisterMapping &RMTo = RegisterMappings[WS.getRegisterID()];
318 if (!RegisterMappings[RRITo.RenameAs].second.AllowMoveElimination)
338 const RegisterRenamingInfo &RMAlias = RegisterMappings[AliasedReg].second;
342 RegisterMappings[AliasReg].second.AliasRegID = AliasedReg;
344 RegisterMappings[*I].second.AliasRegID = AliasedReg;
lib/MCA/HardwareUnits/ResourceManager.cpp 130 Resources[Index] =
132 Strategies[Index] = getStrategyFor(*Resources[Index]);
132 Strategies[Index] = getStrategyFor(*Resources[Index]);
138 const ResourceState &RS = *Resources[Index];
150 Resource2Groups[IndexUnit] |= GroupMaskIdx;
163 Strategies[Index] = std::move(S);
180 ResourceState &RS = *Resources[Index];
188 uint64_t SubResourceID = Strategies[Index]->select(RS.getReadyMask());
197 ResourceState &RS = *Resources[RSID];
202 Strategies[RSID]->used(RR.second);
212 uint64_t Users = Resource2Groups[RSID];
216 ResourceState &CurrentUser = *Resources[GroupIndex];
218 Strategies[GroupIndex]->used(RR.first);
226 ResourceState &RS = *Resources[RSID];
235 uint64_t Users = Resource2Groups[RSID];
238 ResourceState &CurrentUser = *Resources[GroupIndex];
256 ResourceState &RS = *Resources[getResourceStateIndex(CurrentBuffer)];
274 ResourceState &RS = *Resources[getResourceStateIndex(CurrentBuffer)];
345 ResourceState &Resource = *Resources[Index];
354 ResourceState &Resource = *Resources[Index];
lib/MCA/HardwareUnits/RetireControlUnit.cpp 47 Queue[NextAvailableSlotIdx] = {IR, Entries, false};
75 RetireControlUnit::RUToken &Current = Queue[CurrentInstructionSlotIdx];
87 assert(Queue[TokenID].IR.getInstruction() && "Instruction was not dispatched!");
88 assert(Queue[TokenID].Executed == false && "Instruction already executed!");
89 Queue[TokenID].Executed = true;
lib/MCA/HardwareUnits/Scheduler.cpp 195 InstRef &IR = ReadySet[I];
197 Strategy->compare(IR, ReadySet[QueueIndex])) {
212 InstRef IR = ReadySet[QueueIndex];
213 std::swap(ReadySet[QueueIndex], ReadySet[ReadySet.size() - 1]);
213 std::swap(ReadySet[QueueIndex], ReadySet[ReadySet.size() - 1]);
lib/MCA/InstrBuilder.cpp 115 ResourcePlusCycles &A = Worklist[I];
133 ResourcePlusCycles &B = Worklist[J];
lib/Object/COFFImportFile.cpp 63 memcpy(&B[S], &Data, sizeof(T));
83 strcpy(reinterpret_cast<char *>(&B[Pos]), S.c_str());
89 support::endian::write32le(&B[Offset], Length);
251 memcpy(&Buffer[S], ImportName.data(), ImportName.size());
252 Buffer[S + ImportName.size()] = '\0';
lib/Object/SymbolSize.cpp 76 auto &P = Addresses[I];
82 while (NextI < N && Addresses[NextI].Address == P.Address)
85 uint64_t Size = Addresses[NextI].Address - P.Address;
94 Ret[P.Number] = {*P.I, P.Address};
lib/Object/WasmObjectFile.cpp 425 DataSegments[I].Data.Name = readString(Ctx);
426 DataSegments[I].Data.Alignment = readVaruint32(Ctx);
427 DataSegments[I].Data.LinkerFlags = readVaruint32(Ctx);
505 Signature = &Signatures[FunctionTypes[FuncIndex]];
505 Signature = &Signatures[FunctionTypes[FuncIndex]];
506 wasm::WasmFunction &Function = Functions[FuncIndex];
510 wasm::WasmImport &Import = *ImportedFunctions[Info.ElementIndex];
515 Signature = &Signatures[Import.SigIndex];
534 wasm::WasmGlobal &Global = Globals[GlobalIndex];
539 wasm::WasmImport &Import = *ImportedGlobals[Info.ElementIndex];
559 if (Offset + Size > DataSegments[Index].Data.Content.size())
574 StringRef SectionName = Sections[Info.ElementIndex].Name;
592 wasm::WasmEvent &Event = Events[EventIndex];
593 Signature = &Signatures[Event.Type.SigIndex];
599 wasm::WasmImport &Import = *ImportedEvents[Info.ElementIndex];
605 Signature = &Signatures[EventType->SigIndex];
659 if (DataSegments[Index].Data.Comdat != UINT32_MAX)
662 DataSegments[Index].Data.Comdat = ComdatIndex;
755 WasmSection &Section = Sections[SectionIndex];
1107 return Functions[Index - NumImportedFunctions];
1118 return Globals[Index - NumImportedGlobals];
1123 return Events[Index - NumImportedEvents];
lib/Object/WindowsResource.cpp 177 EndianCorrectedSrc[0] = UNI_UTF16_BYTE_ORDER_MARK_SWAPPED;
303 " in " + InputFilenames[FirstNode->Origin] + " and " + Twine(LastLang) +
304 " in " + InputFilenames[LastNode->Origin])
358 Entry, InputFilenames[Node->Origin], WR->getFileName()));
443 Context, InputFilenames[Child->Origin], InputFilenames.back()));
854 Symbol->Value = DataOffsets[i];
902 StringTableOffsets[Child.second->getStringIndex()]);
944 RelocationAddresses[DataNodes->getDataIndex()] = CurrentRelativeOffset;
979 Reloc->VirtualAddress = RelocationAddresses[i];
lib/ObjectYAML/DWARFVisitor.cpp 49 auto FirstAbbrevCode = Unit.Entries[0].AbbrCode;
55 auto &Abbrev = DebugInfo.AbbrevDecls[Entry.AbbrCode - FirstAbbrevCode];
77 MemoryBufferRef(StringRef((const char *)&FormVal->BlockData[0],
85 MemoryBufferRef(StringRef((const char *)&FormVal->BlockData[0],
94 MemoryBufferRef(StringRef((const char *)&FormVal->BlockData[0],
103 MemoryBufferRef(StringRef((const char *)&FormVal->BlockData[0],
lib/ObjectYAML/ELFEmitter.cpp 381 ELFYAML::Section *Sec = Doc.Sections[I].get();
389 Elf_Shdr &SHeader = SHeaders[I];
498 Elf_Sym &Symbol = Ret[++I];
650 Elf_Phdr &PHeader = PHeaders[PhdrIdx++];
660 Sections.push_back(&SHeaders[Index]);
1096 StringRef Name = Doc.Sections[I]->Name;
lib/ObjectYAML/MachOEmitter.cpp 499 ZeroToOffset(OS, FatFile.FatArchs[i].offset);
500 MachOWriter Writer(FatFile.Slices[i]);
503 auto SliceEnd = FatFile.FatArchs[i].offset + FatFile.FatArchs[i].size;
503 auto SliceEnd = FatFile.FatArchs[i].offset + FatFile.FatArchs[i].size;
lib/ObjectYAML/MinidumpEmitter.cpp 240 StreamDirectory[Stream.index()] = layout(File, *Stream.value());
lib/Option/OptTable.cpp 324 Info &In = OptionInfos[I];
495 unsigned Length = OptionHelp[i].Name.size();
502 const std::string &Option = OptionHelp[i].Name;
511 OS.indent(Pad + 1) << OptionHelp[i].HelpText << '\n';
lib/ProfileData/Coverage/CoverageMapping.cpp 66 const auto &E = Expressions[C.getExpressionID()];
241 Record.MappingRegions[0].Count.isZero() && Counts[0] > 0)
586 const auto &L = Segments[I - 1];
587 const auto &R = Segments[I];
lib/ProfileData/Coverage/CoverageMappingReader.cpp 127 Expressions[ID].Kind = CounterExpression::ExprKind(Tag);
281 if (auto Err = readCounter(Expressions[I].LHS))
283 if (auto Err = readCounter(Expressions[I].RHS))
444 Records[OldRecordIndex];
815 auto &R = MappingRecords[CurrentRecord];
lib/ProfileData/Coverage/CoverageMappingWriter.cpp 69 AdjustedExpressionIDs[ID] = 1;
75 if (!C.isExpression() || !AdjustedExpressionIDs[C.getExpressionID()])
77 AdjustedExpressionIDs[C.getExpressionID()] = UsedExpressions.size();
lib/ProfileData/InstrProf.cpp 546 ThisSiteRecords[I].overlap(OtherSiteRecords[I], ValueKind, Overlap,
582 Score += OverlapStats::score(Counts[I], Other.Counts[I],
582 Score += OverlapStats::score(Counts[I], Other.Counts[I],
584 MaxCount = std::max(Other.Counts[I], MaxCount);
592 FuncScore += OverlapStats::score(Counts[I], Other.Counts[I],
592 FuncScore += OverlapStats::score(Counts[I], Other.Counts[I],
652 ThisSiteRecords[I].merge(OtherSiteRecords[I], Weight, Warn);
666 Counts[I] =
667 SaturatingMultiplyAdd(Other.Counts[I], Weight, Counts[I], &Overflowed);
667 SaturatingMultiplyAdd(Other.Counts[I], Weight, Counts[I], &Overflowed);
lib/ProfileData/InstrProfWriter.cpp 284 TheSummary->setEntry(I, Res[I]);
lib/ProfileData/SampleProfReader.cpp 354 return NameTable[*Idx];
362 return StringRef(NameTable[*Idx]);
1080 StringRef Name(Names[NameIdx]);
1160 StringRef TargetName(Names[TargetIdx]);
lib/ProfileData/SampleProfWriter.cpp 432 IndexMap.insert({static_cast<uint32_t>(SecHdrTable[i].Type), i});
444 Writer.write(static_cast<uint64_t>(SecHdrTable[idx].Type));
445 Writer.write(static_cast<uint64_t>(SecHdrTable[idx].Flags));
446 Writer.write(static_cast<uint64_t>(SecHdrTable[idx].Offset));
447 Writer.write(static_cast<uint64_t>(SecHdrTable[idx].Size));
lib/Remarks/RemarkStringTable.cpp 68 Strings[KV.second] = KV.first();
lib/Support/ConvertUTFWrapper.cpp 105 ByteSwapped[I] = llvm::sys::SwapByteOrder_16(ByteSwapped[I]);
105 ByteSwapped[I] = llvm::sys::SwapByteOrder_16(ByteSwapped[I]);
106 Src = &ByteSwapped[0];
107 SrcEnd = &ByteSwapped[ByteSwapped.size() - 1] + 1;
lib/Support/FileCheck.cpp 1941 const FileCheckString &CheckLabelStr = (*CheckStrings)[j];
1967 const FileCheckString &CheckStr = (*CheckStrings)[i];
lib/Support/PluginLoader.cpp 45 return (*Plugins)[num];
lib/Support/RandomNumberGenerator.cpp 44 Data[0] = Seed;
45 Data[1] = Seed >> 32;
lib/Support/Signals.cpp 153 if (Modules[i])
154 Input << Modules[i] << " " << (void*)Offsets[i] << "\n";
154 Input << Modules[i] << " " << (void*)Offsets[i] << "\n";
189 if (!Modules[i]) {
211 OS << "(" << Modules[i] << '+' << format_hex(Offsets[i], 0) << ")";
211 OS << "(" << Modules[i] << '+' << format_hex(Offsets[i], 0) << ")";
lib/Support/SourceMgr.cpp 51 IncludeDirectories[i] + sys::path::get_separator().data() + Filename;
lib/Support/SpecialCaseList.cpp 189 auto &Entry = Sections[SectionsMap[Section]].Entries[Prefix][Category];
lib/Support/Statistic.cpp 177 (unsigned)utostr(Stats.Stats[i]->getValue()).size());
179 (unsigned)std::strlen(Stats.Stats[i]->getDebugType()));
192 MaxValLen, Stats.Stats[i]->getValue(),
193 MaxDebugTypeLen, Stats.Stats[i]->getDebugType(),
194 Stats.Stats[i]->getDesc());
lib/Support/TargetRegistry.cpp 128 OS << " " << Targets[i].first;
129 OS.indent(Width - Targets[i].first.size()) << " - "
130 << Targets[i].second->getShortDescription() << '\n';
lib/Support/TrigramIndex.cpp 102 CurCounts[J]++;
105 if (CurCounts[J] >= Counts[J])
lib/Support/YAMLTraits.cpp 232 CurrentNode = SQ->Entries[Index].get();
249 CurrentNode = SQ->Entries[index].get();
331 setError(SQ->Entries[i].get(), "unknown bit value");
lib/TableGen/Record.cpp 88 BitsRecTy *&Ty = Shared[Sz];
lib/Target/AArch64/AArch64ISelLowering.cpp 3785 CLI.getArgs()[Outs[i].OrigArgIndex].Ty,
lib/Target/AArch64/AArch64InstrInfo.cpp 5043 outliner::Candidate &FirstCand = RepeatedSequenceLocs[0];
5100 unsigned LastInstrOpcode = RepeatedSequenceLocs[0].back()->getOpcode();
5172 if (RepeatedSequenceLocs[0].back()->isTerminator()) {
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp 557 if (!HexLines[i].empty()) {
558 Comment = std::string(DisasmLineMaxLen - DisasmLines[i].size(), ' ');
559 Comment += " ; " + HexLines[i] + "\n";
562 OutStreamer->EmitBytes(StringRef(DisasmLines[i]));
lib/Target/AMDGPU/GCNILPSched.cpp 60 unsigned &SethiUllmanNumber = SUNumbers[SU->NodeNum];
301 SUSavedCopy[SU.NodeNum] = SU;
352 SU = SUSavedCopy[SU.NodeNum];
lib/Target/AMDGPU/GCNMinRegStrategy.cpp 51 NumPreds[SU->NodeNum] = std::numeric_limits<unsigned>::max();
62 assert(NumPreds[SU->NodeNum] != std::numeric_limits<unsigned>::max());
63 return --NumPreds[SU->NodeNum];
89 NumPreds[I] = SUnits[I].NumPredsLeft;
lib/Target/AMDGPU/GCNSchedStrategy.cpp 85 unsigned NewSGPRPressure = Pressure[SRI->getSGPRPressureSet()];
86 unsigned NewVGPRPressure = Pressure[SRI->getVGPRPressureSet()];
lib/Target/AMDGPU/R600ControlFlowFinalizer.cpp 445 if (Literals[i]->isImm()) {
446 MILit.addImm(Literals[i]->getImm());
448 MILit.addGlobalAddress(Literals[i]->getGlobal(),
449 Literals[i]->getOffset());
452 if (Literals[i + 1]->isImm()) {
453 MILit.addImm(Literals[i + 1]->getImm());
455 MILit.addGlobalAddress(Literals[i + 1]->getGlobal(),
456 Literals[i + 1]->getOffset());
475 BB->splice(InsertPos, BB, Clause.second[i]);
487 BB->splice(InsertPos, BB, Clause.second[i]);
670 EmitFetchClause(I, DL, FetchClauses[i], CfCount);
672 EmitALUClause(I, DL, AluClauses[i], CfCount);
684 MachineInstr *Alu = ToPopAfter[i];
lib/Target/AMDGPU/R600EmitClauseMarkers.cpp 154 if (CachedConsts[0] == BankLine) {
163 if (CachedConsts[1] == BankLine) {
176 switch(UsedKCache[j].first) {
179 R600::R600_KC0RegClass.getRegister(UsedKCache[j].second));
183 R600::R600_KC1RegClass.getRegister(UsedKCache[j].second));
298 .addImm(KCacheBanks.empty()?0:KCacheBanks[0].first) // KB0
299 .addImm((KCacheBanks.size() < 2)?0:KCacheBanks[1].first) // KB1
302 .addImm(KCacheBanks.empty()?0:KCacheBanks[0].second) // KLINE0
303 .addImm((KCacheBanks.size() < 2)?0:KCacheBanks[1].second) // KLINE1
lib/Target/AMDGPU/R600ISelLowering.cpp 2258 SDValue &Src = Ops[OperandIdx[i] - 1];
2259 SDValue &Neg = Ops[NegIdx[i] - 1];
2260 SDValue &Abs = Ops[AbsIdx[i] - 1];
2265 SDValue &Sel = (SelIdx > -1) ? Ops[SelIdx] : FakeOp;
2271 SDValue &Src = Ops[i];
2296 SDValue &Src = Ops[OperandIdx[i] - 1];
2297 SDValue &Neg = Ops[NegIdx[i] - 1];
2299 SDValue &Abs = (AbsIdx[i] > -1) ? Ops[AbsIdx[i] - 1] : FakeAbs;
2307 SDValue &Sel = (SelIdx > -1) ? Ops[SelIdx] : FakeOp;
2308 SDValue &Imm = Ops[ImmIdx];
lib/Target/AMDGPU/R600InstrInfo.cpp 376 if (Src[0] == Src[1])
376 if (Src[0] == Src[1])
377 Src[1].first = -1;
382 std::swap(Src[1], Src[2]);
382 std::swap(Src[1], Src[2]);
385 std::swap(Src[0], Src[1]);
385 std::swap(Src[0], Src[1]);
388 std::swap(Src[0], Src[1]);
388 std::swap(Src[0], Src[1]);
389 std::swap(Src[0], Src[2]);
389 std::swap(Src[0], Src[2]);
392 std::swap(Src[0], Src[2]);
392 std::swap(Src[0], Src[2]);
393 std::swap(Src[0], Src[1]);
393 std::swap(Src[0], Src[1]);
396 std::swap(Src[0], Src[2]);
396 std::swap(Src[0], Src[2]);
484 while (ResetIdx > -1 && SwzCandidate[ResetIdx] == R600InstrInfo::ALU_VEC_210)
487 SwzCandidate[i] = R600InstrInfo::ALU_VEC_012_SCL_210;
491 int NextSwizzle = SwzCandidate[ResetIdx] + 1;
492 SwzCandidate[ResetIdx] = (R600InstrInfo::BankSwizzle)NextSwizzle;
lib/Target/AMDGPU/R600MachineScheduler.cpp 339 AluKind AK = getAluKind(QSrc[i]);
340 AvailableAlus[AK].push_back(QSrc[i]);
lib/Target/AMDGPU/R600Packetizer.cpp 257 CurrentPacketMIs[i]->dump();
274 CurrentPacketMIs[i]->dump();
301 MachineInstr *MI = CurrentPacketMIs[i];
304 MI->getOperand(Op).setImm(BS[i]);
lib/Target/AMDGPU/SIInsertWaitcnts.cpp 1517 BlockInfo &SuccBI = BlockInfos[SuccIdx];
lib/Target/AMDGPU/SIMachineScheduler.cpp 272 TryCand.SGPRUsage = pressure[DAG->getSGPRSetID()];
273 TryCand.VGPRUsage = pressure[DAG->getVGPRSetID()];
274 TryCand.IsLowLatency = DAG->IsLowLatencySU[SU->NodeNum];
275 TryCand.LowLatencyOffset = DAG->LowLatencyOffset[SU->NodeNum];
277 HasLowLatencyNonWaitedParent[NodeNum2Index[SU->NodeNum]];
299 SUnit *SU = TopReadySUs[0];
512 if (HasLowLatencyNonWaitedParent[NodeNum2Index[SU->NodeNum]])
515 if (DAG->IsLowLatencySU[SU->NodeNum]) {
520 HasLowLatencyNonWaitedParent[I->second] = 1;
530 if (DAG->IsHighLatencySU[SU->NodeNum])
598 dbgs() << "LiveInPressure " << LiveInPressure[DAG->getSGPRSetID()] << ' '
599 << LiveInPressure[DAG->getVGPRSetID()] << '\n';
600 dbgs() << "LiveOutPressure " << LiveOutPressure[DAG->getSGPRSetID()] << ' '
601 << LiveOutPressure[DAG->getVGPRSetID()] << "\n\n";
655 return CurrentBlocks[Node2CurrentBlock[SU->NodeNum]]->getID() == ID;
655 return CurrentBlocks[Node2CurrentBlock[SU->NodeNum]]->getID() == ID;
662 SUnit *SU = &DAG->SUnits[i];
663 if (DAG->IsHighLatencySU[SU->NodeNum]) {
664 CurrentColoring[SU->NodeNum] = NextReservedID++;
688 SUnit *SU = &DAG->SUnits[i];
689 if (DAG->IsHighLatencySU[SU->NodeNum])
704 const SUnit &SU = DAG->SUnits[SUNum];
705 if (DAG->IsHighLatencySU[SU.NodeNum]) {
727 SubGraph = DAG->GetTopo()->GetSubGraph(SU, DAG->SUnits[j],
731 SubGraph = DAG->GetTopo()->GetSubGraph(DAG->SUnits[j], SU,
747 if (DAG->IsHighLatencySU[k] ||
748 (CurrentColoring[k] != ProposedColor &&
749 CurrentColoring[k] != 0)) {
755 if (hasDataDependencyPred(DAG->SUnits[k], DAG->SUnits[j])) {
755 if (hasDataDependencyPred(DAG->SUnits[k], DAG->SUnits[j])) {
763 if (hasDataDependencyPred(SU, DAG->SUnits[j])) {
779 CurrentColoring[j] = ProposedColor;
780 CurrentColoring[SU.NodeNum] = ProposedColor;
791 CurrentColoring[SU.NodeNum] = ProposedColor;
817 SUnit *SU = &DAG->SUnits[SUNum];
821 if (CurrentColoring[SU->NodeNum]) {
822 CurrentTopDownReservedDependencyColoring[SU->NodeNum] =
823 CurrentColoring[SU->NodeNum];
831 if (CurrentTopDownReservedDependencyColoring[Pred->NodeNum] > 0)
832 SUColors.insert(CurrentTopDownReservedDependencyColoring[Pred->NodeNum]);
839 CurrentTopDownReservedDependencyColoring[SU->NodeNum] =
845 CurrentTopDownReservedDependencyColoring[SU->NodeNum] = Pos->second;
847 CurrentTopDownReservedDependencyColoring[SU->NodeNum] =
859 SUnit *SU = &DAG->SUnits[SUNum];
863 if (CurrentColoring[SU->NodeNum]) {
864 CurrentBottomUpReservedDependencyColoring[SU->NodeNum] =
865 CurrentColoring[SU->NodeNum];
873 if (CurrentBottomUpReservedDependencyColoring[Succ->NodeNum] > 0)
874 SUColors.insert(CurrentBottomUpReservedDependencyColoring[Succ->NodeNum]);
881 CurrentBottomUpReservedDependencyColoring[SU->NodeNum] =
887 CurrentBottomUpReservedDependencyColoring[SU->NodeNum] = Pos->second;
889 CurrentBottomUpReservedDependencyColoring[SU->NodeNum] =
905 SUnit *SU = &DAG->SUnits[i];
909 if (CurrentColoring[SU->NodeNum])
912 SUColors.first = CurrentTopDownReservedDependencyColoring[SU->NodeNum];
913 SUColors.second = CurrentBottomUpReservedDependencyColoring[SU->NodeNum];
918 CurrentColoring[SU->NodeNum] = Pos->second;
920 CurrentColoring[SU->NodeNum] = NextNonReservedID;
942 SUnit *SU = &DAG->SUnits[SUNum];
946 if (CurrentColoring[SU->NodeNum] <= (int)DAGSize)
949 if (CurrentBottomUpReservedDependencyColoring[SU->NodeNum] > 0 ||
950 CurrentTopDownReservedDependencyColoring[SU->NodeNum] > 0)
957 if (CurrentBottomUpReservedDependencyColoring[Succ->NodeNum] > 0 ||
958 CurrentTopDownReservedDependencyColoring[Succ->NodeNum] > 0)
959 SUColors.insert(CurrentColoring[Succ->NodeNum]);
960 SUColorsPending.insert(PendingColoring[Succ->NodeNum]);
966 PendingColoring[SU->NodeNum] = *SUColors.begin();
969 PendingColoring[SU->NodeNum] = NextNonReservedID++;
983 PreviousColor = CurrentColoring[0];
986 SUnit *SU = &DAG->SUnits[i];
987 unsigned CurrentColor = CurrentColoring[i];
995 if (CurrentColoring[SU->NodeNum] <= (int)DAGSize)
1002 CurrentColoring[i] = NextNonReservedID++;
1004 CurrentColoring[i] = CurrentColoring[i-1];
1004 CurrentColoring[i] = CurrentColoring[i-1];
1012 SUnit *SU = &DAG->SUnits[SUNum];
1015 if (CurrentColoring[SU->NodeNum] <= (int)DAGSize)
1020 if (SU->Preds.size() > 0 && !DAG->IsLowLatencySU[SU->NodeNum])
1027 SUColors.insert(CurrentColoring[Succ->NodeNum]);
1030 CurrentColoring[SU->NodeNum] = *SUColors.begin();
1038 SUnit *SU = &DAG->SUnits[SUNum];
1041 if (CurrentColoring[SU->NodeNum] <= (int)DAGSize)
1048 SUColors.insert(CurrentColoring[Succ->NodeNum]);
1051 CurrentColoring[SU->NodeNum] = *SUColors.begin();
1059 SUnit *SU = &DAG->SUnits[SUNum];
1062 if (CurrentColoring[SU->NodeNum] <= (int)DAGSize)
1069 SUColors.insert(CurrentColoring[Succ->NodeNum]);
1072 CurrentColoring[SU->NodeNum] = *SUColors.begin();
1081 SUnit *SU = &DAG->SUnits[SUNum];
1082 unsigned color = CurrentColoring[SU->NodeNum];
1087 SUnit *SU = &DAG->SUnits[SUNum];
1088 unsigned color = CurrentColoring[SU->NodeNum];
1091 if (CurrentColoring[SU->NodeNum] <= (int)DAGSize)
1101 SUColors.insert(CurrentColoring[Succ->NodeNum]);
1105 CurrentColoring[SU->NodeNum] = *SUColors.begin();
1120 SUnit *SU = &DAG->SUnits[SUNum];
1123 if (CurrentColoring[SU->NodeNum] <= (int)DAGSize)
1133 CurrentColoring[SU->NodeNum] = GroupID;
1152 const SUnit &SU = DAG->SUnits[SUNum];
1165 SubGraph = DAG->GetTopo()->GetSubGraph(SU, DAG->SUnits[j],
1169 SubGraph = DAG->GetTopo()->GetSubGraph(DAG->SUnits[j], SU,
1177 if (!SIInstrInfo::isEXP(*DAG->SUnits[k].getInstr()))
1190 CurrentColoring[j] = ExportColor;
1227 SUnit *SU = &DAG->SUnits[i];
1228 unsigned Color = CurrentColoring[SU->NodeNum];
1235 CurrentBlocks[RealID[Color]]->addUnit(SU);
1236 Node2CurrentBlock[SU->NodeNum] = RealID[Color];
1241 SUnit *SU = &DAG->SUnits[i];
1242 int SUID = Node2CurrentBlock[i];
1247 if (Node2CurrentBlock[Succ->NodeNum] != SUID)
1248 CurrentBlocks[SUID]->addSucc(CurrentBlocks[Node2CurrentBlock[Succ->NodeNum]],
1248 CurrentBlocks[SUID]->addSucc(CurrentBlocks[Node2CurrentBlock[Succ->NodeNum]],
1248 CurrentBlocks[SUID]->addSucc(CurrentBlocks[Node2CurrentBlock[Succ->NodeNum]],
1255 if (Node2CurrentBlock[Pred->NodeNum] != SUID)
1256 CurrentBlocks[SUID]->addPred(CurrentBlocks[Node2CurrentBlock[Pred->NodeNum]]);
1256 CurrentBlocks[SUID]->addPred(CurrentBlocks[Node2CurrentBlock[Pred->NodeNum]]);
1256 CurrentBlocks[SUID]->addPred(CurrentBlocks[Node2CurrentBlock[Pred->NodeNum]]);
1262 SIScheduleBlock *Block = CurrentBlocks[i];
1267 SIScheduleBlock *Block = CurrentBlocks[i];
1297 SIScheduleBlock *Block = CurrentBlocks[i];
1299 TopDownBlock2Index[i] = Degree;
1308 SIScheduleBlock *Block = CurrentBlocks[i];
1310 TopDownBlock2Index[i] = --Id;
1311 TopDownIndex2Block[Id] = i;
1313 if (!--TopDownBlock2Index[Pred->getID()])
1321 SIScheduleBlock *Block = CurrentBlocks[i];
1323 assert(TopDownBlock2Index[i] > TopDownBlock2Index[Pred->getID()] &&
1323 assert(TopDownBlock2Index[i] > TopDownBlock2Index[Pred->getID()] &&
1342 SIScheduleBlock *Block = CurrentBlocks[i];
1357 int BlockIndice = TopDownIndex2Block[i];
1358 SIScheduleBlock *Block = CurrentBlocks[BlockIndice];
1389 SIScheduleBlock *Block = CurrentBlocks[i];
1397 MachineBasicBlock::iterator POld = PosOld[i-1];
1398 MachineBasicBlock::iterator PNew = PosNew[i-1];
1409 SIScheduleBlock *Block = CurrentBlocks[i];
1418 int BlockIndice = TopDownIndex2Block[i];
1419 SIScheduleBlock *Block = CurrentBlocks[BlockIndice];
1433 int BlockIndice = BottomUpIndex2Block[i];
1434 SIScheduleBlock *Block = CurrentBlocks[BlockIndice];
1467 SIScheduleBlock *Block = Blocks[i];
1477 if (topoInd < BlocksStruct.TopDownBlock2Index[Pred->getID()]) {
1478 topoInd = BlocksStruct.TopDownBlock2Index[Pred->getID()];
1486 int PredID = BlocksStruct.TopDownIndex2Block[topoInd];
1487 ++LiveOutRegsNumUsages[PredID][Reg];
1496 SIScheduleBlock *Block = Blocks[i];
1497 BlockNumPredsLeft[i] = Block->getPreds().size();
1498 BlockNumSuccsLeft[i] = Block->getSuccs().size();
1503 SIScheduleBlock *Block = Blocks[i];
1517 int ID = BlocksStruct.TopDownIndex2Block[Blocks.size()-1-i];
1518 SIScheduleBlock *Block = Blocks[ID];
1524 ++LiveOutRegsNumUsages[ID][Reg];
1532 SIScheduleBlock *Block = Blocks[i];
1551 SIScheduleBlock *Block = Blocks[i];
1552 if (BlockNumPredsLeft[i] == 0) {
1648 TryCand.Block->getOutRegs())[DAG->getVGPRSetID()];
1654 LastPosHighLatencyParentScheduled[TryCand.Block->getID()] -
1716 if (--BlockNumPredsLeft[Block.first->getID()] == 0)
1721 LastPosHighLatencyParentScheduled[Block.first->getID()] = NumBlockScheduled;
1730 LiveOutRegsNumUsages[Block->getID()].begin(),
1731 E = LiveOutRegsNumUsages[Block->getID()].end(); RegI != E; ++RegI) {
1738 if (LastPosHighLatencyParentScheduled[Block->getID()] >
1741 LastPosHighLatencyParentScheduled[Block->getID()];
1759 DiffSetPressure[*PSetI] -= PSetI.getWeight();
1769 DiffSetPressure[*PSetI] += PSetI.getWeight();
1789 SIScheduleBlock *Block = ScheduledBlocks[b];
1836 SUnit *SU = &SUnits[ScheduledSUnits[i]];
1836 SUnit *SU = &SUnits[ScheduledSUnits[i]];
1847 unsigned PredPos = ScheduledSUnitsInv[Pred->NodeNum];
1860 ++ScheduledSUnitsInv[ScheduledSUnits[u-1]];
1860 ++ScheduledSUnitsInv[ScheduledSUnits[u-1]];
1861 ScheduledSUnits[u] = ScheduledSUnits[u-1];
1861 ScheduledSUnits[u] = ScheduledSUnits[u-1];
1863 ScheduledSUnits[BestPos] = SU->NodeNum;
1864 ScheduledSUnitsInv[SU->NodeNum] = BestPos;
1887 ++ScheduledSUnitsInv[ScheduledSUnits[u-1]];
1887 ++ScheduledSUnitsInv[ScheduledSUnits[u-1]];
1888 ScheduledSUnits[u] = ScheduledSUnits[u-1];
1888 ScheduledSUnits[u] = ScheduledSUnits[u-1];
1890 ScheduledSUnits[MinPos] = SU->NodeNum;
1891 ScheduledSUnitsInv[SU->NodeNum] = MinPos;
1899 SUnits[i].isScheduled = false;
1900 SUnits[i].WeakPredsLeft = SUnitsLinksBackup[i].WeakPredsLeft;
1900 SUnits[i].WeakPredsLeft = SUnitsLinksBackup[i].WeakPredsLeft;
1901 SUnits[i].NumPredsLeft = SUnitsLinksBackup[i].NumPredsLeft;
1901 SUnits[i].NumPredsLeft = SUnitsLinksBackup[i].NumPredsLeft;
1902 SUnits[i].WeakSuccsLeft = SUnitsLinksBackup[i].WeakSuccsLeft;
1902 SUnits[i].WeakSuccsLeft = SUnitsLinksBackup[i].WeakSuccsLeft;
1903 SUnits[i].NumSuccsLeft = SUnitsLinksBackup[i].NumSuccsLeft;
1903 SUnits[i].NumSuccsLeft = SUnitsLinksBackup[i].NumSuccsLeft;
1958 SUnit *SU = &SUnits[i];
1962 IsLowLatencySU[i] = 1;
1965 LowLatencyOffset[i] = OffLatReg;
1967 IsHighLatencySU[i] = 1;
2021 ScheduledSUnitsInv[ScheduledSUnits[i]] = i;
2021 ScheduledSUnitsInv[ScheduledSUnits[i]] = i;
2033 SUnit *SU = &SUnits[*I];
lib/Target/AMDGPU/SIModeRegister.cpp 319 BlockInfo[MBB.getNumber()] = std::move(NewInfo);
332 BlockInfo[ThisBlock]->Pred = DefaultStatus;
338 BlockInfo[ThisBlock]->Pred = BlockInfo[PB.getNumber()]->Exit;
338 BlockInfo[ThisBlock]->Pred = BlockInfo[PB.getNumber()]->Exit;
342 BlockInfo[ThisBlock]->Pred = BlockInfo[ThisBlock]->Pred.intersect(BlockInfo[Pred->getNumber()]->Exit);
342 BlockInfo[ThisBlock]->Pred = BlockInfo[ThisBlock]->Pred.intersect(BlockInfo[Pred->getNumber()]->Exit);
342 BlockInfo[ThisBlock]->Pred = BlockInfo[ThisBlock]->Pred.intersect(BlockInfo[Pred->getNumber()]->Exit);
345 Status TmpStatus = BlockInfo[ThisBlock]->Pred.merge(BlockInfo[ThisBlock]->Change);
345 Status TmpStatus = BlockInfo[ThisBlock]->Pred.merge(BlockInfo[ThisBlock]->Change);
346 if (BlockInfo[ThisBlock]->Exit != TmpStatus) {
347 BlockInfo[ThisBlock]->Exit = TmpStatus;
366 if (!BlockInfo[ThisBlock]->Pred.isCompatible(BlockInfo[ThisBlock]->Require)) {
366 if (!BlockInfo[ThisBlock]->Pred.isCompatible(BlockInfo[ThisBlock]->Require)) {
367 Status Delta = BlockInfo[ThisBlock]->Pred.delta(BlockInfo[ThisBlock]->Require);
367 Status Delta = BlockInfo[ThisBlock]->Pred.delta(BlockInfo[ThisBlock]->Require);
368 if (BlockInfo[ThisBlock]->FirstInsertionPoint)
369 insertSetreg(MBB, BlockInfo[ThisBlock]->FirstInsertionPoint, TII, Delta);
lib/Target/AMDGPU/SIRegisterInfo.cpp 82 ++PressureSetRegUnits[PSets[j]];
88 if (isVGPRPressureSet(i) && PressureSetRegUnits[i] > VGPRMax) {
90 VGPRMax = PressureSetRegUnits[i];
93 if (isSGPRPressureSet(i) && PressureSetRegUnits[i] > SGPRMax) {
95 SGPRMax = PressureSetRegUnits[i];
97 if (isAGPRPressureSet(i) && PressureSetRegUnits[i] > AGPRMax) {
99 AGPRMax = PressureSetRegUnits[i];
lib/Target/ARM/ARMBaseInstrInfo.cpp 291 MachineInstr *NewMI = NewMIs[j];
305 MFI->insert(MBBI, NewMIs[1]);
306 MFI->insert(MBBI, NewMIs[0]);
307 return NewMIs[0];
lib/Target/ARM/ARMConstantIslandPass.cpp 313 CPUser &U = CPUsers[i];
434 BRChange |= fixupImmediateBr(ImmBranches[i]);
466 for (unsigned j = 0, je = CPEntries[i].size(); j != je; ++j) {
467 const CPEntry & CPE = CPEntries[i][j];
467 const CPEntry & CPE = CPEntries[i][j];
641 std::vector<CPEntry> &CPEs = CPEntries[CPI];
645 if (CPEs[i].CPEMI == CPEMI)
646 return &CPEs[i];
1145 std::vector<CPEntry> &CPEs = CPEntries[CPI];
1148 if (CPEs[i].CPEMI == CPEMI)
1151 if (CPEs[i].CPEMI == nullptr)
1153 if (isCPEntryInRange(UserMI, UserOffset, CPEs[i].CPEMI, U.getMaxDisp(),
1156 << CPEs[i].CPI << "\n");
1158 U.CPEMI = CPEs[i].CPEMI;
1162 UserMI->getOperand(j).setIndex(CPEs[i].CPI);
1166 CPEs[i].RefCount++;
1268 CPUser &U = CPUsers[CPUserIndex];
1389 if (CPUIndex < NumCPUsers && CPUsers[CPUIndex].MI == &*MI) {
1390 CPUser &U = CPUsers[CPUIndex];
1449 CPUser &U = CPUsers[CPUserIndex];
1528 CPEntries[CPI].push_back(CPEntry(U.CPEMI, ID, 1));
1588 std::vector<CPEntry> &CPEs = CPEntries[i];
1590 if (CPEs[j].RefCount == 0 && CPEs[j].CPEMI) {
1590 if (CPEs[j].RefCount == 0 && CPEs[j].CPEMI) {
1591 removeDeadCPEMI(CPEs[j].CPEMI);
1592 CPEs[j].CPEMI = nullptr;
1771 CPUser &U = CPUsers[i];
2198 CPUser &User = CPUsers[JumpTableUserIndices[JTI]];
2329 auto &CPEs = CPEntries[CPEntryIdx];
lib/Target/ARM/ARMFrameLowering.cpp 1080 CalleeSavedInfo &Info = CSI[i-1];
lib/Target/ARM/ARMISelDAGToDAG.cpp 4744 SDValue Chain = AsmNodeOperands[InlineAsm::Op_InputChain];
4759 AsmNodeOperands[InlineAsm::Op_InputChain] = Chain;
4773 AsmNodeOperands[AsmNodeOperands.size() -1] = CurDAG->getTargetConstant(
lib/Target/ARM/ARMISelLowering.cpp15953 std::swap(Args[0], Args[1]);
15953 std::swap(Args[0], Args[1]);
lib/Target/ARM/Thumb1FrameLowering.cpp 1026 CalleeSavedInfo &Info = CSI[i-1];
lib/Target/BPF/BPFISelDAGToDAG.cpp 385 ByteSeq[j] = endian_match ? TmpVal[i] : TmpVal[Offset + Size - 1 - j];
385 ByteSeq[j] = endian_match ? TmpVal[i] : TmpVal[Offset + Size - 1 - j];
408 Vals[Offset + i] = DL.isLittleEndian()
lib/Target/BPF/BTFDebug.cpp 370 if (Table[OffsetM.second] == S)
703 LineInfo.LineOff = addString(FileContent[FileName][Line]);
lib/Target/Hexagon/HexagonBitSimplify.cpp 1209 unsigned R = Pending[i];
3080 const MachineInstr *SI = G.Ins[i-1];
3210 MachineInstr *SI = ShufIns[i];
3221 MachineInstr *MI = ShufIns[j];
3235 ShufIns[j] = nullptr;
3253 InstrGroup &G = Groups[i];
3258 dbgs() << " " << *G.Ins[j];
3263 InstrGroup &G = Groups[i];
lib/Target/Hexagon/HexagonBitTracker.cpp 170 Vector[i] = BT::RegisterRef(MO);
lib/Target/Hexagon/HexagonCommonGEP.cpp 1095 GepNode *RN = NA[0];
1107 if (!NA[nax]->PTy->isPointerTy()) {
1115 GepNode *N = NA[nax-1];
1121 if (NextTy != NA[nax]->PTy)
1249 BasicBlock *B = cast<BasicBlock>(BO[i]);
1255 BasicBlock *B = cast<BasicBlock>(BO[i-1]);
lib/Target/Hexagon/HexagonConstExtenders.cpp 1260 assert(ER == ExtRoot(Extenders[I].getOp()));
1273 const ExtDesc &ED = Extenders[I];
1279 Ranges[I-Begin] = getOffsetRange(ED.Rd).shift(EV.Offset);
1285 int32_t D = alignDown(32767, Ranges[I-Begin].Align); // XXX hardcoded
1286 Ranges[I-Begin].extendBy(-D).extendBy(D);
1293 const ExtDesc &ED = Extenders[I];
1299 Ranges[I-Begin].intersect(Dev.shift(EV.Offset));
1307 RangeMap[Ranges[I-Begin]].insert(I);
1312 dbgs() << " " << I << ". " << Ranges[I-Begin] << '\n';
1398 IMap[{BestV,Extenders[I].Expr}].insert(I);
1460 return Extenders[I].Expr.Rs.isSlot();
1463 const ExtDesc &ED = Extenders[I];
1488 const ExtDesc &ED0 = Extenders[Refs[0]];
1493 const ExtDesc &ED = Extenders[Refs[i]];
1831 const ExtDesc &ED = Extenders[Idx];
1984 const ExtRoot &T = Extenders[B].getOp();
1985 while (I != E && ExtRoot(Extenders[I].getOp()) == T)
lib/Target/Hexagon/HexagonFrameLowering.cpp 1441 unsigned R = CSI[i].getReg();
1543 int FI = CSI[i].getFrameIdx();
1545 dbgs() << ' ' << printReg(CSI[i].getReg(), TRI) << ":fi#" << FI << ":sp";
lib/Target/Hexagon/HexagonGenInsert.cpp 274 const BitTracker::RegisterCell *CP = CVect[RInd];
276 CP = CVect[RInd] = &BT.lookup(VR);
637 RO.insert(std::make_pair(VRs[i], i));
899 uint16_t S = LL[i].second;
910 unsigned InsR = LL[i].first;
1043 findRemovableRegisters(I->first, LL[i].first, LL[i].second);
1043 findRemovableRegisters(I->first, LL[i].first, LL[i].second);
1076 if (LL[i].second.empty())
1096 IFRecord MaxIF = LL[0].first;
1099 const IFRecord &IF = LL[i].first;
1131 const RegisterSet &RMi = LL[i].second;
1134 if (j != i && LL[j].second.includes(RMi))
1156 unsigned SR = LL[i-1].first.SrcR, IR = LL[i-1].first.InsR;
1156 unsigned SR = LL[i-1].first.SrcR, IR = LL[i-1].first.InsR;
1387 unsigned SR = LL[0].first.SrcR, IR = LL[0].first.InsR;
1387 unsigned SR = LL[0].first.SrcR, IR = LL[0].first.InsR;
1417 IFRecord IF = I->second[0].first;
lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp 233 Node N = WorkQ[I];
358 V[I] = uint8_t(W);
451 if (T[U][Step] != S && T[U][Step] != None)
451 if (T[U][Step] != S && T[U][Step] != None)
453 T[U][Step] = S;
510 T[J][Pets] = S;
520 if (T[J][Pets] == Switch)
522 if (T[J+Size/2][Pets] == Switch)
569 T[I][Step] = Pass;
571 T[CI][Step] = Switch;
572 T[J][Pets] = (J < Num/2) ? Pass : Switch;
576 T[CI][Step] = Switch;
578 T[I][Step] = Pass;
579 T[J][Pets] = (J < Num/2) ? Switch : Pass;
591 if (T[J][Pets] == Switch)
593 if (T[J+Num/2][Pets] == Switch)
1007 SDValue Op = Output[Idx];
1348 SDNode *&N = T::operator[](i);
2026 if (Mask[I] == -1)
2028 unsigned Idx = Mask[I];
lib/Target/Hexagon/HexagonMachineScheduler.cpp 127 if (hasDependence(Packet[i], SU, QII))
131 if (hasDependence(SU, Packet[i], QII))
180 LLVM_DEBUG(dbgs() << Packet[i]->NodeNum << ")\t");
181 LLVM_DEBUG(Packet[i]->getInstr()->dump());
212 ++su) if (SUnits[su].getHeight() > maxH) maxH =
213 SUnits[su].getHeight();
217 ++su) if (SUnits[su].getDepth() > maxD) maxD =
218 SUnits[su].getDepth();
lib/Target/Hexagon/HexagonSplitDouble.cpp 292 unsigned T = WorkQ[i];
580 for (auto I : *WorkQ[i])
586 MachineLoop *L = WorkQ[i];
lib/Target/Hexagon/HexagonSubtarget.cpp 207 if (DAG->SUnits[su].getInstr()->isCall())
208 LastSequentialCall = &DAG->SUnits[su];
210 else if (DAG->SUnits[su].getInstr()->isCompare() && LastSequentialCall)
211 DAG->addEdge(&DAG->SUnits[su], SDep(LastSequentialCall, SDep::Barrier));
214 shouldTFRICallBind(HII, DAG->SUnits[su], DAG->SUnits[su+1]))
214 shouldTFRICallBind(HII, DAG->SUnits[su], DAG->SUnits[su+1]))
215 DAG->addEdge(&DAG->SUnits[su], SDep(&DAG->SUnits[su-1], SDep::Barrier));
215 DAG->addEdge(&DAG->SUnits[su], SDep(&DAG->SUnits[su-1], SDep::Barrier));
231 const MachineInstr *MI = DAG->SUnits[su].getInstr();
245 LastVRegUse[VRegHoldingReg[MO.getReg()]] = &DAG->SUnits[su];
250 LastVRegUse[*AI] != &DAG->SUnits[su])
252 DAG->addEdge(&DAG->SUnits[su], SDep(LastVRegUse[*AI], SDep::Barrier));
272 SUnit &S0 = DAG->SUnits[i];
285 SUnit &S1 = DAG->SUnits[j];
lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.cpp 517 if (!(jumpSlots[i].first & foundBranches[0]->Core.getUnits()))
521 if (!(jumpSlots[i].second & foundBranches[1]->Core.getUnits()))
526 foundBranches[0]->Core.setUnits(jumpSlots[i].first);
527 foundBranches[1]->Core.setUnits(jumpSlots[i].second);
lib/Target/Hexagon/RDFGraph.cpp 370 uint32_t Index = (ActiveEnd - Blocks[ActiveB])/NodeMemSize;
707 bool Found = isDelimiter(Stack[P-1], N);
1463 if (PRI.alias(RR, MaxRefs[I]))
1481 if (Aliased(MaxRefs[i], ClosureIdx))
1490 RegisterRef RR = MaxRefs[ClosureIdx[X]];
1490 RegisterRef RR = MaxRefs[ClosureIdx[X]];
1498 RegisterRef RR = MaxRefs[ClosureIdx[X]];
1498 RegisterRef RR = MaxRefs[ClosureIdx[X]];
1507 MaxRefs.erase(Begin + ClosureIdx[i-1]);
lib/Target/Hexagon/RDFLiveness.cpp 616 auto PA = DFG.addr<PhiNode*>(PhiUQ[i]);
lib/Target/Hexagon/RDFRegisters.cpp 35 RegInfo &RI = RegInfos[R];
49 if (UnitInfos[U].Reg != 0)
56 UnitInfos[U].Mask = LaneBitmask::getAll();
57 UnitInfos[U].Reg = F;
61 UnitInfo &UI = UnitInfos[P.first];
66 if (const TargetRegisterClass *RC = RegInfos[F].RegClass)
93 MaskInfos[M].Units = PU.flip();
lib/Target/MSP430/MSP430FrameLowering.cpp 220 BuildMI(MBB, MI, DL, TII.get(MSP430::POP16r), CSI[i].getReg());
lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp 528 Relocs[CopyTo++] = R.R;
lib/Target/Mips/Mips16ISelLowering.cpp 295 Type *t = Args[0].Ty;
305 Type *t = Args[1].Ty;
lib/Target/Mips/MipsCCState.cpp 136 TargetLowering::ArgListEntry FuncArg = FuncArgs[Outs[i].OrigArgIndex];
lib/Target/Mips/MipsConstantIslandPass.cpp 427 const BasicBlockInfo &BBI = BBInfo[J];
429 << format(" size=%#x\n", BBInfo[J].Size);
504 BRChange |= fixupImmediateBr(ImmBranches[i]);
610 std::vector<CPEntry> &CPEs = CPEntries[CPI];
614 if (CPEs[i].CPEMI == CPEMI)
615 return &CPEs[i];
791 BasicBlockInfo &BBI = BBInfo[MBB->getNumber()];
937 unsigned CPEOffset = BBInfo[Water->getNumber()].postOffset();
942 NextBlockOffset = BBInfo[Water->getNumber()].postOffset();
945 NextBlockOffset = BBInfo[NextBlock->getNumber()].Offset;
983 const BasicBlockInfo &BBI = BBInfo[Block];
1017 unsigned Offset = BBInfo[i - 1].Offset + BBInfo[i - 1].Size;
1017 unsigned Offset = BBInfo[i - 1].Offset + BBInfo[i - 1].Size;
1018 BBInfo[i].Offset = Offset;
1060 std::vector<CPEntry> &CPEs = CPEntries[CPI];
1063 if (CPEs[i].CPEMI == CPEMI)
1066 if (CPEs[i].CPEMI == nullptr)
1068 if (isCPEntryInRange(UserMI, UserOffset, CPEs[i].CPEMI, U.getMaxDisp(),
1071 << CPEs[i].CPI << "\n");
1073 U.CPEMI = CPEs[i].CPEMI;
1077 UserMI->getOperand(j).setIndex(CPEs[i].CPI);
1081 CPEs[i].RefCount++;
1116 std::vector<CPEntry> &CPEs = CPEntries[CPI];
1119 if (CPEs[i].CPEMI == CPEMI)
1122 if (CPEs[i].CPEMI == nullptr)
1124 if (isCPEntryInRange(UserMI, UserOffset, CPEs[i].CPEMI,
1127 << CPEs[i].CPI << "\n");
1129 U.CPEMI = CPEs[i].CPEMI;
1133 UserMI->getOperand(j).setIndex(CPEs[i].CPI);
1137 CPEs[i].RefCount++;
1215 CPUser &U = CPUsers[CPUserIndex];
1219 const BasicBlockInfo &UserBBI = BBInfo[UserMBB->getNumber()];
1243 BBInfo[UserMBB->getNumber()].Size += Delta;
1286 if (CPUIndex < NumCPUsers && CPUsers[CPUIndex].MI == MI) {
1287 CPUser &U = CPUsers[CPUIndex];
1310 CPUser &U = CPUsers[CPUserIndex];
1390 CPEntries[CPI].push_back(CPEntry(U.CPEMI, ID, 1));
1397 BBInfo[NewIsland->getNumber()].Size += Size;
1409 << format(" offset=%#x\n", BBInfo[NewIsland->getNumber()].Offset));
1420 BBInfo[CPEBB->getNumber()].Size -= Size;
1423 BBInfo[CPEBB->getNumber()].Size = 0;
1445 std::vector<CPEntry> &CPEs = CPEntries[i];
1447 if (CPEs[j].RefCount == 0 && CPEs[j].CPEMI) {
1447 if (CPEs[j].RefCount == 0 && CPEs[j].CPEMI) {
1448 removeDeadCPEMI(CPEs[j].CPEMI);
1449 CPEs[j].CPEMI = nullptr;
1463 unsigned DestOffset = BBInfo[DestBB->getNumber()].Offset;
1529 BBInfo[MBB->getNumber()].Size += 2;
1605 BBInfo[MBB->getNumber()].Size -= delta;
1626 BBInfo[MBB->getNumber()].Size += TII->getInstSizeInBytes(MBB->back());
1628 BBInfo[MBB->getNumber()].Size += TII->getInstSizeInBytes(MBB->back());
1633 BBInfo[MI->getParent()->getNumber()].Size -= TII->getInstSizeInBytes(*MI);
lib/Target/NVPTX/NVPTXAsmPrinter.cpp 1255 printModuleLevelGV(gvars[i], O, true);
lib/Target/NVPTX/NVPTXAsmPrinter.h 113 buffer[curpos] = Ptr[i];
117 buffer[curpos] = 0;
126 buffer[curpos] = 0;
145 O << (unsigned int) buffer[i];
187 O << *(unsigned int *)(&buffer[pos]);
189 O << *(unsigned long long *)(&buffer[pos]);
lib/Target/NVPTX/NVPTXISelLowering.cpp 1461 Type *Ty = Args[i].Ty;
1580 auto *PTy = dyn_cast<PointerType>(Args[i].Ty);
2501 Type *Ty = argTypes[i];
2507 theArgs[i],
2508 (theArgs[i]->getParent() ? theArgs[i]->getParent()->getParent()
2508 (theArgs[i]->getParent() ? theArgs[i]->getParent()->getParent()
2516 if (theArgs[i]->use_empty()) {
lib/Target/NVPTX/NVPTXUtilities.cpp 115 retval = (*annotationCache)[m][gv][prop][0];
290 unsigned v = Vs[i];
lib/Target/PowerPC/PPCAsmPrinter.cpp 1689 OutStreamer->EmitLabel(Stubs[i].first);
1691 MachineModuleInfoImpl::StubValueTy &MCSym = Stubs[i].second;
lib/Target/PowerPC/PPCBranchSelector.cpp 129 auto &BS = BlockSizes[MBB->getNumber()-1];
143 BlockSizes[MBB->getNumber()].first = BlockSize;
158 auto &BS = BlockSizes[MBB->getNumber()-1];
170 Offset += BlockSizes[MBB->getNumber()].first;
191 BranchSize += BlockSizes[DestBlock].first;
193 BranchSize += BlockSizes[i].first;
203 BranchSize = BlockSizes[StartBlock].first - BrOffset;
207 BranchSize += BlockSizes[i].first;
370 BlockSizes[MBB.getNumber()].first += 4;
lib/Target/PowerPC/PPCFrameLowering.cpp 2376 unsigned Reg = CSI[i].getReg();
2411 if (CSI[i].isSpilledToReg()) {
2415 .addReg(CSI[i].getDstReg(), getKillRegState(true));
2419 TII.loadRegFromStackSlot(MBB, I, Reg, CSI[i].getFrameIdx(), RC, TRI);
lib/Target/PowerPC/PPCTargetTransformInfo.cpp 225 InlineAsm::ConstraintInfo &C = CIV[i];
228 if (StringRef(C.Codes[j]).equals_lower("{ctr}"))
lib/Target/PowerPC/PPCVSXSwapRemoval.cpp 283 SwapVector[VecIdx].MentionsPartialVR = 1;
285 SwapVector[VecIdx].IsSwappable = 1;
302 SwapVector[VecIdx].IsSwap = 1;
306 SwapVector[VecIdx].IsSwappable = 1;
307 SwapVector[VecIdx].SpecialHandling = SHValues::SH_XXPERMDI;
319 SwapVector[VecIdx].IsSwappable = 1;
320 SwapVector[VecIdx].SpecialHandling = SHValues::SH_XXPERMDI;
327 SwapVector[VecIdx].MentionsPhysVR = 0;
331 SwapVector[VecIdx].IsSwappable = 1;
332 SwapVector[VecIdx].SpecialHandling = SHValues::SH_XXPERMDI;
341 SwapVector[VecIdx].IsLoad = 1;
347 SwapVector[VecIdx].IsLoad = 1;
348 SwapVector[VecIdx].IsSwap = 1;
358 SwapVector[VecIdx].IsLoad = 1;
359 SwapVector[VecIdx].IsSwappable = 1;
366 SwapVector[VecIdx].IsStore = 1;
372 SwapVector[VecIdx].IsStore = 1;
373 SwapVector[VecIdx].IsSwap = 1;
380 SwapVector[VecIdx].IsSwappable = 1;
387 SwapVector[VecIdx].IsSwappable = 1;
399 SwapVector[VecIdx].IsSwappable = 1;
402 SwapVector[VecIdx].IsSwappable = 1;
403 SwapVector[VecIdx].SpecialHandling = SHValues::SH_COPYWIDEN;
413 SwapVector[VecIdx].IsSwappable = 1;
414 SwapVector[VecIdx].SpecialHandling = SHValues::SH_SPLAT;
571 SwapVector[VecIdx].MentionsPhysVR = 1;
591 MachineInstr *MI = SwapVector[EntryIdx].VSEMI;
593 LLVM_DEBUG(dbgs() << "\n" << SwapVector[EntryIdx].VSEId << " ");
610 SwapVector[EntryIdx].MentionsPhysVR = 1;
621 (void)EC->unionSets(SwapVector[DefIdx].VSEId,
622 SwapVector[EntryIdx].VSEId);
625 SwapVector[DefIdx].VSEId,
626 SwapVector[EntryIdx].VSEId));
642 int Repr = EC->getLeaderValue(SwapVector[EntryIdx].VSEId);
645 if (SwapVector[Repr].WebRejected)
651 if (SwapVector[EntryIdx].MentionsPhysVR ||
652 SwapVector[EntryIdx].MentionsPartialVR ||
653 !(SwapVector[EntryIdx].IsSwappable || SwapVector[EntryIdx].IsSwap)) {
653 !(SwapVector[EntryIdx].IsSwappable || SwapVector[EntryIdx].IsSwap)) {
655 SwapVector[Repr].WebRejected = 1;
662 LLVM_DEBUG(SwapVector[EntryIdx].VSEMI->dump());
668 else if (SwapVector[EntryIdx].IsLoad && SwapVector[EntryIdx].IsSwap) {
668 else if (SwapVector[EntryIdx].IsLoad && SwapVector[EntryIdx].IsSwap) {
669 MachineInstr *MI = SwapVector[EntryIdx].VSEMI;
679 if (!SwapVector[UseIdx].IsSwap || SwapVector[UseIdx].IsLoad ||
679 if (!SwapVector[UseIdx].IsSwap || SwapVector[UseIdx].IsLoad ||
680 SwapVector[UseIdx].IsStore) {
682 SwapVector[Repr].WebRejected = 1;
696 } else if (SwapVector[EntryIdx].IsStore && SwapVector[EntryIdx].IsSwap) {
696 } else if (SwapVector[EntryIdx].IsStore && SwapVector[EntryIdx].IsSwap) {
697 MachineInstr *MI = SwapVector[EntryIdx].VSEMI;
703 if (!SwapVector[DefIdx].IsSwap || SwapVector[DefIdx].IsLoad ||
703 if (!SwapVector[DefIdx].IsSwap || SwapVector[DefIdx].IsLoad ||
704 SwapVector[DefIdx].IsStore) {
706 SwapVector[Repr].WebRejected = 1;
722 if (SwapVector[UseIdx].VSEMI->getOpcode() != MI->getOpcode()) {
723 SwapVector[Repr].WebRejected = 1;
732 LLVM_DEBUG(SwapVector[UseIdx].VSEMI->dump());
754 if (SwapVector[EntryIdx].IsLoad && SwapVector[EntryIdx].IsSwap) {
754 if (SwapVector[EntryIdx].IsLoad && SwapVector[EntryIdx].IsSwap) {
755 int Repr = EC->getLeaderValue(SwapVector[EntryIdx].VSEId);
757 if (!SwapVector[Repr].WebRejected) {
758 MachineInstr *MI = SwapVector[EntryIdx].VSEMI;
763 SwapVector[UseIdx].WillRemove = 1;
770 } else if (SwapVector[EntryIdx].IsStore && SwapVector[EntryIdx].IsSwap) {
770 } else if (SwapVector[EntryIdx].IsStore && SwapVector[EntryIdx].IsSwap) {
771 int Repr = EC->getLeaderValue(SwapVector[EntryIdx].VSEId);
773 if (!SwapVector[Repr].WebRejected) {
774 MachineInstr *MI = SwapVector[EntryIdx].VSEMI;
778 SwapVector[DefIdx].WillRemove = 1;
784 } else if (SwapVector[EntryIdx].IsSwappable &&
785 SwapVector[EntryIdx].SpecialHandling != 0) {
786 int Repr = EC->getLeaderValue(SwapVector[EntryIdx].VSEId);
788 if (!SwapVector[Repr].WebRejected)
815 switch (SwapVector[EntryIdx].SpecialHandling) {
823 MachineInstr *MI = SwapVector[EntryIdx].VSEMI;
862 MachineInstr *MI = SwapVector[EntryIdx].VSEMI;
892 MachineInstr *MI = SwapVector[EntryIdx].VSEMI;
947 if (SwapVector[EntryIdx].WillRemove) {
949 MachineInstr *MI = SwapVector[EntryIdx].VSEMI;
956 SwapVector[EntryIdx].VSEId));
972 MachineInstr *MI = SwapVector[EntryIdx].VSEMI;
973 int ID = SwapVector[EntryIdx].VSEId;
980 if (SwapVector[EntryIdx].IsLoad)
982 if (SwapVector[EntryIdx].IsStore)
984 if (SwapVector[EntryIdx].IsSwap)
986 if (SwapVector[EntryIdx].MentionsPhysVR)
988 if (SwapVector[EntryIdx].MentionsPartialVR)
991 if (SwapVector[EntryIdx].IsSwappable) {
993 switch(SwapVector[EntryIdx].SpecialHandling) {
1023 if (SwapVector[EntryIdx].WebRejected)
1025 if (SwapVector[EntryIdx].WillRemove)
lib/Target/RISCV/RISCVISelLowering.cpp 1653 Type *OrigTy = CLI ? CLI->getArgs()[Outs[i].OrigArgIndex].Ty : nullptr;
lib/Target/Sparc/SparcISelDAGToDAG.cpp 259 SDValue Chain = AsmNodeOperands[InlineAsm::Op_InputChain];
285 AsmNodeOperands[InlineAsm::Op_InputChain] = Chain;
299 AsmNodeOperands[AsmNodeOperands.size() -1] = CurDAG->getTargetConstant(
lib/Target/Sparc/SparcISelLowering.cpp 830 PointerType *Ty = cast<PointerType>(CLI.getArgs()[0].Ty);
lib/Target/SystemZ/SystemZFrameLowering.cpp 240 unsigned Reg = CSI[I].getReg();
242 TII->loadRegFromStackSlot(MBB, MBBI, Reg, CSI[I].getFrameIdx(),
245 TII->loadRegFromStackSlot(MBB, MBBI, Reg, CSI[I].getFrameIdx(),
273 unsigned Reg = CSI[I].getReg();
lib/Target/SystemZ/SystemZTargetTransformInfo.cpp 1096 ValueVecs[Index].set(Vec);
1104 unsigned NumSrcVecs = ValueVecs[Index].count();
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp 958 BasicBlock *BB = BBs[I];
1038 SI->addCase(IRB.getInt32(I + 1), SetjmpRetPHIs[I]->getParent());
1039 SetjmpRetPHIs[I]->addIncoming(LongjmpResult, EndBB);
lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h 79 void setLocal(size_t i, MVT VT) { Locals[i] = VT; }
121 WARegs[I] = WAReg;
lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp 101 Table[RTLIB::SHL_I16] = i16_func_i16_i16;
102 Table[RTLIB::SHL_I32] = i32_func_i32_i32;
103 Table[RTLIB::SHL_I64] = i64_func_i64_i64;
104 Table[RTLIB::SHL_I128] = i64_i64_func_i64_i64_i32;
105 Table[RTLIB::SRL_I16] = i16_func_i16_i16;
106 Table[RTLIB::SRL_I32] = i32_func_i32_i32;
107 Table[RTLIB::SRL_I64] = i64_func_i64_i64;
108 Table[RTLIB::SRL_I128] = i64_i64_func_i64_i64_i32;
109 Table[RTLIB::SRA_I16] = i16_func_i16_i16;
110 Table[RTLIB::SRA_I32] = i32_func_i32_i32;
111 Table[RTLIB::SRA_I64] = i64_func_i64_i64;
112 Table[RTLIB::SRA_I128] = i64_i64_func_i64_i64_i32;
113 Table[RTLIB::MUL_I8] = i8_func_i8_i8;
114 Table[RTLIB::MUL_I16] = i16_func_i16_i16;
115 Table[RTLIB::MUL_I32] = i32_func_i32_i32;
116 Table[RTLIB::MUL_I64] = i64_func_i64_i64;
117 Table[RTLIB::MUL_I128] = i64_i64_func_i64_i64_i64_i64;
118 Table[RTLIB::MULO_I32] = i32_func_i32_i32_iPTR;
119 Table[RTLIB::MULO_I64] = i64_func_i64_i64_iPTR;
120 Table[RTLIB::MULO_I128] = i64_i64_func_i64_i64_i64_i64_iPTR;
121 Table[RTLIB::SDIV_I8] = i8_func_i8_i8;
122 Table[RTLIB::SDIV_I16] = i16_func_i16_i16;
123 Table[RTLIB::SDIV_I32] = i32_func_i32_i32;
124 Table[RTLIB::SDIV_I64] = i64_func_i64_i64;
125 Table[RTLIB::SDIV_I128] = i64_i64_func_i64_i64_i64_i64;
126 Table[RTLIB::UDIV_I8] = i8_func_i8_i8;
127 Table[RTLIB::UDIV_I16] = i16_func_i16_i16;
128 Table[RTLIB::UDIV_I32] = i32_func_i32_i32;
129 Table[RTLIB::UDIV_I64] = i64_func_i64_i64;
130 Table[RTLIB::UDIV_I128] = i64_i64_func_i64_i64_i64_i64;
131 Table[RTLIB::SREM_I8] = i8_func_i8_i8;
132 Table[RTLIB::SREM_I16] = i16_func_i16_i16;
133 Table[RTLIB::SREM_I32] = i32_func_i32_i32;
134 Table[RTLIB::SREM_I64] = i64_func_i64_i64;
135 Table[RTLIB::SREM_I128] = i64_i64_func_i64_i64_i64_i64;
136 Table[RTLIB::UREM_I8] = i8_func_i8_i8;
137 Table[RTLIB::UREM_I16] = i16_func_i16_i16;
138 Table[RTLIB::UREM_I32] = i32_func_i32_i32;
139 Table[RTLIB::UREM_I64] = i64_func_i64_i64;
140 Table[RTLIB::UREM_I128] = i64_i64_func_i64_i64_i64_i64;
141 Table[RTLIB::SDIVREM_I8] = i8_func_i8_i8;
142 Table[RTLIB::SDIVREM_I16] = i16_i16_func_i16_i16;
143 Table[RTLIB::SDIVREM_I32] = i32_i32_func_i32_i32;
144 Table[RTLIB::SDIVREM_I64] = i64_func_i64_i64;
145 Table[RTLIB::SDIVREM_I128] = i64_i64_i64_i64_func_i64_i64_i64_i64;
146 Table[RTLIB::UDIVREM_I8] = i8_func_i8_i8;
147 Table[RTLIB::UDIVREM_I16] = i16_i16_func_i16_i16;
148 Table[RTLIB::UDIVREM_I32] = i32_i32_func_i32_i32;
149 Table[RTLIB::UDIVREM_I64] = i64_i64_func_i64_i64;
150 Table[RTLIB::UDIVREM_I128] = i64_i64_i64_i64_func_i64_i64_i64_i64;
151 Table[RTLIB::NEG_I32] = i32_func_i32;
152 Table[RTLIB::NEG_I64] = i64_func_i64;
156 Table[RTLIB::ADD_F32] = f32_func_f32_f32;
157 Table[RTLIB::ADD_F64] = f64_func_f64_f64;
158 Table[RTLIB::ADD_F128] = func_iPTR_i64_i64_i64_i64;
159 Table[RTLIB::SUB_F32] = f32_func_f32_f32;
160 Table[RTLIB::SUB_F64] = f64_func_f64_f64;
161 Table[RTLIB::SUB_F128] = func_iPTR_i64_i64_i64_i64;
162 Table[RTLIB::MUL_F32] = f32_func_f32_f32;
163 Table[RTLIB::MUL_F64] = f64_func_f64_f64;
164 Table[RTLIB::MUL_F128] = func_iPTR_i64_i64_i64_i64;
165 Table[RTLIB::DIV_F32] = f32_func_f32_f32;
166 Table[RTLIB::DIV_F64] = f64_func_f64_f64;
167 Table[RTLIB::DIV_F128] = func_iPTR_i64_i64_i64_i64;
168 Table[RTLIB::REM_F32] = f32_func_f32_f32;
169 Table[RTLIB::REM_F64] = f64_func_f64_f64;
170 Table[RTLIB::REM_F128] = func_iPTR_i64_i64_i64_i64;
171 Table[RTLIB::FMA_F32] = f32_func_f32_f32_f32;
172 Table[RTLIB::FMA_F64] = f64_func_f64_f64_f64;
173 Table[RTLIB::FMA_F128] = func_iPTR_i64_i64_i64_i64_i64_i64;
174 Table[RTLIB::POWI_F32] = f32_func_f32_i32;
175 Table[RTLIB::POWI_F64] = f64_func_f64_i32;
176 Table[RTLIB::POWI_F128] = func_iPTR_i64_i64_i64_i64;
177 Table[RTLIB::SQRT_F32] = f32_func_f32;
178 Table[RTLIB::SQRT_F64] = f64_func_f64;
179 Table[RTLIB::SQRT_F128] = func_iPTR_i64_i64;
180 Table[RTLIB::LOG_F32] = f32_func_f32;
181 Table[RTLIB::LOG_F64] = f64_func_f64;
182 Table[RTLIB::LOG_F128] = func_iPTR_i64_i64;
183 Table[RTLIB::LOG2_F32] = f32_func_f32;
184 Table[RTLIB::LOG2_F64] = f64_func_f64;
185 Table[RTLIB::LOG2_F128] = func_iPTR_i64_i64;
186 Table[RTLIB::LOG10_F32] = f32_func_f32;
187 Table[RTLIB::LOG10_F64] = f64_func_f64;
188 Table[RTLIB::LOG10_F128] = func_iPTR_i64_i64;
189 Table[RTLIB::EXP_F32] = f32_func_f32;
190 Table[RTLIB::EXP_F64] = f64_func_f64;
191 Table[RTLIB::EXP_F128] = func_iPTR_i64_i64;
192 Table[RTLIB::EXP2_F32] = f32_func_f32;
193 Table[RTLIB::EXP2_F64] = f64_func_f64;
194 Table[RTLIB::EXP2_F128] = func_iPTR_i64_i64;
195 Table[RTLIB::SIN_F32] = f32_func_f32;
196 Table[RTLIB::SIN_F64] = f64_func_f64;
197 Table[RTLIB::SIN_F128] = func_iPTR_i64_i64;
198 Table[RTLIB::COS_F32] = f32_func_f32;
199 Table[RTLIB::COS_F64] = f64_func_f64;
200 Table[RTLIB::COS_F128] = func_iPTR_i64_i64;
201 Table[RTLIB::SINCOS_F32] = func_f32_iPTR_iPTR;
202 Table[RTLIB::SINCOS_F64] = func_f64_iPTR_iPTR;
203 Table[RTLIB::SINCOS_F128] = func_i64_i64_iPTR_iPTR;
204 Table[RTLIB::POW_F32] = f32_func_f32_f32;
205 Table[RTLIB::POW_F64] = f64_func_f64_f64;
206 Table[RTLIB::POW_F128] = func_iPTR_i64_i64_i64_i64;
207 Table[RTLIB::CEIL_F32] = f32_func_f32;
208 Table[RTLIB::CEIL_F64] = f64_func_f64;
209 Table[RTLIB::CEIL_F128] = func_iPTR_i64_i64;
210 Table[RTLIB::TRUNC_F32] = f32_func_f32;
211 Table[RTLIB::TRUNC_F64] = f64_func_f64;
212 Table[RTLIB::TRUNC_F128] = func_iPTR_i64_i64;
213 Table[RTLIB::RINT_F32] = f32_func_f32;
214 Table[RTLIB::RINT_F64] = f64_func_f64;
215 Table[RTLIB::RINT_F128] = func_iPTR_i64_i64;
216 Table[RTLIB::NEARBYINT_F32] = f32_func_f32;
217 Table[RTLIB::NEARBYINT_F64] = f64_func_f64;
218 Table[RTLIB::NEARBYINT_F128] = func_iPTR_i64_i64;
219 Table[RTLIB::ROUND_F32] = f32_func_f32;
220 Table[RTLIB::ROUND_F64] = f64_func_f64;
221 Table[RTLIB::ROUND_F128] = func_iPTR_i64_i64;
222 Table[RTLIB::LROUND_F32] = iPTR_func_f32;
223 Table[RTLIB::LROUND_F64] = iPTR_func_f64;
224 Table[RTLIB::LROUND_F128] = iPTR_func_i64_i64;
225 Table[RTLIB::LLROUND_F32] = i64_func_f32;
226 Table[RTLIB::LLROUND_F64] = i64_func_f64;
227 Table[RTLIB::LLROUND_F128] = i64_func_i64_i64;
228 Table[RTLIB::LRINT_F32] = iPTR_func_f32;
229 Table[RTLIB::LRINT_F64] = iPTR_func_f64;
230 Table[RTLIB::LRINT_F128] = iPTR_func_i64_i64;
231 Table[RTLIB::LLRINT_F32] = i64_func_f32;
232 Table[RTLIB::LLRINT_F64] = i64_func_f64;
233 Table[RTLIB::LLRINT_F128] = i64_func_i64_i64;
234 Table[RTLIB::FLOOR_F32] = f32_func_f32;
235 Table[RTLIB::FLOOR_F64] = f64_func_f64;
236 Table[RTLIB::FLOOR_F128] = func_iPTR_i64_i64;
237 Table[RTLIB::COPYSIGN_F32] = f32_func_f32_f32;
238 Table[RTLIB::COPYSIGN_F64] = f64_func_f64_f64;
239 Table[RTLIB::COPYSIGN_F128] = func_iPTR_i64_i64_i64_i64;
240 Table[RTLIB::FMIN_F32] = f32_func_f32_f32;
241 Table[RTLIB::FMIN_F64] = f64_func_f64_f64;
242 Table[RTLIB::FMIN_F128] = func_iPTR_i64_i64_i64_i64;
243 Table[RTLIB::FMAX_F32] = f32_func_f32_f32;
244 Table[RTLIB::FMAX_F64] = f64_func_f64_f64;
245 Table[RTLIB::FMAX_F128] = func_iPTR_i64_i64_i64_i64;
249 Table[RTLIB::FPEXT_F64_F128] = func_iPTR_f64;
250 Table[RTLIB::FPEXT_F32_F128] = func_iPTR_f32;
251 Table[RTLIB::FPEXT_F32_F64] = f64_func_f32;
252 Table[RTLIB::FPEXT_F16_F32] = f32_func_i16;
253 Table[RTLIB::FPROUND_F32_F16] = i16_func_f32;
254 Table[RTLIB::FPROUND_F64_F16] = i16_func_f64;
255 Table[RTLIB::FPROUND_F64_F32] = f32_func_f64;
256 Table[RTLIB::FPROUND_F128_F16] = i16_func_i64_i64;
257 Table[RTLIB::FPROUND_F128_F32] = f32_func_i64_i64;
258 Table[RTLIB::FPROUND_F128_F64] = f64_func_i64_i64;
259 Table[RTLIB::FPTOSINT_F32_I32] = i32_func_f32;
260 Table[RTLIB::FPTOSINT_F32_I64] = i64_func_f32;
261 Table[RTLIB::FPTOSINT_F32_I128] = i64_i64_func_f32;
262 Table[RTLIB::FPTOSINT_F64_I32] = i32_func_f64;
263 Table[RTLIB::FPTOSINT_F64_I64] = i64_func_f64;
264 Table[RTLIB::FPTOSINT_F64_I128] = i64_i64_func_f64;
265 Table[RTLIB::FPTOSINT_F128_I32] = i32_func_i64_i64;
266 Table[RTLIB::FPTOSINT_F128_I64] = i64_func_i64_i64;
267 Table[RTLIB::FPTOSINT_F128_I128] = i64_i64_func_i64_i64;
268 Table[RTLIB::FPTOUINT_F32_I32] = i32_func_f32;
269 Table[RTLIB::FPTOUINT_F32_I64] = i64_func_f32;
270 Table[RTLIB::FPTOUINT_F32_I128] = i64_i64_func_f32;
271 Table[RTLIB::FPTOUINT_F64_I32] = i32_func_f64;
272 Table[RTLIB::FPTOUINT_F64_I64] = i64_func_f64;
273 Table[RTLIB::FPTOUINT_F64_I128] = i64_i64_func_f64;
274 Table[RTLIB::FPTOUINT_F128_I32] = i32_func_i64_i64;
275 Table[RTLIB::FPTOUINT_F128_I64] = i64_func_i64_i64;
276 Table[RTLIB::FPTOUINT_F128_I128] = i64_i64_func_i64_i64;
277 Table[RTLIB::SINTTOFP_I32_F32] = f32_func_i32;
278 Table[RTLIB::SINTTOFP_I32_F64] = f64_func_i32;
279 Table[RTLIB::SINTTOFP_I32_F128] = func_iPTR_i32;
280 Table[RTLIB::SINTTOFP_I64_F32] = f32_func_i64;
281 Table[RTLIB::SINTTOFP_I64_F64] = f64_func_i64;
282 Table[RTLIB::SINTTOFP_I64_F128] = func_iPTR_i64;
283 Table[RTLIB::SINTTOFP_I128_F32] = f32_func_i64_i64;
284 Table[RTLIB::SINTTOFP_I128_F64] = f64_func_i64_i64;
285 Table[RTLIB::SINTTOFP_I128_F128] = func_iPTR_i64_i64;
286 Table[RTLIB::UINTTOFP_I32_F32] = f32_func_i32;
287 Table[RTLIB::UINTTOFP_I32_F64] = f64_func_i64;
288 Table[RTLIB::UINTTOFP_I32_F128] = func_iPTR_i32;
289 Table[RTLIB::UINTTOFP_I64_F32] = f32_func_i64;
290 Table[RTLIB::UINTTOFP_I64_F64] = f64_func_i64;
291 Table[RTLIB::UINTTOFP_I64_F128] = func_iPTR_i64;
292 Table[RTLIB::UINTTOFP_I128_F32] = f32_func_i64_i64;
293 Table[RTLIB::UINTTOFP_I128_F64] = f64_func_i64_i64;
294 Table[RTLIB::UINTTOFP_I128_F128] = func_iPTR_i64_i64;
298 Table[RTLIB::OEQ_F32] = i32_func_f32_f32;
299 Table[RTLIB::OEQ_F64] = i32_func_f64_f64;
300 Table[RTLIB::OEQ_F128] = i32_func_i64_i64_i64_i64;
301 Table[RTLIB::UNE_F32] = i32_func_f32_f32;
302 Table[RTLIB::UNE_F64] = i32_func_f64_f64;
303 Table[RTLIB::UNE_F128] = i32_func_i64_i64_i64_i64;
304 Table[RTLIB::OGE_F32] = i32_func_f32_f32;
305 Table[RTLIB::OGE_F64] = i32_func_f64_f64;
306 Table[RTLIB::OGE_F128] = i32_func_i64_i64_i64_i64;
307 Table[RTLIB::OLT_F32] = i32_func_f32_f32;
308 Table[RTLIB::OLT_F64] = i32_func_f64_f64;
309 Table[RTLIB::OLT_F128] = i32_func_i64_i64_i64_i64;
310 Table[RTLIB::OLE_F32] = i32_func_f32_f32;
311 Table[RTLIB::OLE_F64] = i32_func_f64_f64;
312 Table[RTLIB::OLE_F128] = i32_func_i64_i64_i64_i64;
313 Table[RTLIB::OGT_F32] = i32_func_f32_f32;
314 Table[RTLIB::OGT_F64] = i32_func_f64_f64;
315 Table[RTLIB::OGT_F128] = i32_func_i64_i64_i64_i64;
316 Table[RTLIB::UO_F32] = i32_func_f32_f32;
317 Table[RTLIB::UO_F64] = i32_func_f64_f64;
318 Table[RTLIB::UO_F128] = i32_func_i64_i64_i64_i64;
322 Table[RTLIB::O_F32] = unsupported;
323 Table[RTLIB::O_F64] = unsupported;
324 Table[RTLIB::O_F128] = unsupported;
327 Table[RTLIB::MEMCPY] = iPTR_func_iPTR_iPTR_iPTR;
328 Table[RTLIB::MEMSET] = iPTR_func_iPTR_i32_iPTR;
329 Table[RTLIB::MEMMOVE] = iPTR_func_iPTR_iPTR_iPTR;
332 Table[RTLIB::STACKPROTECTOR_CHECK_FAIL] = func;
335 Table[RTLIB::RETURN_ADDRESS] = i32_func_i32;
339 Table[RTLIB::MEMCPY_ELEMENT_UNORDERED_ATOMIC_1] = unsupported;
340 Table[RTLIB::MEMCPY_ELEMENT_UNORDERED_ATOMIC_2] = unsupported;
341 Table[RTLIB::MEMCPY_ELEMENT_UNORDERED_ATOMIC_4] = unsupported;
342 Table[RTLIB::MEMCPY_ELEMENT_UNORDERED_ATOMIC_8] = unsupported;
343 Table[RTLIB::MEMCPY_ELEMENT_UNORDERED_ATOMIC_16] = unsupported;
344 Table[RTLIB::MEMMOVE_ELEMENT_UNORDERED_ATOMIC_1] = unsupported;
345 Table[RTLIB::MEMMOVE_ELEMENT_UNORDERED_ATOMIC_2] = unsupported;
346 Table[RTLIB::MEMMOVE_ELEMENT_UNORDERED_ATOMIC_4] = unsupported;
347 Table[RTLIB::MEMMOVE_ELEMENT_UNORDERED_ATOMIC_8] = unsupported;
348 Table[RTLIB::MEMMOVE_ELEMENT_UNORDERED_ATOMIC_16] = unsupported;
350 Table[RTLIB::MEMSET_ELEMENT_UNORDERED_ATOMIC_1] = unsupported;
351 Table[RTLIB::MEMSET_ELEMENT_UNORDERED_ATOMIC_2] = unsupported;
352 Table[RTLIB::MEMSET_ELEMENT_UNORDERED_ATOMIC_4] = unsupported;
353 Table[RTLIB::MEMSET_ELEMENT_UNORDERED_ATOMIC_8] = unsupported;
354 Table[RTLIB::MEMSET_ELEMENT_UNORDERED_ATOMIC_16] = unsupported;
358 Table[RTLIB::SYNC_VAL_COMPARE_AND_SWAP_1] = unsupported;
359 Table[RTLIB::SYNC_VAL_COMPARE_AND_SWAP_2] = unsupported;
360 Table[RTLIB::SYNC_VAL_COMPARE_AND_SWAP_4] = unsupported;
361 Table[RTLIB::SYNC_VAL_COMPARE_AND_SWAP_8] = unsupported;
362 Table[RTLIB::SYNC_VAL_COMPARE_AND_SWAP_16] = unsupported;
363 Table[RTLIB::SYNC_LOCK_TEST_AND_SET_1] = unsupported;
364 Table[RTLIB::SYNC_LOCK_TEST_AND_SET_2] = unsupported;
365 Table[RTLIB::SYNC_LOCK_TEST_AND_SET_4] = unsupported;
366 Table[RTLIB::SYNC_LOCK_TEST_AND_SET_8] = unsupported;
367 Table[RTLIB::SYNC_LOCK_TEST_AND_SET_16] = unsupported;
368 Table[RTLIB::SYNC_FETCH_AND_ADD_1] = unsupported;
369 Table[RTLIB::SYNC_FETCH_AND_ADD_2] = unsupported;
370 Table[RTLIB::SYNC_FETCH_AND_ADD_4] = unsupported;
371 Table[RTLIB::SYNC_FETCH_AND_ADD_8] = unsupported;
372 Table[RTLIB::SYNC_FETCH_AND_ADD_16] = unsupported;
373 Table[RTLIB::SYNC_FETCH_AND_SUB_1] = unsupported;
374 Table[RTLIB::SYNC_FETCH_AND_SUB_2] = unsupported;
375 Table[RTLIB::SYNC_FETCH_AND_SUB_4] = unsupported;
376 Table[RTLIB::SYNC_FETCH_AND_SUB_8] = unsupported;
377 Table[RTLIB::SYNC_FETCH_AND_SUB_16] = unsupported;
378 Table[RTLIB::SYNC_FETCH_AND_AND_1] = unsupported;
379 Table[RTLIB::SYNC_FETCH_AND_AND_2] = unsupported;
380 Table[RTLIB::SYNC_FETCH_AND_AND_4] = unsupported;
381 Table[RTLIB::SYNC_FETCH_AND_AND_8] = unsupported;
382 Table[RTLIB::SYNC_FETCH_AND_AND_16] = unsupported;
383 Table[RTLIB::SYNC_FETCH_AND_OR_1] = unsupported;
384 Table[RTLIB::SYNC_FETCH_AND_OR_2] = unsupported;
385 Table[RTLIB::SYNC_FETCH_AND_OR_4] = unsupported;
386 Table[RTLIB::SYNC_FETCH_AND_OR_8] = unsupported;
387 Table[RTLIB::SYNC_FETCH_AND_OR_16] = unsupported;
388 Table[RTLIB::SYNC_FETCH_AND_XOR_1] = unsupported;
389 Table[RTLIB::SYNC_FETCH_AND_XOR_2] = unsupported;
390 Table[RTLIB::SYNC_FETCH_AND_XOR_4] = unsupported;
391 Table[RTLIB::SYNC_FETCH_AND_XOR_8] = unsupported;
392 Table[RTLIB::SYNC_FETCH_AND_XOR_16] = unsupported;
393 Table[RTLIB::SYNC_FETCH_AND_NAND_1] = unsupported;
394 Table[RTLIB::SYNC_FETCH_AND_NAND_2] = unsupported;
395 Table[RTLIB::SYNC_FETCH_AND_NAND_4] = unsupported;
396 Table[RTLIB::SYNC_FETCH_AND_NAND_8] = unsupported;
397 Table[RTLIB::SYNC_FETCH_AND_NAND_16] = unsupported;
398 Table[RTLIB::SYNC_FETCH_AND_MAX_1] = unsupported;
399 Table[RTLIB::SYNC_FETCH_AND_MAX_2] = unsupported;
400 Table[RTLIB::SYNC_FETCH_AND_MAX_4] = unsupported;
401 Table[RTLIB::SYNC_FETCH_AND_MAX_8] = unsupported;
402 Table[RTLIB::SYNC_FETCH_AND_MAX_16] = unsupported;
403 Table[RTLIB::SYNC_FETCH_AND_UMAX_1] = unsupported;
404 Table[RTLIB::SYNC_FETCH_AND_UMAX_2] = unsupported;
405 Table[RTLIB::SYNC_FETCH_AND_UMAX_4] = unsupported;
406 Table[RTLIB::SYNC_FETCH_AND_UMAX_8] = unsupported;
407 Table[RTLIB::SYNC_FETCH_AND_UMAX_16] = unsupported;
408 Table[RTLIB::SYNC_FETCH_AND_MIN_1] = unsupported;
409 Table[RTLIB::SYNC_FETCH_AND_MIN_2] = unsupported;
410 Table[RTLIB::SYNC_FETCH_AND_MIN_4] = unsupported;
411 Table[RTLIB::SYNC_FETCH_AND_MIN_8] = unsupported;
412 Table[RTLIB::SYNC_FETCH_AND_MIN_16] = unsupported;
413 Table[RTLIB::SYNC_FETCH_AND_UMIN_1] = unsupported;
414 Table[RTLIB::SYNC_FETCH_AND_UMIN_2] = unsupported;
415 Table[RTLIB::SYNC_FETCH_AND_UMIN_4] = unsupported;
416 Table[RTLIB::SYNC_FETCH_AND_UMIN_8] = unsupported;
417 Table[RTLIB::SYNC_FETCH_AND_UMIN_16] = unsupported;
421 Table[RTLIB::ATOMIC_LOAD] = unsupported;
422 Table[RTLIB::ATOMIC_LOAD_1] = unsupported;
423 Table[RTLIB::ATOMIC_LOAD_2] = unsupported;
424 Table[RTLIB::ATOMIC_LOAD_4] = unsupported;
425 Table[RTLIB::ATOMIC_LOAD_8] = unsupported;
426 Table[RTLIB::ATOMIC_LOAD_16] = unsupported;
428 Table[RTLIB::ATOMIC_STORE] = unsupported;
429 Table[RTLIB::ATOMIC_STORE_1] = unsupported;
430 Table[RTLIB::ATOMIC_STORE_2] = unsupported;
431 Table[RTLIB::ATOMIC_STORE_4] = unsupported;
432 Table[RTLIB::ATOMIC_STORE_8] = unsupported;
433 Table[RTLIB::ATOMIC_STORE_16] = unsupported;
435 Table[RTLIB::ATOMIC_EXCHANGE] = unsupported;
436 Table[RTLIB::ATOMIC_EXCHANGE_1] = unsupported;
437 Table[RTLIB::ATOMIC_EXCHANGE_2] = unsupported;
438 Table[RTLIB::ATOMIC_EXCHANGE_4] = unsupported;
439 Table[RTLIB::ATOMIC_EXCHANGE_8] = unsupported;
440 Table[RTLIB::ATOMIC_EXCHANGE_16] = unsupported;
442 Table[RTLIB::ATOMIC_COMPARE_EXCHANGE] = unsupported;
443 Table[RTLIB::ATOMIC_COMPARE_EXCHANGE_1] = unsupported;
444 Table[RTLIB::ATOMIC_COMPARE_EXCHANGE_2] = unsupported;
445 Table[RTLIB::ATOMIC_COMPARE_EXCHANGE_4] = unsupported;
446 Table[RTLIB::ATOMIC_COMPARE_EXCHANGE_8] = unsupported;
447 Table[RTLIB::ATOMIC_COMPARE_EXCHANGE_16] = unsupported;
449 Table[RTLIB::ATOMIC_FETCH_ADD_1] = unsupported;
450 Table[RTLIB::ATOMIC_FETCH_ADD_2] = unsupported;
451 Table[RTLIB::ATOMIC_FETCH_ADD_4] = unsupported;
452 Table[RTLIB::ATOMIC_FETCH_ADD_8] = unsupported;
453 Table[RTLIB::ATOMIC_FETCH_ADD_16] = unsupported;
455 Table[RTLIB::ATOMIC_FETCH_SUB_1] = unsupported;
456 Table[RTLIB::ATOMIC_FETCH_SUB_2] = unsupported;
457 Table[RTLIB::ATOMIC_FETCH_SUB_4] = unsupported;
458 Table[RTLIB::ATOMIC_FETCH_SUB_8] = unsupported;
459 Table[RTLIB::ATOMIC_FETCH_SUB_16] = unsupported;
461 Table[RTLIB::ATOMIC_FETCH_AND_1] = unsupported;
462 Table[RTLIB::ATOMIC_FETCH_AND_2] = unsupported;
463 Table[RTLIB::ATOMIC_FETCH_AND_4] = unsupported;
464 Table[RTLIB::ATOMIC_FETCH_AND_8] = unsupported;
465 Table[RTLIB::ATOMIC_FETCH_AND_16] = unsupported;
467 Table[RTLIB::ATOMIC_FETCH_OR_1] = unsupported;
468 Table[RTLIB::ATOMIC_FETCH_OR_2] = unsupported;
469 Table[RTLIB::ATOMIC_FETCH_OR_4] = unsupported;
470 Table[RTLIB::ATOMIC_FETCH_OR_8] = unsupported;
471 Table[RTLIB::ATOMIC_FETCH_OR_16] = unsupported;
473 Table[RTLIB::ATOMIC_FETCH_XOR_1] = unsupported;
474 Table[RTLIB::ATOMIC_FETCH_XOR_2] = unsupported;
475 Table[RTLIB::ATOMIC_FETCH_XOR_4] = unsupported;
476 Table[RTLIB::ATOMIC_FETCH_XOR_8] = unsupported;
477 Table[RTLIB::ATOMIC_FETCH_XOR_16] = unsupported;
479 Table[RTLIB::ATOMIC_FETCH_NAND_1] = unsupported;
480 Table[RTLIB::ATOMIC_FETCH_NAND_2] = unsupported;
481 Table[RTLIB::ATOMIC_FETCH_NAND_4] = unsupported;
482 Table[RTLIB::ATOMIC_FETCH_NAND_8] = unsupported;
483 Table[RTLIB::ATOMIC_FETCH_NAND_16] = unsupported;
501 RuntimeLibcallSignatures->Table[NameLibcall.second] != unsupported) {
529 switch (Table[LC]) {
lib/Target/X86/X86CondBrFolding.cpp 377 MBBInfos[MBB.getNumber()] = nullptr;
378 MBBInfos[RootMBB->getNumber()] = nullptr;
394 MBBInfos[MBB.getNumber()] = analyzeMBB(MBB);
lib/Target/X86/X86FrameLowering.cpp 2006 if (TRI->regsOverlap(CSI[i].getReg(),FPReg)) {
2015 unsigned Reg = CSI[i - 1].getReg();
2024 CSI[i - 1].setFrameIdx(SlotIndex);
2032 unsigned Reg = CSI[i - 1].getReg();
2051 CSI[i - 1].setFrameIdx(SlotIndex);
2193 unsigned Reg = CSI[i].getReg();
2204 TII.loadRegFromStackSlot(MBB, MI, Reg, CSI[i].getFrameIdx(), RC, TRI);
2210 unsigned Reg = CSI[i].getReg();
3104 SortingObjects[Obj].IsValid = true;
3105 SortingObjects[Obj].ObjectIndex = Obj;
3106 SortingObjects[Obj].ObjectAlignment = MFI.getObjectAlignment(Obj);
3111 SortingObjects[Obj].ObjectSize = 4;
3113 SortingObjects[Obj].ObjectSize = ObjectSize;
3129 SortingObjects[Index].IsValid)
3130 SortingObjects[Index].ObjectNumUses++;
lib/Target/X86/X86ISelLowering.cpp 2204 Type *T = Args[Idx].Ty;
2213 Args[Idx].IsInReg = true;
25684 Vals[i] = Amt.getOperand(i);
25687 if (Vals[j] != Amt.getOperand(i + j))
45304 Constraints[0].Codes.size() == 1 && Constraints[0].Codes[0] == "A" &&
45304 Constraints[0].Codes.size() == 1 && Constraints[0].Codes[0] == "A" &&
45304 Constraints[0].Codes.size() == 1 && Constraints[0].Codes[0] == "A" &&
45305 Constraints[1].Codes.size() == 1 && Constraints[1].Codes[0] == "0") {
45305 Constraints[1].Codes.size() == 1 && Constraints[1].Codes[0] == "0") {
45305 Constraints[1].Codes.size() == 1 && Constraints[1].Codes[0] == "0") {
lib/Target/X86/X86InstrInfo.cpp 5685 if (isNullConstant(BeforeOps[1])) {
5696 BeforeOps[1] = BeforeOps[0];
5696 BeforeOps[1] = BeforeOps[0];
7993 std::accumulate(RepeatedSequenceLocs[0].front(),
7994 std::next(RepeatedSequenceLocs[0].back()), 0,
8005 if (RepeatedSequenceLocs[0].back()->isTerminator()) {
lib/TextAPI/MachO/TextStub.cpp 1086 return Seq[Index];
lib/ToolDrivers/llvm-lib/LibDriver.cpp 355 std::string OutputPath = getOutputPath(&Args, Members[0]);
lib/Transforms/IPO/ArgumentPromotion.cpp 457 NewName += "." + utostr(Operands[i]);
lib/Transforms/IPO/DeadArgumentElimination.cpp 820 NRetTy = ArrayType::get(RetTypes[0], RetTypes.size());
lib/Transforms/IPO/GlobalOpt.cpp 564 Value *NewPtr = NewGlobals[Val];
565 Type *NewTy = NewGlobals[Val]->getValueType();
603 if (NewGlobals[i]->use_empty()) {
604 Globals.erase(NewGlobals[i]);
608 return FirstGlobal != NewGlobals.size() ? NewGlobals[FirstGlobal] : nullptr;
1163 if (Value *FieldVal = FieldVals[FieldNo])
1192 return FieldVals[FieldNo] = Result;
1339 Value *Cond = new ICmpInst(CI, ICmpInst::ICMP_EQ, FieldMallocs[i],
1340 Constant::getNullValue(FieldMallocs[i]->getType()),
1365 new LoadInst(cast<GlobalVariable>(FieldGlobals[i])->getValueType(),
1366 FieldGlobals[i], "tmp", NullPtrBlock);
1378 new StoreInst(Constant::getNullValue(GVVal->getType()), FieldGlobals[i],
1415 Type *ValTy = cast<GlobalValue>(FieldGlobals[i])->getValueType();
1417 new StoreInst(Null, FieldGlobals[i], SI);
1428 PHINode *FieldPN = cast<PHINode>(InsertedScalarizedValues[PN][FieldNo]);
1464 return cast<GlobalVariable>(FieldGlobals[0]);
lib/Transforms/IPO/GlobalSplit.cpp 82 SplitGlobals[I] = SplitGV;
127 SplitGlobals[I]->getInitializer()->getType(), SplitGlobals[I], Ops,
127 SplitGlobals[I]->getInitializer()->getType(), SplitGlobals[I], Ops,
lib/Transforms/IPO/LowerTypeTests.cpp 188 uint64_t OldFragmentIndex = FragmentMap[ObjIndex];
199 std::vector<uint64_t> &OldFragment = Fragments[OldFragmentIndex];
207 FragmentMap[ObjIndex] = FragmentIndex;
230 Bytes[AllocByteOffset + B] |= AllocMask;
618 ByteArrayInfo *BAI = &ByteArrayInfos[I];
621 BAB.allocate(BAI->Bits, BAI->BitSize, ByteArrayOffsets[I], Mask);
636 ByteArrayInfo *BAI = &ByteArrayInfos[I];
639 ConstantInt::get(IntPtrTy, ByteArrayOffsets[I])};
1606 TypeMembers[I->second].insert(GlobalIndex);
lib/Transforms/IPO/PruneEH.cpp 265 Succs[i]->removePredecessor(BB);
lib/Transforms/IPO/WholeProgramDevirt.cpp 1504 std::swap(B.Before.Bytes[I], B.Before.Bytes[Size - 1 - I]);
1504 std::swap(B.Before.Bytes[I], B.Before.Bytes[Size - 1 - I]);
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp 263 ArgumentAttributes[TransformedIndex] = CallSiteAttrs.getParamAttributes(i);
lib/Transforms/Instrumentation/MemorySanitizer.cpp 3664 InlineAsm::ConstraintInfo Info = Constraints[i];
lib/Transforms/Instrumentation/PGOInstrumentation.cpp 575 ValueSites[IPVK_MemOPSize] = VPC.get(IPVK_MemOPSize);
578 NumOfPGOMemIntrinsics += ValueSites[IPVK_MemOPSize].size();
580 ValueSites[IPVK_IndirectCallTarget] = VPC.get(IPVK_IndirectCallTarget);
583 NumOfCSPGOMemIntrinsics += ValueSites[IPVK_MemOPSize].size();
631 (uint64_t)ValueSites[IPVK_IndirectCallTarget].size() << 48 |
642 << ValueSites[IPVK_IndirectCallTarget].size()
839 NumOfPGOICall += FuncInfo.ValueSites[IPVK_IndirectCallTarget].size();
847 for (VPCandidateInfo Cand : FuncInfo.ValueSites[Kind]) {
1185 LLVM_DEBUG(dbgs() << " " << I << ": " << CountFromProfile[I] << "\n");
1186 ValueSum += CountFromProfile[I];
1366 SCounts[0] = CountFromProfile[*CurCtrIdx]; // True count
1417 auto &ValueSites = FuncInfo.ValueSites[Kind];
lib/Transforms/ObjCARC/BlotMapVector.h 62 return Vector[Num].second;
64 return Vector[Pair.first->second].second;
100 Vector[It->second].first = KeyT();
lib/Transforms/Scalar/ConstantHoisting.cpp 380 ConstIntCandVec[Itr->second].addUser(Inst, Idx, Cost);
430 ExprCandVec[Itr->second].addUser(Inst, Idx, Cost);
lib/Transforms/Scalar/GVN.cpp 1576 ExprIdx[nextValueNumber++] = nextExprNumber++;
1658 if (Num >= ExprIdx.size() || ExprIdx[Num] == 0)
1660 Expression Exp = Expressions[ExprIdx[Num]];
1660 Expression Exp = Expressions[ExprIdx[Num]];
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp 1153 BasicBlock *ClonedBB = Result.Blocks[i];
lib/Transforms/Scalar/LoopInterchange.cpp 188 char TmpVal = DepMatrix[i][ToIndx];
188 char TmpVal = DepMatrix[i][ToIndx];
189 DepMatrix[i][ToIndx] = DepMatrix[i][FromIndx];
189 DepMatrix[i][ToIndx] = DepMatrix[i][FromIndx];
189 DepMatrix[i][ToIndx] = DepMatrix[i][FromIndx];
189 DepMatrix[i][ToIndx] = DepMatrix[i][FromIndx];
190 DepMatrix[i][FromIndx] = TmpVal;
190 DepMatrix[i][FromIndx] = TmpVal;
199 if (DepMatrix[Row][i] == '<')
199 if (DepMatrix[Row][i] == '<')
201 if (DepMatrix[Row][i] == '>')
201 if (DepMatrix[Row][i] == '>')
212 if (DepMatrix[Row][i] != '=' && DepMatrix[Row][i] != 'S' &&
212 if (DepMatrix[Row][i] != '=' && DepMatrix[Row][i] != 'S' &&
212 if (DepMatrix[Row][i] != '=' && DepMatrix[Row][i] != 'S' &&
212 if (DepMatrix[Row][i] != '=' && DepMatrix[Row][i] != 'S' &&
213 DepMatrix[Row][i] != 'I')
213 DepMatrix[Row][i] != 'I')
263 char InnerDep = DepMatrix[Row][InnerLoopId];
263 char InnerDep = DepMatrix[Row][InnerLoopId];
264 char OuterDep = DepMatrix[Row][OuterLoopId];
264 char OuterDep = DepMatrix[Row][OuterLoopId];
1086 if (Row[InnerLoopId] != 'S' && Row[InnerLoopId] != 'I')
1086 if (Row[InnerLoopId] != 'S' && Row[InnerLoopId] != 'I')
1089 if (Row[OuterLoopId] != '=')
lib/Transforms/Scalar/LoopUnswitch.cpp 1281 BasicBlock *NewBB = CloneBasicBlock(LoopBlocks[i], VMap, ".us", F);
1284 VMap[LoopBlocks[i]] = NewBB; // Keep the BB mapping.
1285 LPM->cloneBasicBlockSimpleAnalysis(LoopBlocks[i], NewBB, L);
1292 NewBlocks[0]->getIterator(), F->end());
1305 ParentLoop->addBasicBlockToLoop(NewBlocks[0], *LI);
1343 for (Instruction &I : *NewBlocks[i]) {
1354 assert(OldBR->isUnconditional() && OldBR->getSuccessor(0) == LoopBlocks[0] &&
1366 EmitPreheaderBranchOnCondition(LIC, Val, NewBlocks[0], LoopBlocks[0], OldBR,
1366 EmitPreheaderBranchOnCondition(LIC, Val, NewBlocks[0], LoopBlocks[0], OldBR,
lib/Transforms/Scalar/MergeICmps.cpp 515 EntryBlock_ = Comparisons[0].BB;
684 if (IsContiguous(Comparisons_[I - 1], Comparisons_[I]))
684 if (IsContiguous(Comparisons_[I - 1], Comparisons_[I]))
706 if (IsContiguous(Comparisons_[I], Comparisons_[I + 1])) {
706 if (IsContiguous(Comparisons_[I], Comparisons_[I + 1])) {
707 LLVM_DEBUG(dbgs() << "Merging block " << Comparisons_[I].BB->getName()
708 << " into " << Comparisons_[I + 1].BB->getName()
773 Blocks[BlockIndex] = CurBlock;
789 Blocks[0] = CurBlock;
lib/Transforms/Scalar/NewGVN.cpp 2919 LLVM_DEBUG(dbgs() << "Congruence class " << CongruenceClasses[i]->getID()
2920 << " has " << CongruenceClasses[i]->size()
2924 delete CongruenceClasses[i];
2925 CongruenceClasses[i] = nullptr;
lib/Transforms/Scalar/SCCP.cpp 1762 LatticeVal V = IVs[i];
lib/Transforms/Scalar/SROA.cpp 3889 PartOffset = Offsets.Splits[Idx];
3891 PartSize = (Idx < Size ? Offsets.Splits[Idx] : LoadSize) - PartOffset;
3913 LoadInst *PLoad = SplitLoads[Idx];
3914 uint64_t PartOffset = Idx == 0 ? 0 : Offsets.Splits[Idx - 1];
3999 PLoad = (*SplitLoads)[Idx];
4039 PartOffset = Offsets.Splits[Idx];
4041 PartSize = (Idx < Size ? Offsets.Splits[Idx] : StoreSize) - PartOffset;
lib/Transforms/Utils/CodeExtractor.cpp 1121 StructArgTy, Struct, Idx, "gep_" + StructValues[i]->getName());
1123 StoreInst *SI = new StoreInst(StructValues[i], GEP);
1164 Output = ReloadOutputs[i];
1172 Instruction *inst = cast<Instruction>(Users[u]);
lib/Transforms/Utils/CtorUtils.cpp 132 Function *F = Ctors[i];
146 Ctors[i] = nullptr;
lib/Transforms/Utils/LoopSimplify.cpp 446 Instruction *TI = BackedgeBlocks[i]->getTerminator();
lib/Transforms/Utils/LoopUnroll.cpp 672 DT->addNewBlock(New, Latches[It - 1]);
748 BasicBlock *Dest = Headers[j];
775 setDest(Latches[i], Dest, Headers, Headers[i], NeedConditional);
775 setDest(Latches[i], Dest, Headers, Headers[i], NeedConditional);
783 BasicBlock *Dest = HeaderSucc[i];
799 setDest(Headers[i], Dest, Headers, HeaderSucc[i], NeedConditional);
799 setDest(Headers[i], Dest, Headers, HeaderSucc[i], NeedConditional);
807 BranchInst *Term = cast<BranchInst>(Latches[i]->getTerminator());
811 BasicBlock *Dest = Headers[j];
lib/Transforms/Utils/LoopUnrollAndJam.cpp 326 if (*BB == ForeBlocksFirst[0])
328 if (*BB == ForeBlocksLast[0])
333 if (*BB == SubLoopBlocksFirst[0])
335 if (*BB == SubLoopBlocksLast[0])
340 if (*BB == AftBlocksFirst[0])
342 if (*BB == AftBlocksLast[0])
361 if (*BB == ForeBlocksFirst[0])
362 DT->addNewBlock(New, ForeBlocksLast[It - 1]);
363 else if (*BB == SubLoopBlocksFirst[0])
364 DT->addNewBlock(New, SubLoopBlocksLast[It - 1]);
365 else if (*BB == AftBlocksFirst[0])
366 DT->addNewBlock(New, AftBlocksLast[It - 1]);
392 for (PHINode &Phi : ForeBlocksFirst[It]->phis()) {
393 Value *OldValue = Phi.getIncomingValueForBlock(AftBlocksLast[It]);
400 Phi.setIncomingBlock(0, ForeBlocksLast[It - 1]);
443 updatePHIBlocksAndValues(LoopExit, AftBlocksLast[0], AftBlocksLast.back(),
449 BasicBlock *Dest = SubLoopBlocksFirst[0];
453 while (PHINode *Phi = dyn_cast<PHINode>(ForeBlocksFirst[0]->begin())) {
459 updatePHIBlocksAndValues(ForeBlocksFirst[0], AftBlocksLast[0],
459 updatePHIBlocksAndValues(ForeBlocksFirst[0], AftBlocksLast[0],
466 cast<BranchInst>(ForeBlocksLast[It - 1]->getTerminator());
467 BasicBlock *Dest = ForeBlocksFirst[It];
474 SubTerm->setSuccessor(!SubLoopContinueOnTrue, SubLoopBlocksFirst[0]);
475 SubTerm->setSuccessor(SubLoopContinueOnTrue, AftBlocksFirst[0]);
476 updatePHIBlocks(SubLoopBlocksFirst[0], ForeBlocksLast[0],
476 updatePHIBlocks(SubLoopBlocksFirst[0], ForeBlocksLast[0],
478 updatePHIBlocks(SubLoopBlocksFirst[0], SubLoopBlocksLast[0],
478 updatePHIBlocks(SubLoopBlocksFirst[0], SubLoopBlocksLast[0],
485 cast<BranchInst>(SubLoopBlocksLast[It - 1]->getTerminator());
486 BranchInst::Create(SubLoopBlocksFirst[It], SubTerm);
489 updatePHIBlocks(SubLoopBlocksFirst[It], ForeBlocksLast[It],
489 updatePHIBlocks(SubLoopBlocksFirst[It], ForeBlocksLast[It],
491 updatePHIBlocks(SubLoopBlocksFirst[It], SubLoopBlocksLast[It],
491 updatePHIBlocks(SubLoopBlocksFirst[It], SubLoopBlocksLast[It],
493 movePHIs(SubLoopBlocksFirst[It], SubLoopBlocksFirst[0]);
493 movePHIs(SubLoopBlocksFirst[It], SubLoopBlocksFirst[0]);
502 Term->setSuccessor(!ContinueOnTrue, ForeBlocksFirst[0]);
504 updatePHIBlocks(AftBlocksFirst[0], SubLoopBlocksLast[0],
504 updatePHIBlocks(AftBlocksFirst[0], SubLoopBlocksLast[0],
511 cast<BranchInst>(AftBlocksLast[It - 1]->getTerminator());
512 BranchInst::Create(AftBlocksFirst[It], AftTerm);
515 updatePHIBlocks(AftBlocksFirst[It], SubLoopBlocksLast[It],
515 updatePHIBlocks(AftBlocksFirst[It], SubLoopBlocksLast[It],
517 movePHIs(AftBlocksFirst[It], AftBlocksFirst[0]);
517 movePHIs(AftBlocksFirst[It], AftBlocksFirst[0]);
525 DTUpdates.emplace_back(DominatorTree::UpdateKind::Delete, ForeBlocksLast[0],
526 SubLoopBlocksFirst[0]);
528 SubLoopBlocksLast[0], AftBlocksFirst[0]);
528 SubLoopBlocksLast[0], AftBlocksFirst[0]);
531 ForeBlocksLast.back(), SubLoopBlocksFirst[0]);
533 SubLoopBlocksLast.back(), AftBlocksFirst[0]);
lib/Transforms/Utils/LoopUnrollRuntime.cpp 794 NewBlocks[0]->getIterator(),
lib/Transforms/Utils/PromoteMemoryToRegister.cpp 279 Allocas[AllocaIdx] = Allocas.back();
541 AllocaInst *AI = Allocas[AllocaNum];
596 AllocaLookup[Allocas[AllocaNum]] = AllocaNum;
639 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType());
639 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType());
853 PN = PHINode::Create(Allocas[AllocaNo]->getAllocatedType(), getNumPreds(BB),
854 Allocas[AllocaNo]->getName() + "." + Twine(Version++),
904 updateForIncomingValueLocation(APN, IncomingLocs[AllocaNo],
909 APN->addIncoming(IncomingVals[AllocaNo], Pred);
912 IncomingVals[AllocaNo] = APN;
944 Value *V = IncomingVals[AI->second];
969 IncomingVals[AllocaNo] = SI->getOperand(0);
972 IncomingLocs[AllocaNo] = SI->getDebugLoc();
lib/Transforms/Utils/SimplifyCFG.cpp 765 ConstantInt *TheVal = (*V1)[0].Value;
767 if (TheVal == (*V2)[i].Value)
776 if ((*V1)[i1].Value == (*V2)[i2].Value)
776 if ((*V1)[i1].Value == (*V2)[i2].Value)
778 if ((*V1)[i1].Value < (*V2)[i2].Value)
778 if ((*V1)[i1].Value < (*V2)[i2].Value)
859 ThisCases[0].Dest->removePredecessor(TI->getParent());
873 DeadCases.insert(PredCases[i].Value);
894 if (PredCases[i].Dest == TIBB) {
897 TIV = PredCases[i].Value;
905 if (ThisCases[i].Value == TIV) {
906 TheRealDest = ThisCases[i].Dest;
1068 if (PredCases[i].Dest != BB)
1069 PTIHandled.insert(PredCases[i].Value);
1072 std::swap(PredCases[i], PredCases.back());
1096 if (!PTIHandled.count(BBCases[i].Value) &&
1097 BBCases[i].Dest != BBDefault) {
1098 PredCases.push_back(BBCases[i]);
1099 NewSuccessors.push_back(BBCases[i].Dest);
1124 if (PredCases[i].Dest == BB) {
1125 PTIHandled.insert(PredCases[i].Value);
1128 WeightsForHandled[PredCases[i].Value] = Weights[i + 1];
1133 std::swap(PredCases[i], PredCases.back());
1142 if (PTIHandled.count(BBCases[i].Value)) {
1145 Weights.push_back(WeightsForHandled[BBCases[i].Value]);
1146 PredCases.push_back(BBCases[i]);
1147 NewSuccessors.push_back(BBCases[i].Dest);
1149 BBCases[i].Value); // This constant is taken care of
lib/Transforms/Vectorize/VPlan.cpp 467 PostDomSucc = Succs[0];
474 BasicBlock *InterimSucc = Succs[1];
476 PostDomSucc = Succs[1];
477 InterimSucc = Succs[0];
projects/openmp/libomptarget/src/api.cpp 60 DeviceTy &Device = Devices[device_num];
86 DeviceTy &Device = Devices[device_num];
114 DeviceTy& Device = Devices[device_num];
163 DeviceTy& DstDev = Devices[dst_device];
167 DeviceTy& SrcDev = Devices[src_device];
172 DeviceTy& SrcDev = Devices[src_device];
173 DeviceTy& DstDev = Devices[dst_device];
260 DeviceTy& Device = Devices[device_num];
286 DeviceTy& Device = Devices[device_num];
projects/openmp/libomptarget/src/device.cpp 382 DeviceTy &Device = Devices[device_num];
projects/openmp/libomptarget/src/interface.cpp 111 DeviceTy& Device = Devices[device_id];
159 DeviceTy &Device = Devices[device_id];
206 DeviceTy& Device = Devices[device_id];
347 Devices[device_id].LoopTripCnt.emplace(__kmpc_global_thread_num(NULL),
projects/openmp/libomptarget/src/omptarget.cpp 75 if (TransTable->TargetsTable[device_id] != 0) {
83 __tgt_device_image *img = TransTable->TargetsImages[device_id];
91 TransTable->TargetsTable[device_id] = Device.load_binary(img);
95 TransTable->TargetsImages[device_id] = 0;
109 TransTable->TargetsImages[device_id] = 0;
110 TransTable->TargetsTable[device_id] = 0;
194 DeviceTy &Device = Devices[device_id];
583 DeviceTy &Device = Devices[device_id];
632 __tgt_target_table *TargetTable = TM->Table->TargetsTable[device_id];
659 int tgtIdx = tgtArgsPositions[idx];
668 (void *)((intptr_t)tgt_args[tgtIdx] + tgt_offsets[tgtIdx]);
668 (void *)((intptr_t)tgt_args[tgtIdx] + tgt_offsets[tgtIdx]);
753 tgtArgsPositions[i] = tgt_args.size();
778 &tgt_args[0], &tgt_offsets[0], tgt_args.size(), team_num,
778 &tgt_args[0], &tgt_offsets[0], tgt_args.size(), team_num,
782 &tgt_args[0], &tgt_offsets[0], tgt_args.size());
782 &tgt_args[0], &tgt_offsets[0], tgt_args.size());
projects/openmp/libomptarget/src/rtl.cpp 154 if (TT.TargetsImages[RTL.Idx + i] != image) {
155 TT.TargetsImages[RTL.Idx + i] = image;
156 TT.TargetsTable[RTL.Idx + i] = 0; // lazy initialization of target table.
168 DeviceTy &Device = Devices[RTL->Idx + i];
266 Devices[start + device_id].DeviceID = start + device_id;
268 Devices[start + device_id].RTLDeviceID = device_id;
351 DeviceTy &Device = Devices[FoundRTL->Idx + i];
tools/bugpoint/CrashDebugger.cpp 154 GlobalVariable *CMGV = cast<GlobalVariable>(VMap[GVs[i]]);
247 Function *CMF = cast<Function>(VMap[Funcs[i]]);
249 assert(CMF->getFunctionType() == Funcs[i]->getFunctionType() && "wrong ty");
250 assert(CMF->getName() == Funcs[i]->getName() && "wrong name");
450 Blocks.insert(cast<BasicBlock>(VMap[BBs[i]]));
457 outs() << " " << BBs[i]->getName();
577 outs() << " " << BBs[i]->getName();
680 outs() << " " << BBs[i]->getName();
765 assert(!Insts[i]->isTerminator());
766 Instructions.insert(cast<Instruction>(VMap[Insts[i]]));
840 outs() << " " << NamedMDs[i];
904 OldMDNodeOps.insert(NamedMDOps[i]);
tools/bugpoint/ExtractFunction.cpp 231 Type *Int32Ty = Type::getInt32Ty(TorList[0].first->getContext());
233 StructType *STy = StructType::get(Int32Ty, TorList[0].first->getType());
235 Constant *Elts[] = {ConstantInt::get(Int32Ty, TorList[i].second),
236 TorList[i].first};
240 ArrayType::get(ArrayElts[0]->getType(), ArrayElts.size()), ArrayElts);
tools/bugpoint/FindBugs.cpp 51 outs() << "-" << PassesToRun[i] << " ";
tools/bugpoint/Miscompilation.cpp 345 MiscompiledFunctions[i] = cast<Function>(VMap[MiscompiledFunctions[i]]);
345 MiscompiledFunctions[i] = cast<Function>(VMap[MiscompiledFunctions[i]]);
375 MiscompiledFunctions[i] = cast<Function>(VMap[MiscompiledFunctions[i]]);
375 MiscompiledFunctions[i] = cast<Function>(VMap[MiscompiledFunctions[i]]);
401 Function *NewF = ToNotOptimize->getFunction(MisCompFunctions[i].first);
432 Function *NewF = ToNotOptimize->getFunction(MisCompFunctions[i].first);
507 Function *F = cast<Function>(VMap[FunctionsBeingTested[i]]);
545 for (BasicBlock &BB : *MiscompiledFunctions[i])
598 Function *NewF = ProgClone->getFunction(MisCompFunctions[i].first);
tools/bugpoint/ToolRunner.cpp 185 LLIArgs.push_back(ToolArgs[i]);
196 << " " << LLIArgs[i];
321 ProgramArgs.push_back(ExecutorArgs[i]);
451 LLCArgs.push_back(ToolArgs[i]);
464 << " " << LLCArgs[i];
567 JITArgs.push_back(ToolArgs[i]);
582 << " " << JITArgs[i];
610 if (!Args[I].equals_lower("-arch"))
615 if (Args[I].startswith_lower("arm"))
689 << " " << CCArgs[i];
737 << " " << ProgramArgs[i];
833 << " " << CCArgs[i];
tools/clang/include/clang/Analysis/Analyses/Consumed.h 218 VisitOrder[BI->getBlockID()] = VisitOrderCounter++;
tools/clang/include/clang/Analysis/Analyses/ThreadSafetyCommon.h 385 return BlockMap[B->getBlockID()];
tools/clang/include/clang/Analysis/Analyses/ThreadSafetyUtil.h 331 return Data->Vect[i];
tools/clang/include/clang/Analysis/PathDiagnostic.h 628 LPairs[0].setStart(L);
632 LPairs[0].setEnd(L);
tools/clang/include/clang/Sema/Sema.h10833 Diag.S.DeviceDeferredDiags[Diag.Fn][*Diag.PartialDiagId].second
tools/clang/lib/ARCMigrate/ARCMT.cpp 323 transforms[i](pass);
366 bool err = migration.applyTransform(transforms[i]);
tools/clang/lib/ARCMigrate/FileRemapper.cpp 104 remap(pairs[i].first, pairs[i].second);
104 remap(pairs[i].first, pairs[i].second);
tools/clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp 247 pass.TA.remove(pass.ARCMTMacroLocs[i]);
tools/clang/lib/ARCMigrate/TransGCAttrs.cpp 183 MigrationContext::GCAttrOccurrence &Attr = MigrateCtx.GCAttrs[i];
199 MigrationContext::GCAttrOccurrence &Attr = MigrateCtx.GCAttrs[i];
303 ObjCPropertyDecl *PD = AllProps[i];
336 GCAttrOccurrence &Attr = GCAttrs[i];
tools/clang/lib/ARCMigrate/TransformActions.cpp 200 ActionData &act = CachedActions[i];
244 ActionData &act = CachedActions[i];
tools/clang/lib/AST/Interp/Program.cpp 84 return Pointer(Globals[Idx]->block());
tools/clang/lib/AST/Interp/Program.h 56 return Globals[Idx]->block();
tools/clang/lib/AST/Type.cpp 3304 RecordTypeList[NextToCheckIndex]->getDecl()->fields()) {
tools/clang/lib/ASTMatchers/Dynamic/Diagnostics.cpp 47 Diagnostics::ErrorContent &Dest = Error->Errors[BeginIndex];
49 Dest.Messages.push_back(Error->Errors[i].Messages[0]);
49 Dest.Messages.push_back(Error->Errors[i].Messages[0]);
tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h 615 return Constructed[0];
tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp 611 Matcher.getArgKinds(Kind.getMatcherKind(), Arg, ArgsKinds[Arg]);
626 if (&Arg != &ArgsKinds[0])
655 else if (ArgsKinds[0][0].getArgKind() == ArgKind::AK_String)
655 else if (ArgsKinds[0][0].getArgKind() == ArgKind::AK_String)
tools/clang/lib/Analysis/CloneDetection.cpp 139 if (containsGroup(Result[j], Result[i])) {
139 if (containsGroup(Result[j], Result[i])) {
376 const auto Current = StmtsByHash[i];
387 if (PrototypeHash != StmtsByHash[i].first) {
398 NewGroup.push_back(StmtsByHash[i].second);
487 if (Indexes[i])
496 ++Indexes[i];
501 if (Indexes[j])
512 ++Indexes[j];
529 if (Variables[KindIndex] == VarDecl) {
568 auto ThisOccurence = Occurences[i];
590 FirstSuggestion = Variables[OtherOccurence.KindID];
595 Variables[ThisOccurence.KindID], ThisOccurence.Mention,
tools/clang/lib/Analysis/Consumed.cpp 1008 unsigned int CurrBlockOrder = VisitOrder[CurrBlock->getBlockID()];
1011 if (*PI && CurrBlockOrder < VisitOrder[(*PI)->getBlockID()] )
1022 auto &Entry = StateMapsArray[Block->getBlockID()];
1036 auto &Entry = StateMapsArray[Block->getBlockID()];
1047 assert(StateMapsArray[Block->getBlockID()] && "Block has no block info");
1049 return StateMapsArray[Block->getBlockID()].get();
1053 StateMapsArray[Block->getBlockID()] = nullptr;
1060 auto &Entry = StateMapsArray[Block->getBlockID()];
1069 return VisitOrder[From->getBlockID()] > VisitOrder[To->getBlockID()];
1069 return VisitOrder[From->getBlockID()] > VisitOrder[To->getBlockID()];
1080 unsigned int BlockVisitOrder = VisitOrder[Block->getBlockID()];
1083 if (*PI && BlockVisitOrder < VisitOrder[(*PI)->getBlockID()])
tools/clang/lib/Analysis/ThreadSafety.cpp 433 return &VarDefinitions[*i];
446 if (VarDefinitions[i].Exp) {
447 Ctx = VarDefinitions[i].Ctx;
448 return VarDefinitions[i].Exp;
450 i = VarDefinitions[i].Ref;
461 if (SavedContexts[CtxIndex+1].first == S) {
463 Context Result = SavedContexts[CtxIndex].second;
474 const NamedDecl *Dec = VarDefinitions[i].Dec;
486 const Expr *Exp = VarDefinitions[i].Exp;
487 unsigned Ref = VarDefinitions[i].Ref;
680 VarDefinition *VDef = &VarDefinitions[i1];
735 CFGBlockInfo *CurrBlockInfo = &BlockInfo[CurrBlockID];
751 CFGBlockInfo *PrevBlockInfo = &BlockInfo[PrevBlockID];
797 Context LoopBegin = BlockInfo[FirstLoopBlock->getBlockID()].EntryContext;
805 saveContext(nullptr, BlockInfo[exitID].ExitContext);
814 CFGBlockInfo *CurrBlockInfo = &BlockInfo[CurrBlock->getBlockID()];
846 BlockInfo[(*CurrBlock->pred_begin())->getBlockID()].ExitLoc;
1506 const CFGBlockInfo *PredBlockInfo = &BlockInfo[PredBlock->getBlockID()];
2292 BlockInfo[CFGraph->getEntry().getBlockID()].Reachable = true;
2309 FactSet &InitialLockset = BlockInfo[FirstBlock->getBlockID()].EntrySet;
2365 CFGBlockInfo *CurrBlockInfo = &BlockInfo[CurrBlockID];
2392 CFGBlockInfo *PrevBlockInfo = &BlockInfo[PrevBlockID];
2433 CFGBlockInfo *PrevBlockInfo = &BlockInfo[PrevBlockID];
2502 CFGBlockInfo *PreLoop = &BlockInfo[FirstLoopBlock->getBlockID()];
2503 CFGBlockInfo *LoopEnd = &BlockInfo[CurrBlockID];
2511 CFGBlockInfo *Initial = &BlockInfo[CFGraph->getEntry().getBlockID()];
2512 CFGBlockInfo *Final = &BlockInfo[CFGraph->getExit().getBlockID()];
tools/clang/lib/Analysis/ThreadSafetyCommon.cpp 796 unsigned ArgIndex = BBInfo[Blk->getBlockID()].ProcessedPredecessors;
823 BlockMap[B->getBlockID()] = BB;
849 CurrentBlockInfo = &BBInfo[B->getBlockID()];
859 CurrentBB->addPredecessor(BlockMap[Pred->getBlockID()]);
860 BlockInfo *PredInfo = &BBInfo[Pred->getBlockID()];
931 ++BBInfo[Succ->getBlockID()].ProcessedPredecessors;
tools/clang/lib/Basic/Module.cpp 327 return SubModules[Pos->getValue()];
630 else if (ImportLocs[ID].isValid())
633 ImportLocs[ID] = Loc;
tools/clang/lib/Basic/SourceManager.cpp 360 if (MemBufferInfos[i]) {
361 MemBufferInfos[i]->~ContentCache();
362 ContentCacheAlloc.Deallocate(MemBufferInfos[i]);
tools/clang/lib/CodeGen/CGDeclCXX.cpp 516 CXXGlobalInits[I->second] == nullptr);
517 CXXGlobalInits[I->second] = Fn;
tools/clang/lib/CodeGen/CGExprConstant.cpp 2223 elements[fieldIndex] = EmitNullConstantForBase(CGM, baseType, base);
2233 elements[fieldIndex] = CGM.EmitNullConstant(Field->getType());
2259 if (elements[fieldIndex]) continue;
2262 elements[fieldIndex] = EmitNullConstantForBase(CGM, baseType, base);
2268 if (!elements[i])
2269 elements[i] = llvm::Constant::getNullValue(structure->getElementType(i));
tools/clang/lib/CodeGen/CGObjCMac.cpp 6096 DefinedMetaClasses[i]->setLinkage(llvm::GlobalVariable::ExternalLinkage);
tools/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp 884 BFIs[i].second->print(OS);
tools/clang/lib/CodeGen/CGStmt.cpp 2187 ReplaceConstraint = OutputConstraints[Output];
2209 ArgTypes.push_back(InOutArgTypes[i]);
2210 Args.push_back(InOutArgs[i]);
2266 ResultType = ResultRegTypes[0];
2300 llvm::Value *Tmp = RegResults[i];
2304 if (ResultRegTypes[i] != ResultTruncRegTypes[i]) {
2304 if (ResultRegTypes[i] != ResultTruncRegTypes[i]) {
2305 llvm::Type *TruncTy = ResultTruncRegTypes[i];
2328 LValue Dest = ResultRegDests[i];
2332 unsigned Size = getContext().getTypeSize(ResultRegQualTys[i]);
2334 ResultRegTypes[i]->getPointerTo());
tools/clang/lib/CodeGen/CodeGenModule.cpp 1909 cast<llvm::Constant>(&*List[i]), CGM.Int8PtrTy);
2166 Annotations[0]->getType(), Annotations.size()), Annotations);
tools/clang/lib/CodeGen/CodeGenPGO.h 112 return RegionCounts[(*RegionCounterMap)[S]];
tools/clang/lib/CodeGen/CoverageMappingGen.cpp 576 : RegionStack[ParentIndex].getEndLoc();
1124 if (!RegionStack[i - 1].hasEndLoc())
1125 RegionStack[i - 1].setEndLoc(getEnd(CS->body_back()));
tools/clang/lib/Driver/Multilib.cpp 265 M = Filtered[0];
275 if (Filtered[0].priority() > Filtered[1].priority()) {
275 if (Filtered[0].priority() > Filtered[1].priority()) {
276 M = Filtered[0];
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp 1467 StringRef Name = Features[I];
1474 StringRef Name = Features[I];
tools/clang/lib/Format/ContinuationIndenter.cpp 725 State.Stack[State.Stack.size() - 2].CallContinuation == 0)
811 State.Stack[State.Stack.size() - 2].LastSpace =
865 State.Stack[State.Stack.size() - 2].NestedBlockInlined;
868 State.Stack[i].BreakBeforeParameter = true;
1174 if (State.Stack[State.Stack.size() - 2].NestedBlockInlined && Newline)
1176 State.Stack[i].NoLineBreak = true;
1177 State.Stack[State.Stack.size() - 2].NestedBlockInlined = false;
1645 State.Stack[i].BreakBeforeParameter = true;
1654 State.Stack[i].BreakBeforeParameter = true;
2197 State.Stack[i].BreakBeforeParameter = true;
tools/clang/lib/Format/Format.cpp 596 if (!Seq.empty() && Seq[0].Language == FormatStyle::LK_None) {
597 Template = Seq[0];
604 return Seq[Index];
1167 if (Styles[i].Language == FormatStyle::LK_None && i != 0)
1171 if (Styles[i].Language == Styles[j].Language) {
1171 if (Styles[i].Language == Styles[j].Language) {
1185 if (Styles[i].Language != FormatStyle::LK_None)
1186 StyleSet.Add(Styles[i]);
1187 if (Styles[i].Language == Language)
1191 if (Styles.empty() || Styles[0].Language != FormatStyle::LK_None)
1193 FormatStyle DefaultStyle = Styles[0];
1638 Tokens[End]->Next == Tokens[End + 1]) {
1638 Tokens[End]->Next == Tokens[End + 1]) {
1641 auto SR = CharSourceRange::getCharRange(Tokens[St]->Tok.getLocation(),
1642 Tokens[End]->Tok.getEndLoc());
tools/clang/lib/Format/FormatToken.cpp 259 MinSizeInColumn[Column] = std::min(MinSizeInColumn[Column], Length);
259 MinSizeInColumn[Column] = std::min(MinSizeInColumn[Column], Length);
275 if (Format.ColumnSizes[i] - MinSizeInColumn[i] > 10)
tools/clang/lib/Format/UnwrappedLineFormatter.cpp 85 if ((!Line.First->is(tok::comment) || IndentForLevel[Line.Level] == -1) &&
87 IndentForLevel[Line.Level] = LevelIndent;
tools/clang/lib/Frontend/ASTMerge.cpp 50 ASTFiles[I], CI.getPCHContainerReader(), ASTUnit::LoadEverything, Diags,
tools/clang/lib/Frontend/ASTUnit.cpp 1134 OriginalSourceFile = Clang->getFrontendOpts().Inputs[0].getFile();
1154 assert(Clang->getFrontendOpts().Inputs[0].getKind().getFormat() ==
1157 assert(Clang->getFrontendOpts().Inputs[0].getKind().getLanguage() !=
1201 if (!Act->BeginSourceFile(*Clang.get(), Clang->getFrontendOpts().Inputs[0]))
1308 PreambleInvocationIn.getFrontendOpts().Inputs[0].getFile();
1466 const FrontendInputFile &Input = Invocation->getFrontendOpts().Inputs[0];
1567 AST->OriginalSourceFile = Clang->getFrontendOpts().Inputs[0].getFile();
1587 assert(Clang->getFrontendOpts().Inputs[0].getKind().getFormat() ==
1590 assert(Clang->getFrontendOpts().Inputs[0].getKind().getLanguage() !=
1618 if (!Act->BeginSourceFile(*Clang.get(), Clang->getFrontendOpts().Inputs[0])) {
2188 OriginalSourceFile = Clang->getFrontendOpts().Inputs[0].getFile();
2213 assert(Clang->getFrontendOpts().Inputs[0].getKind().getFormat() ==
2216 assert(Clang->getFrontendOpts().Inputs[0].getKind().getLanguage() !=
2288 if (Act->BeginSourceFile(*Clang.get(), Clang->getFrontendOpts().Inputs[0])) {
tools/clang/lib/Frontend/ChainedIncludesSource.cpp 119 InputKind IK = CI.getFrontendOpts().Inputs[0].getKind();
137 FrontendInputFile InputFile(includes[i], IK);
180 std::string pchName = includes[i-1];
tools/clang/lib/Frontend/CompilerInstance.cpp 1976 checkConfigMacro(getPreprocessor(), TopModule->ConfigMacros[I],
tools/clang/lib/Frontend/CompilerInvocation.cpp 2011 StringRef(Inputs[i]).rsplit('.').second);
2025 Opts.Inputs.emplace_back(std::move(Inputs[i]), IK);
tools/clang/lib/Frontend/FrontendAction.cpp 195 if (it->getName() == CI.getFrontendOpts().AddPluginActions[i]) {
tools/clang/lib/Frontend/FrontendActions.cpp 252 auto Kind = Inputs[0].getKind();
tools/clang/lib/Frontend/InitHeaderSearch.cpp 478 const DirectoryLookup &CurEntry = SearchList[i];
508 const DirectoryLookup &SearchEntry = SearchList[FirstDir];
530 if (SearchList[FirstDir].getDirCharacteristic() == SrcMgr::C_User)
604 StringRef Name = SearchList[i].getName();
606 if (SearchList[i].isNormalDir())
608 else if (SearchList[i].isFramework())
611 assert(SearchList[i].isHeaderMap() && "Unknown DirectoryLookup");
tools/clang/lib/Frontend/MultiplexConsumer.cpp 31 Listeners[i]->ReaderInitialized(Reader);
37 Listeners[i]->IdentifierRead(ID, II);
49 Listeners[i]->TypeRead(Idx, T);
55 Listeners[i]->DeclRead(ID, D);
61 Listeners[i]->SelectorRead(ID, Sel);
67 Listeners[i]->MacroDefinitionRead(ID, MD);
124 Listeners[i]->CompletedTagDefinition(D);
130 Listeners[i]->AddedVisibleDecl(DC, D);
136 Listeners[i]->AddedCXXImplicitMember(RD, D);
141 Listeners[i]->AddedCXXTemplateSpecialization(TD, D);
146 Listeners[i]->AddedCXXTemplateSpecialization(TD, D);
151 Listeners[i]->AddedCXXTemplateSpecialization(TD, D);
161 Listeners[i]->DeducedReturnType(FD, ReturnType);
171 Listeners[i]->CompletedImplicitDefinition(D);
175 Listeners[i]->InstantiationRequested(D);
180 Listeners[i]->VariableDefinitionInstantiated(D);
190 Listeners[i]->DefaultArgumentInstantiated(D);
195 Listeners[i]->DefaultMemberInitializerInstantiated(D);
201 Listeners[i]->AddedObjCCategoryToInterface(CatD, IFD);
205 Listeners[i]->DeclarationMarkedUsed(D);
210 Listeners[i]->DeclarationMarkedOpenMPThreadPrivate(D);
tools/clang/lib/Frontend/PrecompiledPreamble.cpp 303 Clang->getFrontendOpts().Inputs[0].getKind().getFormat() !=
305 Clang->getFrontendOpts().Inputs[0].getKind().getLanguage() ==
328 StringRef MainFilePath = FrontendOpts.Inputs[0].getFile();
345 if (!Act->BeginSourceFile(*Clang.get(), Clang->getFrontendOpts().Inputs[0]))
712 auto MainFilePath = CI.getFrontendOpts().Inputs[0].getFile();
tools/clang/lib/Frontend/Rewrite/RewriteMacros.cpp 129 if (RawTokens[CurRawTok].is(tok::identifier)) {
130 const IdentifierInfo *II = RawTokens[CurRawTok].getIdentifierInfo();
135 RawTokens[CurRawTok+1].is(tok::identifier) &&
136 (RawTokens[CurRawTok+1].getIdentifierInfo()->getName() ==
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp 6870 AllMethods.push_back(InstanceMethods[i]);
6872 AllMethods.push_back(ClassMethods[i]);
6874 AllMethods.push_back(OptInstanceMethods[i]);
6876 AllMethods.push_back(OptClassMethods[i]);
tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp 207 const std::string &Path = Clang->getFrontendOpts().Plugins[i];
235 Args[i + 1] = Clang->getFrontendOpts().LLVMArgs[i].c_str();
tools/clang/lib/Index/IndexBody.cpp 181 return IndexCtx.handleReference(Symbols[0], Loc, Parent, ParentDC, Roles,
tools/clang/lib/Index/IndexTypeSourceInfo.cpp 197 return IndexCtx.handleReference(Symbols[0], TL.getNameLoc(), Parent,
tools/clang/lib/Lex/HeaderSearch.cpp 94 NumOnceOnlyFiles += FileInfo[i].isImport;
95 if (MaxNumIncludes < FileInfo[i].NumIncludes)
96 MaxNumIncludes = FileInfo[i].NumIncludes;
97 NumSingleIncludedFiles += FileInfo[i].NumIncludes == 1;
120 if (HeaderMaps[i].first == FE)
121 return HeaderMaps[i].second.get();
238 if (SearchDirs[Idx].isFramework()) {
243 FrameworkDirName += SearchDirs[Idx].getFrameworkDir()->getName();
247 = SearchDirs[Idx].getDirCharacteristic() != SrcMgr::C_User;
257 if (!SearchDirs[Idx].isNormalDir())
260 bool IsSystem = SearchDirs[Idx].isSystemHeaderDirectory();
262 if (loadModuleMapFile(SearchDirs[Idx].getDir(), IsSystem,
274 NestedModuleMapDirName = SearchDirs[Idx].getDir()->getName();
286 if (SearchDirs[Idx].haveSearchedAllModuleMaps())
292 loadSubdirectoryModuleMaps(SearchDirs[Idx]);
867 i = FromDir-&SearchDirs[0];
900 Optional<FileEntryRef> File = SearchDirs[i].LookupFile(
922 CurDir = &SearchDirs[i];
937 if (Filename.startswith(SystemHeaderPrefixes[j-1].first)) {
938 HFI.DirInfo = SystemHeaderPrefixes[j-1].second ? SrcMgr::C_System
1166 HeaderFileInfo *HFI = &FileInfo[FE->getUID()];
1172 HFI = &FileInfo[FE->getUID()];
1197 HFI = &FileInfo[FE->getUID()];
1204 HFI = &FileInfo[FE->getUID()];
1211 HFI = &FileInfo[FE->getUID()];
1635 bool IsSystem = SearchDirs[Idx].isSystemHeaderDirectory();
1636 if (SearchDirs[Idx].isFramework()) {
1639 llvm::sys::path::native(SearchDirs[Idx].getFrameworkDir()->getName(),
1663 if (SearchDirs[Idx].isHeaderMap())
1667 loadModuleMapFile(SearchDirs[Idx].getDir(), IsSystem,
1672 loadSubdirectoryModuleMaps(SearchDirs[Idx]);
1691 if (!SearchDirs[Idx].isNormalDir()) {
1696 loadModuleMapFile(SearchDirs[Idx].getDir(),
1697 SearchDirs[Idx].isSystemHeaderDirectory(),
1698 SearchDirs[Idx].isFramework());
1786 if (!SearchDirs[I].isNormalDir())
1789 StringRef Dir = SearchDirs[I].getDir()->getName();
tools/clang/lib/Lex/MacroArgs.cpp 82 PreExpArgTokens[i].clear();
169 std::vector<Token> &Result = PreExpArgTokens[Arg];
tools/clang/lib/Lex/PreprocessingRecord.cpp 109 if (PreprocessedEntity *PPE = LoadedPreprocessedEntities[LoadedIndex])
130 return isPreprocessedEntityIfInFileID(PreprocessedEntities[Pos],
338 if (SkippedRanges[Index].isInvalid())
339 SkippedRanges[Index] = ExternalSource->ReadSkippedRange(Index);
363 return PreprocessedEntities[Index];
372 PreprocessedEntity *&Entity = LoadedPreprocessedEntities[Index];
tools/clang/lib/Sema/SemaCodeComplete.cpp 1098 Results[Index].Declaration = R.Declaration;
1325 Result &Incumbent = Results[Entry.second];
tools/clang/lib/Sema/SemaExpr.cpp11651 RecordTypeList[NextToCheckIndex]->getDecl()->fields()) {
tools/clang/lib/Sema/SemaLookup.cpp 795 Context, Parent, Loc, Loc, II, FunctionList[Index],
797 FunctionList[Index]->isFunctionProtoType());
803 dyn_cast<FunctionProtoType>(FunctionList[Index])) {
tools/clang/lib/Sema/SemaStmt.cpp 1032 llvm::APSInt &LoVal = CaseRanges[i].first;
1033 CaseStmt *CR = CaseRanges[i].second;
1070 llvm::APSInt &CRLo = CaseRanges[i].first;
1071 llvm::APSInt &CRHi = HiVals[i];
1072 CaseStmt *CR = CaseRanges[i].second;
1097 if (i && CRLo <= HiVals[i-1]) {
1098 OverlapVal = HiVals[i-1]; // Found overlap with range.
1099 OverlapStmt = CaseRanges[i-1].second;
tools/clang/lib/Serialization/ASTReader.cpp 2278 if (F.InputFilesLoaded[ID-1].getFile())
2279 return F.InputFilesLoaded[ID-1];
2281 if (F.InputFilesLoaded[ID-1].isNotFound())
2330 F.InputFilesLoaded[ID-1] = InputFile::getNotFound();
2348 F.InputFilesLoaded[ID - 1] = InputFile::getNotFound();
2434 F.InputFilesLoaded[ID-1] = IF;
7499 if (TypesLoaded[Index].isNull()) {
7500 TypesLoaded[Index] = readTypeRecord(Index);
7501 if (TypesLoaded[Index].isNull())
7504 TypesLoaded[Index]->setFromAST();
7507 TypesLoaded[Index]);
7510 return TypesLoaded[Index].withFastQualifiers(FastQuals);
7773 if (Decl *D = DeclsLoaded[Index])
7859 return DeclsLoaded[Index];
7874 if (!DeclsLoaded[Index]) {
7877 DeserializationListener->DeclRead(ID, DeclsLoaded[Index]);
7880 return DeclsLoaded[Index];
8819 IdentifiersLoaded[ID - 1] = II;
8883 if (!IdentifiersLoaded[ID]) {
8899 IdentifiersLoaded[ID] = &II;
8905 return IdentifiersLoaded[ID];
8937 if (!MacrosLoaded[ID]) {
8943 MacrosLoaded[ID] = ReadMacroRecord(*M, M->MacroOffsets[Index]);
8947 MacrosLoaded[ID]);
8950 return MacrosLoaded[ID];
tools/clang/lib/Serialization/ASTReaderDecl.cpp 2743 assert(!DeclsLoaded[Index] && "Decl loaded twice?");
2744 DeclsLoaded[Index] = D;
tools/clang/lib/Serialization/ASTWriter.cpp 2617 const IdentifierInfo *Name = MacroInfosToEmit[I].Name;
2618 MacroInfo *MI = MacroInfosToEmit[I].MI;
2619 MacroID ID = MacroInfosToEmit[I].ID;
2634 MacroOffsets[Index] = Stream.GetCurrentBitNo();
3214 TypeOffsets[Index] = Offset;
3846 assert(IdentifierOffsets[I] && "Missing identifier offset?");
4652 IdentifierOffsets[ID - FirstIdentID] = Offset;
4664 SelectorOffsets[ID - FirstSelectorID] = Offset;
tools/clang/lib/Serialization/ASTWriterDecl.cpp 2378 DeclOffsets[Index].setLocation(Loc);
2379 DeclOffsets[Index].BitOffset = Offset;
tools/clang/lib/StaticAnalyzer/Checkers/MallocSizeofChecker.cpp 200 QualType SizeofType = SFinder.Sizeofs[0]->getTypeOfArgument();
232 Ranges.push_back(SFinder.Sizeofs[0]->getSourceRange());
tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp 322 R.InsertTextAfter(SMgr.getLocForEndOfFile(FileIDs[0]), os.str());
326 const RewriteBuffer *Buf = R.getRewriteBufferFor(FileIDs[0]);
334 FinalizeHTML(D, R, SMgr, path, FileIDs[0], Entry, declName);
tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp 144 Node &getMutableNode(NodeId Id) { return Nodes[Id]; }
299 for (NodeId Child : Tree.getNode(Ids[Expanded++]).Children)
311 PostorderIds[Id] = PostorderId;
534 LeftMostDescendants[I] = SNodeId(Tree.PostorderIds[N.LeftMostDescendant] -
548 KeyRoots[K] = I;
tools/clang/lib/Tooling/CompilationDatabase.cpp 390 Result[0].CommandLine.push_back(FilePath);
391 Result[0].Filename = FilePath;
tools/clang/lib/Tooling/Core/Replacement.cpp 499 Result[Result.size() - 1] =
tools/clang/lib/Tooling/InterpolatingCompilationDatabase.cpp 327 StringRef Path = Strings.save(StringRef(OriginalPaths[I]).lower());
520 return {TransferableCommand(ProxyCommands[0]).transferTo(Filename)};
tools/clang/lib/Tooling/JSONCompilationDatabase.cpp 286 (Args[1][0] != '-') &&
287 !llvm::sys::path::has_extension(stripExecutableExtension(Args[1]));
tools/clang/lib/Tooling/Syntax/Tokens.cpp 393 auto L = Result.ExpandedTokens[I].location();
405 assert(File.SpelledTokens[NextSpelled[FID]].location() == L &&
426 auto NextL = Result.ExpandedTokens[I + 1].location();
441 SM.getFileID(SM.getExpansionLoc(Result.ExpandedTokens[I].location()));
524 auto L = File.SpelledTokens[NextSpelled].location();
tools/clang/lib/Tooling/Tooling.cpp 319 const char *const BinaryName = Argv[0];
643 return std::move(ASTs[0]);
tools/clang/lib/Tooling/Transformer/RewriteRule.cpp 143 return Ms[0];
tools/clang/tools/arcmt-test/arcmt-test.cpp 135 arcmt::checkForManualIssues(CI, CI.getFrontendOpts().Inputs[0],
187 bool err = migration.applyTransform(transforms[i], transformPrinter.get());
tools/clang/tools/clang-diff/ClangDiff.cpp 111 return std::move(ASTs[0]);
tools/clang/tools/clang-scan-deps/ClangScanDeps.cpp 236 const auto &Compilation = Inputs[Index++];
241 auto MaybeFile = WorkerTools[I]->getDependencyFile(Input, CWD);
tools/clang/tools/driver/cc1as_main.cpp 425 FS = Opts.Features[0];
427 FS += "," + Opts.Features[i];
602 Args[i + 1] = Asm.LLVMArgs[i].c_str();
tools/clang/tools/driver/cc1gen_reproducer_main.cpp 181 DriverArgs[0] = Path.c_str();
tools/clang/tools/extra/clang-doc/Representation.cpp 39 std::unique_ptr<Info> Merged = std::make_unique<T>(Values[0]->USR);
51 if (ChildToMerge.USR == Children[I].USR)
65 Children[mergeIdx].merge(std::move(ChildToMerge));
77 Children[mergeIdx].merge(std::move(ChildToMerge));
89 Children[mergeIdx].merge(std::move(ChildToMerge));
102 switch (Values[0]->IT) {
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/tool/FindAllSymbolsMain.cpp 141 clang::find_all_symbols::Merge(MergeDir, sources[0]);
tools/clang/tools/extra/clang-move/Move.cpp 758 const auto &SM = RemovedDecls[0]->getASTContext().getSourceManager();
925 auto &SM = RemovedDecls[0]->getASTContext().getSourceManager();
tools/clang/tools/extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp 656 for (const auto &FileAndReplace : *ErrorFixes[I].second) {
665 Events.emplace_back(Begin, End, Event::ET_Begin, I, Sizes[I]);
666 Events.emplace_back(Begin, End, Event::ET_End, I, Sizes[I]);
692 ErrorFixes[I].second->clear();
693 ErrorFixes[I].first->Notes.emplace_back(
tools/clang/tools/extra/clang-tidy/llvm/IncludeOrderCheck.cpp 110 if (SM.getExpansionLineNumber(FileDirectives[I].Loc) !=
111 SM.getExpansionLineNumber(FileDirectives[I - 1].Loc) + 1)
122 std::sort(IncludeIndices.begin() + Blocks[BI],
123 IncludeIndices.begin() + Blocks[BI + 1],
125 IncludeDirective &LHS = FileDirectives[LHSI];
126 IncludeDirective &RHS = FileDirectives[RHSI];
142 for (I = Blocks[BI], E = Blocks[BI + 1]; I != E; ++I)
142 for (I = Blocks[BI], E = Blocks[BI + 1]; I != E; ++I)
143 if (IncludeIndices[I] != I)
150 auto D = Check.diag(FileDirectives[I].Loc,
155 if (IncludeIndices[I] == I)
157 const IncludeDirective &CopyFrom = FileDirectives[IncludeIndices[I]];
157 const IncludeDirective &CopyFrom = FileDirectives[IncludeIndices[I]];
165 SourceLocation ToLoc = FileDirectives[I].Range.getBegin();
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp 221 if (NamingStyles[i]) {
222 if (NamingStyles[i]->Case) {
224 toString(*NamingStyles[i]->Case));
227 NamingStyles[i]->Prefix);
229 NamingStyles[i]->Suffix);
850 if (!NamingStyles[SK])
853 const NamingStyle &Style = *NamingStyles[SK];
886 if (!NamingStyles[SK_MacroDefinition])
890 const NamingStyle &Style = *NamingStyles[SK_MacroDefinition];
tools/clang/tools/extra/clang-tidy/readability/IsolateDeclarationCheck.cpp 238 Decls[I - 1] = Twine(Snippets[0])
tools/clang/tools/extra/clangd/CodeComplete.cpp 1101 if (!Action.BeginSourceFile(*Clang, Clang->getFrontendOpts().Inputs[0])) {
1544 Bundles[Ret.first->second].push_back(std::move(C));
tools/clang/tools/extra/clangd/Compiler.cpp 86 CI->getFrontendOpts().Inputs[0].getFile(), Buffer.get());
tools/clang/tools/extra/clangd/Headers.cpp 122 if (!IncludedRealName.empty() && RealPathNames[Child].empty())
123 RealPathNames[Child] = IncludedRealName;
tools/clang/tools/extra/clangd/ParsedAST.cpp 241 const FrontendInputFile &MainInput = Clang->getFrontendOpts().Inputs[0];
tools/clang/tools/extra/clangd/QueryDriverDatabase.cpp 222 llvm::StringRef Arg = Cmd->CommandLine[I];
224 Lang = Cmd->CommandLine[I + 1];
tools/clang/tools/extra/clangd/SourceCode.cpp 962 switch (Roles[I]) {
tools/clang/tools/extra/clangd/XRefs.cpp 316 auto &R = Result[ResultIndex.lookup(Sym.ID)];
1165 const Decl *D = Decls[0];
tools/clang/tools/extra/clangd/index/FileIndex.cpp 197 llvm::ArrayRef<Ref>(&RefsStorage[RefsStorage.size() - SymRefs.size()],
tools/clang/tools/extra/clangd/index/Serialization.cpp 168 Index.try_emplace({Sorted[I].data(), Sorted[I].size()}, I);
168 Index.try_emplace({Sorted[I].data(), Sorted[I].size()}, I);
tools/clang/tools/extra/clangd/index/dex/Dex.cpp 72 const Symbol *Sym = Symbols[I];
74 ScoredSymbols[I] = {quality(*Sym), Sym};
85 SymbolQuality[I] = ScoredSymbols[I].first;
85 SymbolQuality[I] = ScoredSymbols[I].first;
86 Symbols[I] = ScoredSymbols[I].second;
86 Symbols[I] = ScoredSymbols[I].second;
92 const auto *Sym = Symbols[SymbolRank];
tools/clang/tools/extra/clangd/index/dex/Trigram.cpp 42 Next[I] = {{NextTail, NextHead}};
43 NextTail = Roles[I] == Tail ? I : 0;
44 if (Roles[I] == Head) {
59 if (Roles[I] != Head && Roles[I] != Tail)
59 if (Roles[I] != Head && Roles[I] != Tail)
61 for (const unsigned J : Next[I]) {
64 for (const unsigned K : Next[J]) {
78 if (Roles[I] == Head) {
100 if (Roles[I] != Head && Roles[I] != Tail)
100 if (Roles[I] != Head && Roles[I] != Tail)
tools/clang/tools/extra/clangd/unittests/ClangdTests.cpp 607 Stats[FileIndex].HitsWithErrors++;
609 Stats[FileIndex].HitsWithoutErrors++;
610 Stats[FileIndex].HadErrorsInLastDiags = HadError;
653 auto &Stats = ReqStats[FileIndex];
664 auto &Stats = ReqStats[FileIndex];
671 Server.addDocument(FilePaths[FileIndex],
692 if (ReqStats[FileIndex].FileIsRemoved)
695 Server.removeDocument(FilePaths[FileIndex]);
702 if (ReqStats[FileIndex].FileIsRemoved)
714 cantFail(runCodeComplete(Server, FilePaths[FileIndex], Pos,
721 if (ReqStats[FileIndex].FileIsRemoved)
728 ASSERT_TRUE(!!runLocateSymbolAt(Server, FilePaths[FileIndex], Pos));
745 AsyncRequests[RequestIndex]();
749 BlockingRequests[RequestIndex]();
758 if (!ReqStats[I].FileIsRemoved) {
759 ASSERT_EQ(Stats[I].HadErrorsInLastDiags,
760 ReqStats[I].LastContentsHadErrors);
763 ASSERT_LE(Stats[I].HitsWithErrors, ReqStats[I].RequestsWithErrors);
763 ASSERT_LE(Stats[I].HitsWithErrors, ReqStats[I].RequestsWithErrors);
764 ASSERT_LE(Stats[I].HitsWithoutErrors, ReqStats[I].RequestsWithoutErrors);
764 ASSERT_LE(Stats[I].HitsWithoutErrors, ReqStats[I].RequestsWithoutErrors);
tools/clang/tools/extra/clangd/unittests/CodeCompleteTests.cpp 1038 if (P[I].Text != arg.parameters[I].labelString ||
1039 P[I].Offsets != arg.parameters[I].labelOffsets)
1243 EXPECT_EQ(Requests[0].Scopes[0], "nx::ns::");
1243 EXPECT_EQ(Requests[0].Scopes[0], "nx::ns::");
2120 auto WantQualifier = ToStringRef(F.ranges()[0]),
2121 WantName = ToStringRef(F.ranges()[1]);
2159 EXPECT_THAT(Reqs1[0].Scopes, UnorderedElementsAre("ns1::"));
2165 EXPECT_EQ(Reqs2[0], Reqs1[0]);
2165 EXPECT_EQ(Reqs2[0], Reqs1[0]);
2183 EXPECT_THAT(Results[0], AllOf(Named("Func"), InsertInclude("\"bar.h\"")));
2184 EXPECT_EQ(Results[0].Includes.size(), 2u);
tools/clang/tools/extra/clangd/unittests/DexTests.cpp 44 IDs[I] = IDAndScore[I].first;
44 IDs[I] = IDAndScore[I].first;
tools/clang/tools/extra/clangd/unittests/DiagnosticsTests.cpp 483 EXPECT_EQ(LSPDiags[0].first.code, "enum_class_reference");
484 EXPECT_EQ(LSPDiags[0].first.source, "clang");
485 EXPECT_EQ(LSPDiags[1].first.code, "");
486 EXPECT_EQ(LSPDiags[1].first.source, "");
tools/clang/tools/extra/clangd/unittests/FindTargetTests.cpp 548 auto &R = Refs[I];
572 DumpedReferences += llvm::formatv("{0}: {1}\n", I, Refs[I]);
tools/clang/tools/extra/clangd/unittests/FuzzyMatchTests.cpp 294 Printed.push_back("?-+ "[static_cast<unsigned>(Roles[I])]);
tools/clang/tools/extra/clangd/unittests/HeadersTests.cpp 67 Action.BeginSourceFile(*Clang, Clang->getFrontendOpts().Inputs[0]));
83 Action.BeginSourceFile(*Clang, Clang->getFrontendOpts().Inputs[0]));
109 Action.BeginSourceFile(*Clang, Clang->getFrontendOpts().Inputs[0]));
tools/clang/tools/extra/clangd/unittests/Matchers.h 61 Matches[I++] = J;
69 *L << " ==> " << ::testing::PrintToString(V[Matches[K]]);
tools/clang/tools/extra/clangd/unittests/SelectionTests.cpp 31 cantFail(positionToOffset(Test.code(), Test.points()[0])),
32 cantFail(positionToOffset(Test.code(), Test.points()[1])));
62 const SelectionTree::Node *N = Result[I];
tools/clang/tools/extra/clangd/unittests/SemanticHighlightingTests.cpp 33 Tokens[I].R = Ranges[I];
34 Tokens[I].Kind = Kind;
tools/clang/tools/extra/clangd/unittests/SourceCodeTests.cpp 564 EXPECT_EQ(HalfOpenRange, Test.ranges(Name)[0]);
tools/clang/tools/extra/clangd/unittests/TUSchedulerTests.cpp 403 auto File = Files[FileI];
583 Preambles[I] = cantFail(std::move(IP)).Preamble;
589 ASSERT_NE(Preambles[0], nullptr);
590 ASSERT_THAT(Preambles, Each(Preambles[0]));
tools/clang/tools/extra/clangd/unittests/TypeHierarchyTests.cpp 414 AST, Source.points()[0], 0, TypeHierarchyDirection::Parents);
638 resolveTypeHierarchy((*Result->children)[0], /*ResolveLevels=*/1,
642 (*Result->children)[0],
tools/clang/tools/extra/clangd/unittests/XRefsTests.cpp 479 EXPECT_EQ(Results[0].PreferredDeclaration.range, *WantDecl) << Test;
481 if (Results[0].Definition)
482 GotDef = Results[0].Definition->range;
tools/clang/tools/extra/modularize/Modularize.cpp 987 errs() << "note: '" << H->second[I].Name << "' in "
988 << H->second[I].Loc.File->getName() << " at "
989 << H->second[I].Loc.Line << ":" << H->second[I].Loc.Column
989 << H->second[I].Loc.Line << ":" << H->second[I].Loc.Column
tools/clang/tools/extra/modularize/ModularizeUtilities.cpp 121 std::unique_ptr<clang::ModuleMap> &ModMap = ModuleMaps[ModuleMapIndex];
123 InputFilePaths[ModuleMapIndex], IncludePaths, CommandLine,
tools/clang/tools/extra/modularize/PreprocessorTracker.cpp 1204 OS << *HeaderPaths[ItemKey.File] << ":" << ItemKey.Line << ":"
tools/clang/tools/extra/unittests/clang-doc/BitcodeTest.cpp 70 CheckNamespaceInfo(&I, InfoAsNamespace(ReadResults[0].get()));
99 CheckRecordInfo(&I, InfoAsRecord(ReadResults[0].get()));
119 CheckFunctionInfo(&I, InfoAsFunction(ReadResults[0].get()));
141 CheckFunctionInfo(&I, InfoAsFunction(ReadResults[0].get()));
159 CheckEnumInfo(&I, InfoAsEnum(ReadResults[0].get()));
275 CheckFunctionInfo(&F, InfoAsFunction(ReadResults[0].get()));
tools/clang/tools/extra/unittests/clang-doc/ClangDocTest.cpp 61 CheckCommentInfo(*Expected.Children[Idx], *Actual.Children[Idx]);
61 CheckCommentInfo(*Expected.Children[Idx], *Actual.Children[Idx]);
93 CheckCommentInfo(Expected->Description[Idx], Actual->Description[Idx]);
93 CheckCommentInfo(Expected->Description[Idx], Actual->Description[Idx]);
136 CheckReference(Expected->ChildNamespaces[Idx],
137 Actual->ChildNamespaces[Idx]);
141 CheckReference(Expected->ChildRecords[Idx], Actual->ChildRecords[Idx]);
141 CheckReference(Expected->ChildRecords[Idx], Actual->ChildRecords[Idx]);
145 CheckFunctionInfo(&Expected->ChildFunctions[Idx],
146 &Actual->ChildFunctions[Idx]);
150 CheckEnumInfo(&Expected->ChildEnums[Idx], &Actual->ChildEnums[Idx]);
150 CheckEnumInfo(&Expected->ChildEnums[Idx], &Actual->ChildEnums[Idx]);
174 CheckBaseRecordInfo(&Expected->Bases[Idx], &Actual->Bases[Idx]);
174 CheckBaseRecordInfo(&Expected->Bases[Idx], &Actual->Bases[Idx]);
178 CheckReference(Expected->ChildRecords[Idx], Actual->ChildRecords[Idx]);
178 CheckReference(Expected->ChildRecords[Idx], Actual->ChildRecords[Idx]);
182 CheckFunctionInfo(&Expected->ChildFunctions[Idx],
183 &Actual->ChildFunctions[Idx]);
187 CheckEnumInfo(&Expected->ChildEnums[Idx], &Actual->ChildEnums[Idx]);
187 CheckEnumInfo(&Expected->ChildEnums[Idx], &Actual->ChildEnums[Idx]);
202 CheckIndex(Expected.Children[Idx], Actual.Children[Idx]);
202 CheckIndex(Expected.Children[Idx], Actual.Children[Idx]);
tools/clang/tools/extra/unittests/clang-doc/SerializeTest.cpp 89 NamespaceInfo *A = InfoAsNamespace(Infos[0].get());
93 NamespaceInfo *B = InfoAsNamespace(Infos[2].get());
98 NamespaceInfo *BWithFunction = InfoAsNamespace(Infos[4].get());
115 NamespaceInfo *A = InfoAsNamespace(Infos[0].get());
139 RecordInfo *E = InfoAsRecord(Infos[0].get());
147 RecordInfo *RecordWithEConstructor = InfoAsRecord(Infos[2].get());
163 RecordInfo *RecordWithMethod = InfoAsRecord(Infos[3].get());
178 RecordInfo *F = InfoAsRecord(Infos[4].get());
186 RecordInfo *RecordWithTemplateMethod = InfoAsRecord(Infos[6].get());
202 RecordInfo *TemplatedRecord = InfoAsRecord(Infos[7].get());
222 RecordInfo *G = InfoAsRecord(Infos[8].get());
238 NamespaceInfo *NamespaceWithEnum = InfoAsNamespace(Infos[0].get());
248 NamespaceInfo *NamespaceWithScopedEnum = InfoAsNamespace(Infos[1].get());
264 RecordInfo *E = InfoAsRecord(Infos[0].get());
277 RecordInfo *E = InfoAsRecord(Infos[0].get());
291 RecordInfo *E = InfoAsRecord(Infos[0].get());
299 RecordInfo *G = InfoAsRecord(Infos[2].get());
321 NamespaceInfo *BWithFunction = InfoAsNamespace(Infos[0].get());
336 NamespaceInfo *BWithFunction = InfoAsNamespace(Infos[0].get());
359 RecordInfo *F = InfoAsRecord(Infos[0].get());
367 RecordInfo *G = InfoAsRecord(Infos[3].get());
376 RecordInfo *E = InfoAsRecord(Infos[6].get());
417 RecordInfo *H = InfoAsRecord(Infos[8].get());
461 RecordInfo *I = InfoAsRecord(Infos[10].get());
469 RecordInfo *J = InfoAsRecord(Infos[12].get());
493 NamespaceInfo *BWithFunction = InfoAsNamespace(Infos[0].get());
504 NamespaceInfo *BWithExportedFunction = InfoAsNamespace(Infos[1].get());
523 NamespaceInfo *ParentA = InfoAsNamespace(Infos[1].get());
529 RecordInfo *ParentB = InfoAsRecord(Infos[3].get());
537 NamespaceInfo *ParentC = InfoAsNamespace(Infos[7].get());
550 NamespaceInfo *ParentA = InfoAsNamespace(Infos[1].get());
556 NamespaceInfo *ParentB = InfoAsNamespace(Infos[3].get());
tools/clang/tools/extra/unittests/clang-query/QueryParserTest.cpp 178 EXPECT_EQ("help ", Comps[0].TypedText);
179 EXPECT_EQ("help", Comps[0].DisplayText);
180 EXPECT_EQ("let ", Comps[1].TypedText);
181 EXPECT_EQ("let", Comps[1].DisplayText);
182 EXPECT_EQ("match ", Comps[2].TypedText);
183 EXPECT_EQ("match", Comps[2].DisplayText);
184 EXPECT_EQ("quit ", Comps[3].TypedText);
185 EXPECT_EQ("quit", Comps[3].DisplayText);
186 EXPECT_EQ("set ", Comps[4].TypedText);
187 EXPECT_EQ("set", Comps[4].DisplayText);
188 EXPECT_EQ("enable ", Comps[5].TypedText);
189 EXPECT_EQ("enable", Comps[5].DisplayText);
190 EXPECT_EQ("disable ", Comps[6].TypedText);
191 EXPECT_EQ("disable", Comps[6].DisplayText);
192 EXPECT_EQ("unlet ", Comps[7].TypedText);
193 EXPECT_EQ("unlet", Comps[7].DisplayText);
197 EXPECT_EQ("utput ", Comps[0].TypedText);
198 EXPECT_EQ("output", Comps[0].DisplayText);
202 EXPECT_EQ("output ", Comps[0].TypedText);
203 EXPECT_EQ("output", Comps[0].DisplayText);
208 EXPECT_EQ("diag ", Comps[0].TypedText);
209 EXPECT_EQ("diag", Comps[0].DisplayText);
210 EXPECT_EQ("print ", Comps[1].TypedText);
211 EXPECT_EQ("print", Comps[1].DisplayText);
212 EXPECT_EQ("detailed-ast ", Comps[2].TypedText);
213 EXPECT_EQ("detailed-ast", Comps[2].DisplayText);
214 EXPECT_EQ("dump ", Comps[3].TypedText);
215 EXPECT_EQ("dump", Comps[3].DisplayText);
219 EXPECT_EQ("Stmt(", Comps[0].TypedText);
221 Comps[0].DisplayText);
225 EXPECT_EQ("atch ", Comps[0].TypedText);
226 EXPECT_EQ("match", Comps[0].DisplayText);
230 EXPECT_EQ("et ", Comps[0].TypedText);
231 EXPECT_EQ("let", Comps[0].DisplayText);
tools/clang/tools/extra/unittests/clang-tidy/ClangTidyDiagnosticConsumerTest.cpp 28 EXPECT_EQ("type specifier", Errors[0].Message.Message);
29 EXPECT_EQ("variable", Errors[1].Message.Message);
tools/clang/tools/extra/unittests/clang-tidy/ClangTidyOptionsTest.cpp 41 EXPECT_EQ("file1.cpp", Options.LineFilter[0].Name);
42 EXPECT_EQ(3u, Options.LineFilter[0].LineRanges.size());
43 EXPECT_EQ(3u, Options.LineFilter[0].LineRanges[0].first);
43 EXPECT_EQ(3u, Options.LineFilter[0].LineRanges[0].first);
44 EXPECT_EQ(15u, Options.LineFilter[0].LineRanges[0].second);
44 EXPECT_EQ(15u, Options.LineFilter[0].LineRanges[0].second);
45 EXPECT_EQ(20u, Options.LineFilter[0].LineRanges[1].first);
45 EXPECT_EQ(20u, Options.LineFilter[0].LineRanges[1].first);
46 EXPECT_EQ(30u, Options.LineFilter[0].LineRanges[1].second);
46 EXPECT_EQ(30u, Options.LineFilter[0].LineRanges[1].second);
47 EXPECT_EQ(42u, Options.LineFilter[0].LineRanges[2].first);
47 EXPECT_EQ(42u, Options.LineFilter[0].LineRanges[2].first);
48 EXPECT_EQ(42u, Options.LineFilter[0].LineRanges[2].second);
48 EXPECT_EQ(42u, Options.LineFilter[0].LineRanges[2].second);
49 EXPECT_EQ("file2.h", Options.LineFilter[1].Name);
50 EXPECT_EQ(0u, Options.LineFilter[1].LineRanges.size());
51 EXPECT_EQ("file3.cc", Options.LineFilter[2].Name);
52 EXPECT_EQ(1u, Options.LineFilter[2].LineRanges.size());
53 EXPECT_EQ(100u, Options.LineFilter[2].LineRanges[0].first);
53 EXPECT_EQ(100u, Options.LineFilter[2].LineRanges[0].first);
54 EXPECT_EQ(1000u, Options.LineFilter[2].LineRanges[0].second);
54 EXPECT_EQ(1000u, Options.LineFilter[2].LineRanges[0].second);
tools/clang/tools/extra/unittests/clang-tidy/GoogleModuleTest.cpp 78 Errors[0].Message.Message ==
tools/clang/tools/extra/unittests/clang-tidy/ObjCModuleTest.cpp 43 Errors[0].Message.Message);
tools/clang/tools/libclang/ARCMigrate.cpp 130 static_cast<Remap *>(map)->Vec[index].first);
133 static_cast<Remap *>(map)->Vec[index].second);
tools/clang/tools/libclang/CIndex.cpp 8646 !entries->empty() ? &(*entries)[0] : nullptr };
8693 skipped->ranges[i] = cxloc::translateSourceRange(Ctx, wantedRanges[i]);
tools/clang/tools/libclang/CIndexCodeCompletion.cpp 319 return static_cast<unsigned>(allocated_results->FixItsVector[completion_index].size());
334 ArrayRef<FixItHint> FixIts = allocated_results->FixItsVector[completion_index];
tools/clang/tools/libclang/CXCompilationDatabase.cpp 99 return &ACC->CCmd[I];
142 return cxstring::createRef(Cmd->CommandLine[Arg].c_str());
tools/clang/unittests/AST/CommentLexer.cpp 101 ASSERT_EQ(tok::newline, Toks[0].getKind());
117 ASSERT_EQ(tok::newline, Toks[0].getKind());
118 ASSERT_EQ(tok::newline, Toks[1].getKind());
136 ASSERT_EQ(tok::text, Toks[0].getKind());
137 ASSERT_EQ(StringRef(" Meow"), Toks[0].getText());
139 ASSERT_EQ(tok::newline, Toks[1].getKind());
156 ASSERT_EQ(tok::text, Toks[0].getKind());
157 ASSERT_EQ(StringRef(" Meow"), Toks[0].getText());
159 ASSERT_EQ(tok::newline, Toks[1].getKind());
160 ASSERT_EQ(tok::newline, Toks[2].getKind());
179 ASSERT_EQ(tok::text, Toks[0].getKind());
180 ASSERT_EQ(StringRef(" Aaa"), Toks[0].getText());
181 ASSERT_EQ(tok::text, Toks[1].getKind());
182 ASSERT_EQ(StringRef("\\"), Toks[1].getText());
183 ASSERT_EQ(tok::newline, Toks[2].getKind());
185 ASSERT_EQ(tok::text, Toks[3].getKind());
186 ASSERT_EQ(StringRef(" Bbb"), Toks[3].getText());
187 ASSERT_EQ(tok::text, Toks[4].getKind());
188 ASSERT_EQ(StringRef("\\"), Toks[4].getText());
189 ASSERT_EQ(tok::text, Toks[5].getKind());
190 ASSERT_EQ(StringRef(" "), Toks[5].getText());
191 ASSERT_EQ(tok::newline, Toks[6].getKind());
193 ASSERT_EQ(tok::text, Toks[7].getKind());
194 ASSERT_EQ(StringRef(" Ccc?" "?/"), Toks[7].getText());
195 ASSERT_EQ(tok::newline, Toks[8].getKind());
197 ASSERT_EQ(tok::newline, Toks[9].getKind());
217 ASSERT_EQ(tok::text, Toks[0].getKind());
218 ASSERT_EQ(StringRef(" Aaa"), Toks[0].getText());
219 ASSERT_EQ(tok::newline, Toks[1].getKind());
221 ASSERT_EQ(tok::text, Toks[2].getKind());
222 ASSERT_EQ(StringRef(" Bbb"), Toks[2].getText());
223 ASSERT_EQ(tok::newline, Toks[3].getKind());
225 ASSERT_EQ(tok::text, Toks[4].getKind());
226 ASSERT_EQ(StringRef(" Ccc"), Toks[4].getText());
227 ASSERT_EQ(tok::newline, Toks[5].getKind());
229 ASSERT_EQ(tok::text, Toks[6].getKind());
230 ASSERT_EQ(StringRef(" ! Ddd"), Toks[6].getText());
231 ASSERT_EQ(tok::newline, Toks[7].getKind());
233 ASSERT_EQ(tok::text, Toks[8].getKind());
234 ASSERT_EQ(StringRef(" Eee"), Toks[8].getText());
235 ASSERT_EQ(tok::newline, Toks[9].getKind());
237 ASSERT_EQ(tok::text, Toks[10].getKind());
238 ASSERT_EQ(StringRef("* Fff"), Toks[10].getText());
239 ASSERT_EQ(tok::newline, Toks[11].getKind());
241 ASSERT_EQ(tok::text, Toks[12].getKind());
242 ASSERT_EQ(StringRef(" "), Toks[12].getText());
244 ASSERT_EQ(tok::newline, Toks[13].getKind());
245 ASSERT_EQ(tok::newline, Toks[14].getKind());
258 ASSERT_EQ(tok::text, Toks[0].getKind());
259 ASSERT_EQ(StringRef("@"), Toks[0].getText());
261 ASSERT_EQ(tok::newline, Toks[1].getKind());
275 ASSERT_EQ(tok::text, Toks[0].getKind());
276 ASSERT_EQ(StringRef("@"), Toks[0].getText());
278 ASSERT_EQ(tok::newline, Toks[1].getKind());
279 ASSERT_EQ(tok::newline, Toks[2].getKind());
293 ASSERT_EQ(tok::text, Toks[0].getKind());
294 ASSERT_EQ(StringRef("\\"), Toks[0].getText());
296 ASSERT_EQ(tok::newline, Toks[1].getKind());
297 ASSERT_EQ(tok::newline, Toks[2].getKind());
322 if(Toks[j].is(tok::text)) {
323 ASSERT_EQ(StringRef(Text[j]), Toks[j].getText())
340 ASSERT_EQ(tok::text, Toks[0].getKind());
341 ASSERT_EQ(StringRef(" "), Toks[0].getText());
343 ASSERT_EQ(tok::text, Toks[1].getKind());
344 ASSERT_EQ(StringRef("\\"), Toks[1].getText());
346 ASSERT_EQ(tok::text, Toks[2].getKind());
347 ASSERT_EQ(StringRef("^ "), Toks[2].getText());
349 ASSERT_EQ(tok::text, Toks[3].getKind());
350 ASSERT_EQ(StringRef("\\"), Toks[3].getText());
352 ASSERT_EQ(tok::text, Toks[4].getKind());
353 ASSERT_EQ(StringRef("0"), Toks[4].getText());
355 ASSERT_EQ(tok::newline, Toks[5].getKind());
366 ASSERT_EQ(tok::text, Toks[0].getKind());
367 ASSERT_EQ(StringRef(" "), Toks[0].getText());
369 ASSERT_EQ(tok::backslash_command, Toks[1].getKind());
370 ASSERT_EQ(StringRef("brief"), getCommandName(Toks[1]));
372 ASSERT_EQ(tok::text, Toks[2].getKind());
373 ASSERT_EQ(StringRef(" Aaa."), Toks[2].getText());
375 ASSERT_EQ(tok::newline, Toks[3].getKind());
386 ASSERT_EQ(tok::text, Toks[0].getKind());
387 ASSERT_EQ(StringRef(" "), Toks[0].getText());
389 ASSERT_EQ(tok::backslash_command, Toks[1].getKind());
390 ASSERT_EQ(StringRef("em"), getCommandName(Toks[1]));
392 ASSERT_EQ(tok::backslash_command, Toks[2].getKind());
393 ASSERT_EQ(StringRef("em"), getCommandName(Toks[2]));
395 ASSERT_EQ(tok::text, Toks[3].getKind());
396 ASSERT_EQ(StringRef(" "), Toks[3].getText());
398 ASSERT_EQ(tok::backslash_command, Toks[4].getKind());
399 ASSERT_EQ(StringRef("em"), getCommandName(Toks[4]));
401 ASSERT_EQ(tok::text, Toks[5].getKind());
402 ASSERT_EQ(StringRef("\t"), Toks[5].getText());
404 ASSERT_EQ(tok::backslash_command, Toks[6].getKind());
405 ASSERT_EQ(StringRef("em"), getCommandName(Toks[6]));
407 ASSERT_EQ(tok::newline, Toks[7].getKind());
418 ASSERT_EQ(tok::text, Toks[0].getKind());
419 ASSERT_EQ(StringRef(" "), Toks[0].getText());
421 ASSERT_EQ(tok::at_command, Toks[1].getKind());
422 ASSERT_EQ(StringRef("em"), getCommandName(Toks[1]));
424 ASSERT_EQ(tok::at_command, Toks[2].getKind());
425 ASSERT_EQ(StringRef("em"), getCommandName(Toks[2]));
427 ASSERT_EQ(tok::text, Toks[3].getKind());
428 ASSERT_EQ(StringRef(" "), Toks[3].getText());
430 ASSERT_EQ(tok::at_command, Toks[4].getKind());
431 ASSERT_EQ(StringRef("em"), getCommandName(Toks[4]));
433 ASSERT_EQ(tok::text, Toks[5].getKind());
434 ASSERT_EQ(StringRef("\t"), Toks[5].getText());
436 ASSERT_EQ(tok::at_command, Toks[6].getKind());
437 ASSERT_EQ(StringRef("em"), getCommandName(Toks[6]));
439 ASSERT_EQ(tok::newline, Toks[7].getKind());
450 ASSERT_EQ(tok::text, Toks[0].getKind());
451 ASSERT_EQ(StringRef(" "), Toks[0].getText());
453 ASSERT_EQ(tok::unknown_command, Toks[1].getKind());
454 ASSERT_EQ(StringRef("aaa"), Toks[1].getUnknownCommandName());
456 ASSERT_EQ(tok::unknown_command, Toks[2].getKind());
457 ASSERT_EQ(StringRef("bbb"), Toks[2].getUnknownCommandName());
459 ASSERT_EQ(tok::text, Toks[3].getKind());
460 ASSERT_EQ(StringRef(" "), Toks[3].getText());
462 ASSERT_EQ(tok::unknown_command, Toks[4].getKind());
463 ASSERT_EQ(StringRef("ccc"), Toks[4].getUnknownCommandName());
465 ASSERT_EQ(tok::text, Toks[5].getKind());
466 ASSERT_EQ(StringRef("\t"), Toks[5].getText());
468 ASSERT_EQ(tok::unknown_command, Toks[6].getKind());
469 ASSERT_EQ(StringRef("ddd"), Toks[6].getUnknownCommandName());
471 ASSERT_EQ(tok::newline, Toks[7].getKind());
482 ASSERT_EQ(tok::text, Toks[0].getKind());
483 ASSERT_EQ(StringRef(" "), Toks[0].getText());
485 ASSERT_EQ(tok::backslash_command, Toks[1].getKind());
486 ASSERT_EQ(StringRef("c"), getCommandName(Toks[1]));
488 ASSERT_EQ(tok::newline, Toks[2].getKind());
504 ASSERT_EQ(tok::text, Toks[0].getKind());
505 ASSERT_EQ(StringRef(" "), Toks[0].getText());
507 ASSERT_EQ(tok::backslash_command, Toks[1].getKind());
508 ASSERT_EQ(StringRef("NewBlockCommand"), getCommandName(Toks[1]));
510 ASSERT_EQ(tok::text, Toks[2].getKind());
511 ASSERT_EQ(StringRef(" Aaa."), Toks[2].getText());
513 ASSERT_EQ(tok::newline, Toks[3].getKind());
515 ASSERT_EQ(tok::text, Toks[4].getKind());
516 ASSERT_EQ(StringRef(" "), Toks[4].getText());
518 ASSERT_EQ(tok::at_command, Toks[5].getKind());
519 ASSERT_EQ(StringRef("NewBlockCommand"), getCommandName(Toks[5]));
521 ASSERT_EQ(tok::text, Toks[6].getKind());
522 ASSERT_EQ(StringRef(" Aaa."), Toks[6].getText());
524 ASSERT_EQ(tok::newline, Toks[7].getKind());
543 ASSERT_EQ(tok::text, Toks[0].getKind());
544 ASSERT_EQ(StringRef(" "), Toks[0].getText());
546 ASSERT_EQ(tok::backslash_command, Toks[1].getKind());
547 ASSERT_EQ(StringRef("Foo"), getCommandName(Toks[1]));
549 ASSERT_EQ(tok::newline, Toks[2].getKind());
551 ASSERT_EQ(tok::text, Toks[3].getKind());
552 ASSERT_EQ(StringRef(" "), Toks[3].getText());
554 ASSERT_EQ(tok::backslash_command, Toks[4].getKind());
555 ASSERT_EQ(StringRef("Bar"), getCommandName(Toks[4]));
557 ASSERT_EQ(tok::text, Toks[5].getKind());
558 ASSERT_EQ(StringRef(" Baz"), Toks[5].getText());
560 ASSERT_EQ(tok::newline, Toks[6].getKind());
562 ASSERT_EQ(tok::text, Toks[7].getKind());
563 ASSERT_EQ(StringRef(" "), Toks[7].getText());
565 ASSERT_EQ(tok::backslash_command, Toks[8].getKind());
566 ASSERT_EQ(StringRef("Blech"), getCommandName(Toks[8]));
568 ASSERT_EQ(tok::text, Toks[9].getKind());
569 ASSERT_EQ(StringRef(" quux=corge"), Toks[9].getText());
571 ASSERT_EQ(tok::newline, Toks[10].getKind());
588 ASSERT_EQ(tok::text, Toks[0].getKind());
589 ASSERT_EQ(StringRef(" "), Toks[0].getText());
591 ASSERT_EQ(tok::verbatim_block_begin, Toks[1].getKind());
592 ASSERT_EQ(StringRef("verbatim"), getVerbatimBlockName(Toks[1]));
594 ASSERT_EQ(tok::verbatim_block_end, Toks[2].getKind());
595 ASSERT_EQ(StringRef("endverbatim"), getVerbatimBlockName(Toks[2]));
597 ASSERT_EQ(tok::newline, Toks[3].getKind());
598 ASSERT_EQ(tok::newline, Toks[4].getKind());
612 ASSERT_EQ(tok::text, Toks[0].getKind());
613 ASSERT_EQ(StringRef(" "), Toks[0].getText());
615 ASSERT_EQ(tok::verbatim_block_begin, Toks[1].getKind());
616 ASSERT_EQ(StringRef("verbatim"), getVerbatimBlockName(Toks[1]));
618 ASSERT_EQ(tok::newline, Toks[2].getKind());
631 ASSERT_EQ(tok::text, Toks[0].getKind());
632 ASSERT_EQ(StringRef(" "), Toks[0].getText());
634 ASSERT_EQ(tok::verbatim_block_begin, Toks[1].getKind());
635 ASSERT_EQ(StringRef("verbatim"), getVerbatimBlockName(Toks[1]));
637 ASSERT_EQ(tok::newline, Toks[2].getKind());
638 ASSERT_EQ(tok::newline, Toks[3].getKind());
655 ASSERT_EQ(tok::text, Toks[0].getKind());
656 ASSERT_EQ(StringRef(" Meow "), Toks[0].getText());
658 ASSERT_EQ(tok::verbatim_block_begin, Toks[1].getKind());
659 ASSERT_EQ(StringRef("verbatim"), getVerbatimBlockName(Toks[1]));
661 ASSERT_EQ(tok::verbatim_block_line, Toks[2].getKind());
662 ASSERT_EQ(StringRef(" aaa "), Toks[2].getVerbatimBlockText());
664 ASSERT_EQ(tok::verbatim_block_end, Toks[3].getKind());
665 ASSERT_EQ(StringRef("endverbatim"), getVerbatimBlockName(Toks[3]));
667 ASSERT_EQ(tok::newline, Toks[4].getKind());
668 ASSERT_EQ(tok::newline, Toks[5].getKind());
686 ASSERT_EQ(tok::text, Toks[0].getKind());
687 ASSERT_EQ(StringRef(" Meow "), Toks[0].getText());
689 ASSERT_EQ(tok::verbatim_block_begin, Toks[1].getKind());
690 ASSERT_EQ(StringRef("verbatim"), getVerbatimBlockName(Toks[1]));
692 ASSERT_EQ(tok::verbatim_block_line, Toks[2].getKind());
693 ASSERT_EQ(StringRef(" aaa "), Toks[2].getVerbatimBlockText());
695 ASSERT_EQ(tok::newline, Toks[3].getKind());
696 ASSERT_EQ(tok::newline, Toks[4].getKind());
714 ASSERT_EQ(tok::text, Toks[0].getKind());
715 ASSERT_EQ(StringRef(" "), Toks[0].getText());
717 ASSERT_EQ(tok::verbatim_block_begin, Toks[1].getKind());
718 ASSERT_EQ(StringRef("verbatim"), getVerbatimBlockName(Toks[1]));
720 ASSERT_EQ(tok::newline, Toks[2].getKind());
722 ASSERT_EQ(tok::verbatim_block_line, Toks[3].getKind());
723 ASSERT_EQ(StringRef(" Aaa"), Toks[3].getVerbatimBlockText());
725 ASSERT_EQ(tok::newline, Toks[4].getKind());
727 ASSERT_EQ(tok::newline, Toks[5].getKind());
729 ASSERT_EQ(tok::verbatim_block_line, Toks[6].getKind());
730 ASSERT_EQ(StringRef(" Bbb"), Toks[6].getVerbatimBlockText());
732 ASSERT_EQ(tok::newline, Toks[7].getKind());
734 ASSERT_EQ(tok::verbatim_block_end, Toks[8].getKind());
735 ASSERT_EQ(StringRef("endverbatim"), getVerbatimBlockName(Toks[8]));
737 ASSERT_EQ(tok::newline, Toks[9].getKind());
755 ASSERT_EQ(tok::text, Toks[0].getKind());
756 ASSERT_EQ(StringRef(" "), Toks[0].getText());
758 ASSERT_EQ(tok::verbatim_block_begin, Toks[1].getKind());
759 ASSERT_EQ(StringRef("verbatim"), getVerbatimBlockName(Toks[1]));
761 ASSERT_EQ(tok::verbatim_block_line, Toks[2].getKind());
762 ASSERT_EQ(StringRef(" Aaa"), Toks[2].getVerbatimBlockText());
764 ASSERT_EQ(tok::verbatim_block_line, Toks[3].getKind());
765 ASSERT_EQ(StringRef(""), Toks[3].getVerbatimBlockText());
767 ASSERT_EQ(tok::verbatim_block_line, Toks[4].getKind());
768 ASSERT_EQ(StringRef(" Bbb"), Toks[4].getVerbatimBlockText());
770 ASSERT_EQ(tok::verbatim_block_end, Toks[5].getKind());
771 ASSERT_EQ(StringRef("endverbatim"), getVerbatimBlockName(Toks[5]));
773 ASSERT_EQ(tok::newline, Toks[6].getKind());
775 ASSERT_EQ(tok::text, Toks[7].getKind());
776 ASSERT_EQ(StringRef(" "), Toks[7].getText());
778 ASSERT_EQ(tok::newline, Toks[8].getKind());
779 ASSERT_EQ(tok::newline, Toks[9].getKind());
796 ASSERT_EQ(tok::text, Toks[0].getKind());
797 ASSERT_EQ(StringRef(" Meow "), Toks[0].getText());
799 ASSERT_EQ(tok::verbatim_block_begin, Toks[1].getKind());
800 ASSERT_EQ(StringRef("verbatim"), getVerbatimBlockName(Toks[1]));
802 ASSERT_EQ(tok::verbatim_block_line, Toks[2].getKind());
803 ASSERT_EQ(StringRef(" aaa\\$\\@"), Toks[2].getVerbatimBlockText());
805 ASSERT_EQ(tok::verbatim_block_line, Toks[3].getKind());
806 ASSERT_EQ(StringRef("bbb \\endverbati"), Toks[3].getVerbatimBlockText());
808 ASSERT_EQ(tok::verbatim_block_line, Toks[4].getKind());
809 ASSERT_EQ(StringRef("ccc"), Toks[4].getVerbatimBlockText());
811 ASSERT_EQ(tok::verbatim_block_line, Toks[5].getKind());
812 ASSERT_EQ(StringRef("ddd "), Toks[5].getVerbatimBlockText());
814 ASSERT_EQ(tok::verbatim_block_end, Toks[6].getKind());
815 ASSERT_EQ(StringRef("endverbatim"), getVerbatimBlockName(Toks[6]));
817 ASSERT_EQ(tok::text, Toks[7].getKind());
818 ASSERT_EQ(StringRef(" Blah "), Toks[7].getText());
820 ASSERT_EQ(tok::verbatim_block_begin, Toks[8].getKind());
821 ASSERT_EQ(StringRef("verbatim"), getVerbatimBlockName(Toks[8]));
823 ASSERT_EQ(tok::verbatim_block_line, Toks[9].getKind());
824 ASSERT_EQ(StringRef(" eee"), Toks[9].getVerbatimBlockText());
826 ASSERT_EQ(tok::verbatim_block_end, Toks[10].getKind());
827 ASSERT_EQ(StringRef("endverbatim"), getVerbatimBlockName(Toks[10]));
829 ASSERT_EQ(tok::text, Toks[11].getKind());
830 ASSERT_EQ(StringRef(" BlahBlah"), Toks[11].getText());
832 ASSERT_EQ(tok::newline, Toks[12].getKind());
833 ASSERT_EQ(tok::newline, Toks[13].getKind());
846 ASSERT_EQ(tok::text, Toks[0].getKind());
847 ASSERT_EQ(StringRef(" "), Toks[0].getText());
849 ASSERT_EQ(tok::verbatim_block_begin, Toks[1].getKind());
850 ASSERT_EQ(StringRef("f$"), getVerbatimBlockName(Toks[1]));
852 ASSERT_EQ(tok::verbatim_block_line, Toks[2].getKind());
853 ASSERT_EQ(StringRef(" Aaa "), Toks[2].getVerbatimBlockText());
855 ASSERT_EQ(tok::verbatim_block_end, Toks[3].getKind());
856 ASSERT_EQ(StringRef("f$"), getVerbatimBlockName(Toks[3]));
858 ASSERT_EQ(tok::text, Toks[4].getKind());
859 ASSERT_EQ(StringRef(" "), Toks[4].getText());
861 ASSERT_EQ(tok::verbatim_block_begin, Toks[5].getKind());
862 ASSERT_EQ(StringRef("f["), getVerbatimBlockName(Toks[5]));
864 ASSERT_EQ(tok::verbatim_block_line, Toks[6].getKind());
865 ASSERT_EQ(StringRef(" Bbb "), Toks[6].getVerbatimBlockText());
867 ASSERT_EQ(tok::verbatim_block_end, Toks[7].getKind());
868 ASSERT_EQ(StringRef("f]"), getVerbatimBlockName(Toks[7]));
870 ASSERT_EQ(tok::text, Toks[8].getKind());
871 ASSERT_EQ(StringRef(" "), Toks[8].getText());
873 ASSERT_EQ(tok::verbatim_block_begin, Toks[9].getKind());
874 ASSERT_EQ(StringRef("f{"), getVerbatimBlockName(Toks[9]));
876 ASSERT_EQ(tok::verbatim_block_line, Toks[10].getKind());
877 ASSERT_EQ(StringRef(" Ccc "), Toks[10].getVerbatimBlockText());
879 ASSERT_EQ(tok::verbatim_block_end, Toks[11].getKind());
880 ASSERT_EQ(StringRef("f}"), getVerbatimBlockName(Toks[11]));
882 ASSERT_EQ(tok::newline, Toks[12].getKind());
899 ASSERT_EQ(tok::text, Toks[0].getKind());
900 ASSERT_EQ(StringRef(" "), Toks[0].getText());
902 ASSERT_EQ(tok::verbatim_line_name, Toks[1].getKind());
903 ASSERT_EQ(StringRef("fn"), getVerbatimLineName(Toks[1]));
905 ASSERT_EQ(tok::newline, Toks[2].getKind());
906 ASSERT_EQ(tok::newline, Toks[3].getKind());
924 ASSERT_EQ(tok::text, Toks[0].getKind());
925 ASSERT_EQ(StringRef(" "), Toks[0].getText());
927 ASSERT_EQ(tok::verbatim_line_name, Toks[1].getKind());
928 ASSERT_EQ(StringRef("fn"), getVerbatimLineName(Toks[1]));
930 ASSERT_EQ(tok::verbatim_line_text, Toks[2].getKind());
932 Toks[2].getVerbatimLineText());
934 ASSERT_EQ(tok::newline, Toks[3].getKind());
935 ASSERT_EQ(tok::newline, Toks[4].getKind());
952 ASSERT_EQ(tok::text, Toks[0].getKind());
953 ASSERT_EQ(StringRef(" "), Toks[0].getText());
955 ASSERT_EQ(tok::verbatim_line_name, Toks[1].getKind());
956 ASSERT_EQ(StringRef("fn"), getVerbatimLineName(Toks[1]));
958 ASSERT_EQ(tok::verbatim_line_text, Toks[2].getKind());
960 Toks[2].getVerbatimLineText());
961 ASSERT_EQ(tok::newline, Toks[3].getKind());
963 ASSERT_EQ(tok::text, Toks[4].getKind());
964 ASSERT_EQ(StringRef(" Meow"), Toks[4].getText());
965 ASSERT_EQ(tok::newline, Toks[5].getKind());
967 ASSERT_EQ(tok::text, Toks[6].getKind());
968 ASSERT_EQ(StringRef(" "), Toks[6].getText());
970 ASSERT_EQ(tok::newline, Toks[7].getKind());
971 ASSERT_EQ(tok::newline, Toks[8].getKind());
984 ASSERT_EQ(tok::text, Toks[0].getKind());
985 ASSERT_EQ(StringRef(" "), Toks[0].getText());
987 ASSERT_EQ(tok::text, Toks[1].getKind());
988 ASSERT_EQ(StringRef("<"), Toks[1].getText());
990 ASSERT_EQ(tok::newline, Toks[2].getKind());
1003 ASSERT_EQ(tok::text, Toks[0].getKind());
1004 ASSERT_EQ(StringRef(" a"), Toks[0].getText());
1006 ASSERT_EQ(tok::text, Toks[1].getKind());
1007 ASSERT_EQ(StringRef("<"), Toks[1].getText());
1009 ASSERT_EQ(tok::text, Toks[2].getKind());
1010 ASSERT_EQ(StringRef("2"), Toks[2].getText());
1012 ASSERT_EQ(tok::newline, Toks[3].getKind());
1025 ASSERT_EQ(tok::text, Toks[0].getKind());
1026 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1028 ASSERT_EQ(tok::text, Toks[1].getKind());
1029 ASSERT_EQ(StringRef("<"), Toks[1].getText());
1031 ASSERT_EQ(tok::text, Toks[2].getKind());
1032 ASSERT_EQ(StringRef(" img"), Toks[2].getText());
1034 ASSERT_EQ(tok::newline, Toks[3].getKind());
1050 ASSERT_EQ(tok::text, Toks[0].getKind());
1051 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1053 ASSERT_EQ(tok::html_start_tag, Toks[1].getKind());
1054 ASSERT_EQ(StringRef("img"), Toks[1].getHTMLTagStartName());
1056 ASSERT_EQ(tok::newline, Toks[2].getKind());
1070 ASSERT_EQ(tok::text, Toks[0].getKind());
1071 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1073 ASSERT_EQ(tok::html_start_tag, Toks[1].getKind());
1074 ASSERT_EQ(StringRef("img"), Toks[1].getHTMLTagStartName());
1076 ASSERT_EQ(tok::text, Toks[2].getKind());
1077 ASSERT_EQ(StringRef("42"), Toks[2].getText());
1079 ASSERT_EQ(tok::newline, Toks[3].getKind());
1091 ASSERT_EQ(tok::text, Toks[0].getKind());
1092 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1094 ASSERT_EQ(tok::html_start_tag, Toks[1].getKind());
1095 ASSERT_EQ(StringRef("img"), Toks[1].getHTMLTagStartName());
1097 ASSERT_EQ(tok::html_greater, Toks[2].getKind());
1099 ASSERT_EQ(tok::text, Toks[3].getKind());
1100 ASSERT_EQ(StringRef(" Meow"), Toks[3].getText());
1102 ASSERT_EQ(tok::newline, Toks[4].getKind());
1114 ASSERT_EQ(tok::text, Toks[0].getKind());
1115 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1117 ASSERT_EQ(tok::html_start_tag, Toks[1].getKind());
1118 ASSERT_EQ(StringRef("img"), Toks[1].getHTMLTagStartName());
1120 ASSERT_EQ(tok::text, Toks[2].getKind());
1121 ASSERT_EQ(StringRef("="), Toks[2].getText());
1123 ASSERT_EQ(tok::newline, Toks[3].getKind());
1135 ASSERT_EQ(tok::text, Toks[0].getKind());
1136 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1138 ASSERT_EQ(tok::html_start_tag, Toks[1].getKind());
1139 ASSERT_EQ(StringRef("img"), Toks[1].getHTMLTagStartName());
1141 ASSERT_EQ(tok::html_ident, Toks[2].getKind());
1142 ASSERT_EQ(StringRef("src"), Toks[2].getHTMLIdent());
1144 ASSERT_EQ(tok::html_equals, Toks[3].getKind());
1146 ASSERT_EQ(tok::html_greater, Toks[4].getKind());
1148 ASSERT_EQ(tok::text, Toks[5].getKind());
1149 ASSERT_EQ(StringRef(" Meow"), Toks[5].getText());
1151 ASSERT_EQ(tok::newline, Toks[6].getKind());
1167 ASSERT_EQ(tok::text, Toks[0].getKind());
1168 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1170 ASSERT_EQ(tok::html_start_tag, Toks[1].getKind());
1171 ASSERT_EQ(StringRef("img"), Toks[1].getHTMLTagStartName());
1173 ASSERT_EQ(tok::html_ident, Toks[2].getKind());
1174 ASSERT_EQ(StringRef("src"), Toks[2].getHTMLIdent());
1176 ASSERT_EQ(tok::newline, Toks[3].getKind());
1193 ASSERT_EQ(tok::text, Toks[0].getKind());
1194 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1196 ASSERT_EQ(tok::html_start_tag, Toks[1].getKind());
1197 ASSERT_EQ(StringRef("img"), Toks[1].getHTMLTagStartName());
1199 ASSERT_EQ(tok::html_ident, Toks[2].getKind());
1200 ASSERT_EQ(StringRef("src"), Toks[2].getHTMLIdent());
1202 ASSERT_EQ(tok::html_equals, Toks[3].getKind());
1204 ASSERT_EQ(tok::newline, Toks[4].getKind());
1223 ASSERT_EQ(tok::text, Toks[0].getKind());
1224 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1226 ASSERT_EQ(tok::html_start_tag, Toks[1].getKind());
1227 ASSERT_EQ(StringRef("img"), Toks[1].getHTMLTagStartName());
1229 ASSERT_EQ(tok::html_ident, Toks[2].getKind());
1230 ASSERT_EQ(StringRef("src"), Toks[2].getHTMLIdent());
1232 ASSERT_EQ(tok::html_equals, Toks[3].getKind());
1234 ASSERT_EQ(tok::html_quoted_string, Toks[4].getKind());
1235 ASSERT_EQ(StringRef(""), Toks[4].getHTMLQuotedString());
1237 ASSERT_EQ(tok::newline, Toks[5].getKind());
1250 ASSERT_EQ(tok::text, Toks[0].getKind());
1251 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1253 ASSERT_EQ(tok::html_start_tag, Toks[1].getKind());
1254 ASSERT_EQ(StringRef("img"), Toks[1].getHTMLTagStartName());
1256 ASSERT_EQ(tok::html_ident, Toks[2].getKind());
1257 ASSERT_EQ(StringRef("src"), Toks[2].getHTMLIdent());
1259 ASSERT_EQ(tok::html_equals, Toks[3].getKind());
1261 ASSERT_EQ(tok::text, Toks[4].getKind());
1262 ASSERT_EQ(StringRef("@"), Toks[4].getText());
1264 ASSERT_EQ(tok::newline, Toks[5].getKind());
1282 ASSERT_EQ(tok::text, Toks[0].getKind());
1283 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1285 ASSERT_EQ(tok::html_start_tag, Toks[1].getKind());
1286 ASSERT_EQ(StringRef("img"), Toks[1].getHTMLTagStartName());
1288 ASSERT_EQ(tok::html_ident, Toks[2].getKind());
1289 ASSERT_EQ(StringRef("src"), Toks[2].getHTMLIdent());
1291 ASSERT_EQ(tok::html_equals, Toks[3].getKind());
1293 ASSERT_EQ(tok::html_quoted_string, Toks[4].getKind());
1294 ASSERT_EQ(StringRef("val\\\"\\'val"), Toks[4].getHTMLQuotedString());
1296 ASSERT_EQ(tok::newline, Toks[5].getKind());
1313 ASSERT_EQ(tok::text, Toks[0].getKind());
1314 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1316 ASSERT_EQ(tok::html_start_tag, Toks[1].getKind());
1317 ASSERT_EQ(StringRef("img"), Toks[1].getHTMLTagStartName());
1319 ASSERT_EQ(tok::html_ident, Toks[2].getKind());
1320 ASSERT_EQ(StringRef("src"), Toks[2].getHTMLIdent());
1322 ASSERT_EQ(tok::html_equals, Toks[3].getKind());
1324 ASSERT_EQ(tok::html_quoted_string, Toks[4].getKind());
1325 ASSERT_EQ(StringRef("val\\\"\\'val"), Toks[4].getHTMLQuotedString());
1327 ASSERT_EQ(tok::html_greater, Toks[5].getKind());
1329 ASSERT_EQ(tok::newline, Toks[6].getKind());
1346 ASSERT_EQ(tok::text, Toks[0].getKind());
1347 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1349 ASSERT_EQ(tok::html_start_tag, Toks[1].getKind());
1350 ASSERT_EQ(StringRef("img"), Toks[1].getHTMLTagStartName());
1352 ASSERT_EQ(tok::html_slash_greater, Toks[2].getKind());
1354 ASSERT_EQ(tok::newline, Toks[3].getKind());
1371 ASSERT_EQ(tok::text, Toks[0].getKind());
1372 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1374 ASSERT_EQ(tok::html_start_tag, Toks[1].getKind());
1375 ASSERT_EQ(StringRef("img"), Toks[1].getHTMLTagStartName());
1377 ASSERT_EQ(tok::text, Toks[2].getKind());
1378 ASSERT_EQ(StringRef("/"), Toks[2].getText());
1380 ASSERT_EQ(tok::text, Toks[3].getKind());
1381 ASSERT_EQ(StringRef(" Aaa"), Toks[3].getText());
1383 ASSERT_EQ(tok::newline, Toks[4].getKind());
1396 ASSERT_EQ(tok::text, Toks[0].getKind());
1397 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1399 ASSERT_EQ(tok::text, Toks[1].getKind());
1400 ASSERT_EQ(StringRef("</"), Toks[1].getText());
1402 ASSERT_EQ(tok::newline, Toks[2].getKind());
1414 ASSERT_EQ(tok::text, Toks[0].getKind());
1415 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1417 ASSERT_EQ(tok::text, Toks[1].getKind());
1418 ASSERT_EQ(StringRef("</"), Toks[1].getText());
1420 ASSERT_EQ(tok::text, Toks[2].getKind());
1421 ASSERT_EQ(StringRef("@"), Toks[2].getText());
1423 ASSERT_EQ(tok::newline, Toks[3].getKind());
1435 ASSERT_EQ(tok::text, Toks[0].getKind());
1436 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1438 ASSERT_EQ(tok::html_end_tag, Toks[1].getKind());
1439 ASSERT_EQ(StringRef("img"), Toks[1].getHTMLTagEndName());
1441 ASSERT_EQ(tok::newline, Toks[2].getKind());
1453 ASSERT_EQ(tok::text, Toks[0].getKind());
1454 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1456 ASSERT_EQ(tok::text, Toks[1].getKind());
1457 ASSERT_EQ(StringRef("<tag"), Toks[1].getText());
1459 ASSERT_EQ(tok::text, Toks[2].getKind());
1460 ASSERT_EQ(StringRef(">"), Toks[2].getText());
1462 ASSERT_EQ(tok::newline, Toks[3].getKind());
1474 ASSERT_EQ(tok::text, Toks[0].getKind());
1475 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1477 ASSERT_EQ(tok::text, Toks[1].getKind());
1478 ASSERT_EQ(StringRef("</tag"), Toks[1].getText());
1480 ASSERT_EQ(tok::text, Toks[2].getKind());
1481 ASSERT_EQ(StringRef(">"), Toks[2].getText());
1483 ASSERT_EQ(tok::newline, Toks[3].getKind());
1495 ASSERT_EQ(tok::text, Toks[0].getKind());
1496 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1498 ASSERT_EQ(tok::text, Toks[1].getKind());
1499 ASSERT_EQ(StringRef("&"), Toks[1].getText());
1501 ASSERT_EQ(tok::newline, Toks[2].getKind());
1513 ASSERT_EQ(tok::text, Toks[0].getKind());
1514 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1516 ASSERT_EQ(tok::text, Toks[1].getKind());
1517 ASSERT_EQ(StringRef("&"), Toks[1].getText());
1519 ASSERT_EQ(tok::text, Toks[2].getKind());
1520 ASSERT_EQ(StringRef("!"), Toks[2].getText());
1522 ASSERT_EQ(tok::newline, Toks[3].getKind());
1534 ASSERT_EQ(tok::text, Toks[0].getKind());
1535 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1537 ASSERT_EQ(tok::text, Toks[1].getKind());
1538 ASSERT_EQ(StringRef("&"), Toks[1].getText());
1540 ASSERT_EQ(tok::newline, Toks[2].getKind());
1552 ASSERT_EQ(tok::text, Toks[0].getKind());
1553 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1555 ASSERT_EQ(tok::text, Toks[1].getKind());
1556 ASSERT_EQ(StringRef("&"), Toks[1].getText());
1558 ASSERT_EQ(tok::text, Toks[2].getKind());
1559 ASSERT_EQ(StringRef("!"), Toks[2].getText());
1561 ASSERT_EQ(tok::newline, Toks[3].getKind());
1573 ASSERT_EQ(tok::text, Toks[0].getKind());
1574 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1576 ASSERT_EQ(tok::text, Toks[1].getKind());
1577 ASSERT_EQ(StringRef("&#"), Toks[1].getText());
1579 ASSERT_EQ(tok::newline, Toks[2].getKind());
1591 ASSERT_EQ(tok::text, Toks[0].getKind());
1592 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1594 ASSERT_EQ(tok::text, Toks[1].getKind());
1595 ASSERT_EQ(StringRef("&#"), Toks[1].getText());
1597 ASSERT_EQ(tok::text, Toks[2].getKind());
1598 ASSERT_EQ(StringRef("a"), Toks[2].getText());
1600 ASSERT_EQ(tok::newline, Toks[3].getKind());
1612 ASSERT_EQ(tok::text, Toks[0].getKind());
1613 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1615 ASSERT_EQ(tok::text, Toks[1].getKind());
1616 ASSERT_EQ(StringRef("*"), Toks[1].getText());
1618 ASSERT_EQ(tok::newline, Toks[2].getKind());
1630 ASSERT_EQ(tok::text, Toks[0].getKind());
1631 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1633 ASSERT_EQ(tok::text, Toks[1].getKind());
1634 ASSERT_EQ(StringRef("*"), Toks[1].getText());
1636 ASSERT_EQ(tok::text, Toks[2].getKind());
1637 ASSERT_EQ(StringRef("a"), Toks[2].getText());
1639 ASSERT_EQ(tok::newline, Toks[3].getKind());
1651 ASSERT_EQ(tok::text, Toks[0].getKind());
1652 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1654 ASSERT_EQ(tok::text, Toks[1].getKind());
1655 ASSERT_EQ(StringRef("&#x"), Toks[1].getText());
1657 ASSERT_EQ(tok::newline, Toks[2].getKind());
1669 ASSERT_EQ(tok::text, Toks[0].getKind());
1670 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1672 ASSERT_EQ(tok::text, Toks[1].getKind());
1673 ASSERT_EQ(StringRef("&#x"), Toks[1].getText());
1675 ASSERT_EQ(tok::text, Toks[2].getKind());
1676 ASSERT_EQ(StringRef("z"), Toks[2].getText());
1678 ASSERT_EQ(tok::newline, Toks[3].getKind());
1690 ASSERT_EQ(tok::text, Toks[0].getKind());
1691 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1693 ASSERT_EQ(tok::text, Toks[1].getKind());
1694 ASSERT_EQ(StringRef("«"), Toks[1].getText());
1696 ASSERT_EQ(tok::newline, Toks[2].getKind());
1708 ASSERT_EQ(tok::text, Toks[0].getKind());
1709 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1711 ASSERT_EQ(tok::text, Toks[1].getKind());
1712 ASSERT_EQ(StringRef("«"), Toks[1].getText());
1714 ASSERT_EQ(tok::text, Toks[2].getKind());
1715 ASSERT_EQ(StringRef("z"), Toks[2].getText());
1717 ASSERT_EQ(tok::newline, Toks[3].getKind());
1729 ASSERT_EQ(tok::text, Toks[0].getKind());
1730 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1732 ASSERT_EQ(tok::text, Toks[1].getKind());
1733 ASSERT_EQ(StringRef("&"), Toks[1].getText());
1735 ASSERT_EQ(tok::newline, Toks[2].getKind());
1747 ASSERT_EQ(tok::text, Toks[0].getKind());
1748 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1750 ASSERT_EQ(tok::text, Toks[1].getKind());
1751 ASSERT_EQ(StringRef("&"), Toks[1].getText());
1753 ASSERT_EQ(tok::text, Toks[2].getKind());
1754 ASSERT_EQ(StringRef("<"), Toks[2].getText());
1756 ASSERT_EQ(tok::newline, Toks[3].getKind());
1768 ASSERT_EQ(tok::text, Toks[0].getKind());
1769 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1771 ASSERT_EQ(tok::text, Toks[1].getKind());
1772 ASSERT_EQ(StringRef("&"), Toks[1].getText());
1774 ASSERT_EQ(tok::text, Toks[2].getKind());
1775 ASSERT_EQ(StringRef(" meow"), Toks[2].getText());
1777 ASSERT_EQ(tok::newline, Toks[3].getKind());
1795 ASSERT_EQ(tok::text, Toks[0].getKind());
1796 ASSERT_EQ(StringRef(" "), Toks[0].getText());
1798 ASSERT_EQ(tok::text, Toks[1].getKind());
1799 ASSERT_EQ(StringRef("="), Toks[1].getText());
1801 ASSERT_EQ(tok::newline, Toks[2].getKind());
1819 ASSERT_EQ(tok::text, Toks[0].getKind());
1820 ASSERT_EQ(StringRef(" Aaa"), Toks[0].getText());
1821 ASSERT_EQ(tok::newline, Toks[1].getKind());
1823 ASSERT_EQ(tok::text, Toks[2].getKind());
1824 ASSERT_EQ(StringRef(" Bbb"), Toks[2].getText());
1825 ASSERT_EQ(tok::newline, Toks[3].getKind());
1827 ASSERT_EQ(tok::text, Toks[4].getKind());
1828 ASSERT_EQ(StringRef(" Ccc"), Toks[4].getText());
1829 ASSERT_EQ(tok::newline, Toks[5].getKind());
1831 ASSERT_EQ(tok::text, Toks[6].getKind());
1832 ASSERT_EQ(StringRef(" Ddd"), Toks[6].getText());
1833 ASSERT_EQ(tok::newline, Toks[7].getKind());
1834 ASSERT_EQ(tok::newline, Toks[8].getKind());
1836 ASSERT_EQ(tok::text, Toks[9].getKind());
1837 ASSERT_EQ(StringRef(" Eee"), Toks[9].getText());
1839 ASSERT_EQ(tok::newline, Toks[10].getKind());
1840 ASSERT_EQ(tok::newline, Toks[11].getKind());
tools/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp 82 EXPECT_TRUE(Sema.Values[0].getBoolean());
83 EXPECT_FALSE(Sema.Values[1].getBoolean());
94 EXPECT_EQ(1.0, Sema.Values[0].getDouble());
95 EXPECT_EQ("1:1: Error parsing numeric literal: <2.0f>", Sema.Errors[1]);
96 EXPECT_EQ(34.56e-78, Sema.Values[2].getDouble());
97 EXPECT_EQ(4e+6, Sema.Values[3].getDouble());
98 EXPECT_FALSE(Sema.Values[4].isDouble());
109 EXPECT_EQ(0U, Sema.Values[0].getUnsigned());
110 EXPECT_EQ(123U, Sema.Values[1].getUnsigned());
111 EXPECT_EQ(31U, Sema.Values[2].getUnsigned());
112 EXPECT_EQ("1:1: Error parsing numeric literal: <12345678901>", Sema.Errors[3]);
113 EXPECT_EQ("1:1: Error parsing numeric literal: <1a1>", Sema.Errors[4]);
122 EXPECT_EQ("Foo", Sema.Values[0].getString());
123 EXPECT_EQ("", Sema.Values[1].getString());
124 EXPECT_EQ("1:1: Error parsing string token: <\"Baz>", Sema.Errors[2]);
159 EXPECT_EQ(ExpectedFoo, getSingleMatcher(Sema.Values[0])->getID().second);
162 const MockSema::MatcherInfo Bar = Sema.Matchers[0];
168 const MockSema::MatcherInfo Baz = Sema.Matchers[1];
174 const MockSema::MatcherInfo Foo = Sema.Matchers[2];
195 EXPECT_EQ("1:4: Error parsing matcher. Found end-of-code while looking for ')'.", Sema.Errors[1]);
331 EXPECT_EQ("Stmt(", Comps[0].TypedText);
333 Comps[0].MatcherDecl);
337 EXPECT_EQ("bind(\"", Comps[0].TypedText);
338 EXPECT_EQ("bind", Comps[0].MatcherDecl);
348 EXPECT_EQ("nameX", Comps[0].TypedText);
349 EXPECT_EQ("String nameX", Comps[0].MatcherDecl);
361 EXPECT_EQ("arameter(", Comps[0].TypedText);
364 Comps[0].MatcherDecl);
366 EXPECT_EQ("aramA", Comps[1].TypedText);
367 EXPECT_EQ("Matcher<Decl> hasParamA", Comps[1].MatcherDecl);
369 EXPECT_EQ("arent(", Comps[2].TypedText);
373 Comps[2].MatcherDecl);
tools/clang/unittests/ASTMatchers/Dynamic/RegistryTest.cpp 26 Out[0].Value = Arg1;
32 Out[0].Value = Arg1;
33 Out[1].Value = Arg2;
tools/clang/unittests/Basic/SourceManagerTest.cpp 82 ASSERT_EQ(tok::l_square, toks[0].getKind());
83 ASSERT_EQ(tok::identifier, toks[1].getKind());
84 ASSERT_EQ(tok::r_square, toks[2].getKind());
86 SourceLocation lsqrLoc = toks[0].getLocation();
87 SourceLocation idLoc = toks[1].getLocation();
88 SourceLocation rsqrLoc = toks[2].getLocation();
291 ASSERT_EQ(tok::numeric_constant, toks[0].getKind());
292 ASSERT_EQ(tok::numeric_constant, toks[1].getKind());
293 ASSERT_EQ(tok::numeric_constant, toks[2].getKind());
294 ASSERT_EQ(tok::numeric_constant, toks[3].getKind());
311 EXPECT_EQ(loc2, toks[1].getLocation());
312 EXPECT_EQ(loc3, toks[2].getLocation());
416 ASSERT_TRUE(Macros[0].isDefinition());
417 ASSERT_EQ("M", Macros[0].Name);
419 ASSERT_TRUE(Macros[1].isDefinition());
420 ASSERT_EQ("INC", Macros[1].Name);
422 ASSERT_FALSE(Macros[2].isDefinition());
423 ASSERT_EQ("M", Macros[2].Name);
425 ASSERT_TRUE(Macros[3].isExpansion());
426 ASSERT_EQ("INC", Macros[3].Name);
428 ASSERT_TRUE(Macros[4].isDefinition());
429 ASSERT_EQ("MACRO_IN_INCLUDE", Macros[4].Name);
431 ASSERT_TRUE(Macros[5].isDefinition());
432 ASSERT_FALSE(Macros[5].isUnDefinition());
433 ASSERT_EQ("MACRO_DEFINED", Macros[5].Name);
435 ASSERT_TRUE(Macros[6].isDefinition());
436 ASSERT_TRUE(Macros[6].isUnDefinition());
437 ASSERT_EQ("MACRO_DEFINED", Macros[6].Name);
439 ASSERT_FALSE(Macros[7].isDefinition());
440 ASSERT_TRUE(Macros[7].isUnDefinition());
441 ASSERT_EQ("MACRO_UNDEFINED", Macros[7].Name);
443 ASSERT_TRUE(Macros[8].isDefinition());
444 ASSERT_EQ("INC2", Macros[8].Name);
446 ASSERT_FALSE(Macros[9].isDefinition());
447 ASSERT_EQ("M", Macros[9].Name);
449 ASSERT_TRUE(Macros[10].isExpansion());
450 ASSERT_EQ("INC2", Macros[10].Name);
452 ASSERT_TRUE(Macros[11].isDefinition());
453 ASSERT_EQ("MACRO_IN_INCLUDE", Macros[11].Name);
457 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(Macros[3].Loc, Macros[4].Loc));
457 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(Macros[3].Loc, Macros[4].Loc));
461 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(Macros[10].Loc, Macros[11].Loc));
461 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(Macros[10].Loc, Macros[11].Loc));
tools/clang/unittests/Format/FormatTestRawStrings.cpp 773 Style.RawStringFormats[0].EnclosingFunctions.push_back(
775 Style.RawStringFormats[0].EnclosingFunctions.push_back("ParseTextProto");
796 Style.RawStringFormats[0].CanonicalDelimiter = "proto";
871 Style.RawStringFormats[0].EnclosingFunctions.push_back(
tools/clang/unittests/Format/SortIncludesTest.cpp 702 EXPECT_EQ(0u, Ranges[0].getOffset());
703 EXPECT_EQ(26u, Ranges[0].getLength());
tools/clang/unittests/Frontend/FrontendActionTest.cpp 98 EXPECT_EQ("main", test_action.decl_names[0]);
99 EXPECT_EQ("x", test_action.decl_names[1]);
118 EXPECT_EQ("main", test_action.decl_names[0]);
119 EXPECT_EQ("x", test_action.decl_names[1]);
146 EXPECT_EQ("A", test_action.decl_names[0]);
147 EXPECT_EQ("c", test_action.decl_names[12]);
tools/clang/unittests/Lex/LexerTest.cpp 87 EXPECT_EQ(ExpectedTokens[i], toks[i].getKind());
125 EXPECT_EQ("M(i)", getSourceText(toks[2], toks[2]));
125 EXPECT_EQ("M(i)", getSourceText(toks[2], toks[2]));
137 EXPECT_EQ("M(i)", getSourceText(toks[0], toks[0]));
137 EXPECT_EQ("M(i)", getSourceText(toks[0], toks[0]));
150 EXPECT_EQ("c M(i)", getSourceText(toks[1], toks[2]));
150 EXPECT_EQ("c M(i)", getSourceText(toks[1], toks[2]));
163 EXPECT_EQ("M(i) c", getSourceText(toks[0], toks[1]));
163 EXPECT_EQ("M(i) c", getSourceText(toks[0], toks[1]));
177 EXPECT_EQ("<INVALID>", getSourceText(toks[1], toks[2]));
177 EXPECT_EQ("<INVALID>", getSourceText(toks[1], toks[2]));
192 EXPECT_EQ("C(i)", getSourceText(toks[2], toks[2]));
192 EXPECT_EQ("C(i)", getSourceText(toks[2], toks[2]));
205 EXPECT_EQ("M(M(i))", getSourceText(toks[2], toks[2]));
205 EXPECT_EQ("M(M(i))", getSourceText(toks[2], toks[2]));
218 EXPECT_EQ("i", getSourceText(toks[2], toks[2]));
218 EXPECT_EQ("i", getSourceText(toks[2], toks[2]));
232 EXPECT_EQ("C(M(i))", getSourceText(toks[2], toks[2]));
232 EXPECT_EQ("C(M(i))", getSourceText(toks[2], toks[2]));
247 EXPECT_EQ("M(i)", getSourceText(toks[3], toks[3]));
247 EXPECT_EQ("M(i)", getSourceText(toks[3], toks[3]));
262 EXPECT_EQ("M(i)", getSourceText(toks[3], toks[3]));
262 EXPECT_EQ("M(i)", getSourceText(toks[3], toks[3]));
287 SourceLocation lsqrLoc = toks[0].getLocation();
288 SourceLocation idLoc = toks[1].getLocation();
289 SourceLocation rsqrLoc = toks[2].getLocation();
319 SourceLocation macroLsqrLoc = toks[3].getLocation();
320 SourceLocation macroIdLoc = toks[4].getLocation();
321 SourceLocation macroRsqrLoc = toks[5].getLocation();
350 SourceLocation idLoc1 = toks[6].getLocation();
351 SourceLocation idLoc2 = toks[7].getLocation();
352 SourceLocation idLoc3 = toks[8].getLocation();
353 SourceLocation idLoc4 = toks[9].getLocation();
373 SourceLocation helper1ArgLoc = toks[20].getLocation();
526 const Token &moo = toks[5];
tools/clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp 102 SourceRange(toks[0].getLocation(), toks[1].getLocation())));
102 SourceRange(toks[0].getLocation(), toks[1].getLocation())));
104 SourceRange(toks[0].getLocation(), toks[2].getLocation())));
104 SourceRange(toks[0].getLocation(), toks[2].getLocation())));
106 SourceRange(toks[3].getLocation(), toks[4].getLocation())));
106 SourceRange(toks[3].getLocation(), toks[4].getLocation())));
108 SourceRange(toks[1].getLocation(), toks[5].getLocation())));
108 SourceRange(toks[1].getLocation(), toks[5].getLocation())));
110 SourceRange(toks[2].getLocation(), toks[6].getLocation())));
110 SourceRange(toks[2].getLocation(), toks[6].getLocation())));
112 SourceRange(toks[2].getLocation(), toks[5].getLocation())));
112 SourceRange(toks[2].getLocation(), toks[5].getLocation())));
114 SourceRange(toks[0].getLocation(), toks[6].getLocation())));
114 SourceRange(toks[0].getLocation(), toks[6].getLocation())));
116 SourceRange(toks[2].getLocation(), toks[8].getLocation())));
116 SourceRange(toks[2].getLocation(), toks[8].getLocation())));
118 SourceRange(toks[0].getLocation(), toks[9].getLocation())));
118 SourceRange(toks[0].getLocation(), toks[9].getLocation())));
121 toks[0].getLocation(), toks[2].getLocation()));
121 toks[0].getLocation(), toks[2].getLocation()));
123 toks[3].getLocation(), toks[4].getLocation()));
123 toks[3].getLocation(), toks[4].getLocation()));
125 toks[1].getLocation(), toks[5].getLocation()));
125 toks[1].getLocation(), toks[5].getLocation()));
127 toks[2].getLocation(), toks[0].getLocation()));
127 toks[2].getLocation(), toks[0].getLocation()));
129 toks[4].getLocation(), toks[3].getLocation()));
129 toks[4].getLocation(), toks[3].getLocation()));
131 toks[5].getLocation(), toks[1].getLocation()));
131 toks[5].getLocation(), toks[1].getLocation()));
tools/clang/unittests/Sema/ExternalSemaSourceTest.cpp 203 Client = Watchers[I]->Chain(Client);
206 Sources[I]->InitializeSema(CI.getSema());
207 CI.getSema().addExternalSource(Sources[I]);
tools/clang/unittests/Tooling/ASTSelectionTest.cpp 162 checkNode<FunctionDecl>(Node->Children[0],
169 Node->Children[0].dump(OS);
188 Node->Children[0],
204 Node->Children[0], SourceSelectionKind::ContainsSelection,
228 Node->Children[0], SourceSelectionKind::ContainsSelection,
244 Node->Children[0], SourceSelectionKind::ContainsSelection,
260 Node->Children[0], SourceSelectionKind::ContainsSelection,
283 checkNode<FunctionDecl>(Node->Children[0],
286 checkNode<FunctionDecl>(Node->Children[1],
314 Node->Children[0], SourceSelectionKind::ContainsSelection,
335 Node->Children[0], SourceSelectionKind::ContainsSelection,
357 Node->Children[0], SourceSelectionKind::ContainsSelection,
405 Node->Children[0], SourceSelectionKind::ContainsSelection,
421 Node->Children[0], SourceSelectionKind::ContainsSelection,
437 Node->Children[0], SourceSelectionKind::ContainsSelectionStart,
445 Node->Children[1], SourceSelectionKind::ContainsSelectionEnd,
460 Node->Children[0],
487 Node->Children[0], SourceSelectionKind::ContainsSelection,
513 Node->Children[0], SourceSelectionKind::InsideSelection,
533 Node->Children[0],
tools/clang/unittests/Tooling/CompilationDatabaseTest.cpp 139 EXPECT_EQ(Directory1, Commands[0].Directory) << ErrorMessage;
140 EXPECT_EQ(FileName1, Commands[0].Filename) << ErrorMessage;
141 EXPECT_EQ(Output1, Commands[0].Output) << ErrorMessage;
142 ASSERT_EQ(1u, Commands[0].CommandLine.size());
143 EXPECT_EQ(Command1, Commands[0].CommandLine[0]) << ErrorMessage;
143 EXPECT_EQ(Command1, Commands[0].CommandLine[0]) << ErrorMessage;
144 EXPECT_EQ(Directory2, Commands[1].Directory) << ErrorMessage;
145 EXPECT_EQ(FileName2, Commands[1].Filename) << ErrorMessage;
146 EXPECT_EQ(Output2, Commands[1].Output) << ErrorMessage;
147 ASSERT_EQ(1u, Commands[1].CommandLine.size());
148 EXPECT_EQ(Command2, Commands[1].CommandLine[0]) << ErrorMessage;
148 EXPECT_EQ(Command2, Commands[1].CommandLine[0]) << ErrorMessage;
164 EXPECT_EQ(Directory2, Commands[0].Directory) << ErrorMessage;
165 EXPECT_EQ(FileName2, Commands[0].Filename) << ErrorMessage;
166 ASSERT_EQ(1u, Commands[0].CommandLine.size());
167 EXPECT_EQ(Command2, Commands[0].CommandLine[0]) << ErrorMessage;
167 EXPECT_EQ(Command2, Commands[0].CommandLine[0]) << ErrorMessage;
168 EXPECT_EQ(Directory1, Commands[1].Directory) << ErrorMessage;
169 EXPECT_EQ(FileName1, Commands[1].Filename) << ErrorMessage;
170 ASSERT_EQ(1u, Commands[1].CommandLine.size());
171 EXPECT_EQ(Command1, Commands[1].CommandLine[0]) << ErrorMessage;
171 EXPECT_EQ(Command1, Commands[1].CommandLine[0]) << ErrorMessage;
186 return Commands[0];
205 EXPECT_EQ(Arguments, FoundCommand.CommandLine[0]) << ErrorMessage;
306 FoundCommand.CommandLine[0]) << ErrorMessage;
307 EXPECT_EQ("and", FoundCommand.CommandLine[1]) << ErrorMessage;
308 EXPECT_EQ("some", FoundCommand.CommandLine[2]) << ErrorMessage;
309 EXPECT_EQ("arguments", FoundCommand.CommandLine[3]) << ErrorMessage;
334 FoundCommand.CommandLine[0]) << ErrorMessage;
335 EXPECT_EQ("and an argument", FoundCommand.CommandLine[1]) << ErrorMessage;
370 EXPECT_EQ("command4", FoundCommand.CommandLine[0]) << ErrorMessage;
417 EXPECT_EQ("a", Result[0]);
418 EXPECT_EQ("b", Result[1]);
419 EXPECT_EQ("c", Result[2]);
425 EXPECT_EQ("a", Result[0]);
426 EXPECT_EQ("b", Result[1]);
432 EXPECT_EQ("a\\", Backslash[0]);
435 EXPECT_EQ("a\"", Quote[0]);
441 EXPECT_EQ(" a b ", Result[0]);
448 EXPECT_EQ(" a ", Result[0]);
449 EXPECT_EQ(" b ", Result[1]);
456 EXPECT_TRUE(Result[0].empty()) << Result[0];
456 EXPECT_TRUE(Result[0].empty()) << Result[0];
463 EXPECT_EQ("\"", Result[0]);
470 EXPECT_EQ("\"", Result[0]);
471 EXPECT_EQ("a \" b ", Result[1]);
472 EXPECT_EQ("and\\c", Result[2]);
473 EXPECT_EQ("\"", Result[3]);
480 EXPECT_EQ("ab", QuotedNoSpaces[0]);
485 EXPECT_EQ("abcdefg", MixedNoSpaces[0]);
491 EXPECT_EQ("abc", Unclosed[0]);
495 EXPECT_EQ("", Empty[0]);
501 EXPECT_EQ("a\\b \"c\"", Args[0]);
510 EXPECT_EQ(".", Result[0].Directory);
511 EXPECT_EQ(FileName, Result[0].Filename);
512 EXPECT_THAT(Result[0].CommandLine,
568 ASSERT_EQ(".", Result[0].Directory);
569 ASSERT_THAT(Result[0].CommandLine, ElementsAre(EndsWith("clang-tool"),
585 ASSERT_EQ(".", Result[0].Directory);
586 ASSERT_THAT(Result[0].CommandLine,
602 ASSERT_EQ(".", Result[0].Directory);
603 ASSERT_THAT(Result[0].CommandLine,
620 ASSERT_EQ(".", Result[0].Directory);
622 Result[0].CommandLine,
637 ASSERT_EQ(".", Result[0].Directory);
639 ASSERT_THAT(Result[0].CommandLine,
702 EXPECT_EQ(Results[0].CommandLine.back(), path(F))
704 Results[0].CommandLine.pop_back();
705 return llvm::join(Results[0].CommandLine, " ");
848 return llvm::join(Results[0].CommandLine, " ");
tools/clang/unittests/Tooling/DependencyScannerTest.cpp 105 EXPECT_EQ(convert_to_slash(Deps[0]), "/root/test.cpp");
106 EXPECT_EQ(convert_to_slash(Deps[1]), "/root/symlink.h");
107 EXPECT_EQ(convert_to_slash(Deps[2]), "/root/header.h");
118 EXPECT_EQ(convert_to_slash(Deps[0]), "/root/test.cpp");
119 EXPECT_EQ(convert_to_slash(Deps[1]), "/root/symlink.h");
120 EXPECT_EQ(convert_to_slash(Deps[2]), "/root/header.h");
156 EXPECT_EQ(convert_to_slash(Deps[0]), "/root/test.cpp");
157 EXPECT_EQ(convert_to_slash(Deps[1]), "/root/header.h");
158 EXPECT_EQ(convert_to_slash(Deps[2]), "/root/symlink.h");
159 EXPECT_EQ(convert_to_slash(Deps[3]), "/root/test2.cpp");
160 EXPECT_EQ(convert_to_slash(Deps[4]), "/root/symlink.h");
161 EXPECT_EQ(convert_to_slash(Deps[5]), "/root/header.h");
191 EXPECT_EQ(convert_to_slash(Deps[0]), "/root/test.cpp");
192 EXPECT_EQ(convert_to_slash(Deps[1]), "/root/header.h");
193 EXPECT_EQ(convert_to_slash(Deps[2]), "/root/symlink.h");
194 EXPECT_EQ(convert_to_slash(Deps[3]), "/root/test.cpp");
195 EXPECT_EQ(convert_to_slash(Deps[4]), "/root/header.h");
196 EXPECT_EQ(convert_to_slash(Deps[5]), "/root/symlink.h");
tools/clang/unittests/Tooling/DiagnosticsYamlTest.cpp 134 Diagnostic D1 = TUDActual.Diagnostics[0];
141 EXPECT_EQ("path/to/source.cpp", Fixes1[0].getFilePath());
142 EXPECT_EQ(100u, Fixes1[0].getOffset());
143 EXPECT_EQ(12u, Fixes1[0].getLength());
144 EXPECT_EQ("replacement #1", Fixes1[0].getReplacementText());
146 Diagnostic D2 = TUDActual.Diagnostics[1];
153 EXPECT_EQ("path/to/header.h", Fixes2[0].getFilePath());
154 EXPECT_EQ(62u, Fixes2[0].getOffset());
155 EXPECT_EQ(2u, Fixes2[0].getLength());
156 EXPECT_EQ("replacement #2", Fixes2[0].getReplacementText());
158 Diagnostic D3 = TUDActual.Diagnostics[2];
tools/clang/unittests/Tooling/ExecutionTest.cpp 143 argc, &argv[0], TestCategory);
158 argc, &argv[0], TestCategory);
168 argc, &argv[0], TestCategory);
179 argc, &argv[0], TestCategory);
219 EXPECT_EQ("f", KVs[0].first);
222 EXPECT_EQ("::/1", KVs[0].second);
tools/clang/unittests/Tooling/RecursiveASTVisitorTestPostOrderVisitor.cpp 94 ASSERT_EQ(expected[I], Visitor.VisitedNodes[I]);
94 ASSERT_EQ(expected[I], Visitor.VisitedNodes[I]);
113 ASSERT_EQ(expected[I], Visitor.VisitedNodes[I]);
113 ASSERT_EQ(expected[I], Visitor.VisitedNodes[I]);
tools/clang/unittests/Tooling/RefactoringActionRulesTest.cpp 113 const_cast<AtomicChange &>(Result[0]).toYAMLString();
232 EXPECT_EQ(Occurrences[0].getKind(), SymbolOccurrence::MatchingSymbol);
233 EXPECT_EQ(Occurrences[0].getNameRanges().size(), 1u);
234 EXPECT_EQ(Occurrences[0].getNameRanges()[0],
tools/clang/unittests/Tooling/RefactoringTest.cpp 796 EXPECT_TRUE(Ranges[0].getOffset() == 0);
797 EXPECT_TRUE(Ranges[0].getLength() == 0);
798 EXPECT_TRUE(Ranges[1].getOffset() == 6);
799 EXPECT_TRUE(Ranges[1].getLength() == 22);
809 EXPECT_EQ(0u, Ranges[0].getOffset());
810 EXPECT_EQ(2u, Ranges[0].getLength());
tools/clang/unittests/Tooling/ReplacementsYamlTest.cpp 92 ASSERT_EQ("/path/to/file1.h", DocActual.Replacements[0].getFilePath());
93 ASSERT_EQ(232u, DocActual.Replacements[0].getOffset());
94 ASSERT_EQ(56u, DocActual.Replacements[0].getLength());
95 ASSERT_EQ("replacement #1", DocActual.Replacements[0].getReplacementText());
96 ASSERT_EQ("/path/to/file2.h", DocActual.Replacements[1].getFilePath());
97 ASSERT_EQ(301u, DocActual.Replacements[1].getOffset());
98 ASSERT_EQ(2u, DocActual.Replacements[1].getLength());
99 ASSERT_EQ("replacement #2", DocActual.Replacements[1].getReplacementText());
118 ASSERT_EQ("target_file.h", DocActual.Replacements[0].getFilePath());
119 ASSERT_EQ(1u, DocActual.Replacements[0].getOffset());
120 ASSERT_EQ(10u, DocActual.Replacements[0].getLength());
121 ASSERT_EQ("replacement", DocActual.Replacements[0].getReplacementText());
tools/clang/unittests/Tooling/TransformerTest.cpp 78 void appendToHeader(StringRef S) { FileContents[0].second += S; }
tools/clang/utils/TableGen/ClangAttrEmitter.cpp 1360 " return \"" << Spellings[I].name() << "\";\n";
1392 std::string Name = Spellings[I].name();
1393 std::string Variety = Spellings[I].variety();
1401 std::string Namespace = Spellings[I].nameSpace();
1418 std::string Namespace = Spellings[I].nameSpace();
1568 OS << getSpellingListIndex(SpellingList, Spellings[Index]);
2111 if (Args[0]->getSuperClasses().back().first->getName() != "TypeArgument")
2166 if (Args.empty() || !isVariadicIdentifierArgument(Args[0]))
2187 if (Args.empty() || !isIdentifierArgument(Args[0]))
2213 if (Args.empty() || !keywordThisIsaIdentifierInArgument(Args[0]))
2730 Classes[0]->classifyAttrOnRoot(Attr);
3097 OS << " if (Name == \"" << Spellings[I].name() << "\" && "
3098 << "getSyntax() == AttributeCommonInfo::AS_" << Spellings[I].variety()
3099 << " && Scope == \"" << Spellings[I].nameSpace() << "\")\n"
3357 return '"' + DiagList[0] + " and " + DiagList[1] + '"';
3357 return '"' + DiagList[0] + " and " + DiagList[1] + '"';
tools/clang/utils/TableGen/ClangCommentCommandInfoEmitter.cpp 31 Record &Tag = *Tags[i];
65 Record &Tag = *Tags[i];
119 Record &Tag = *Tags[i];
tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp 49 DiagGroups[i]->getValueAsListOfDefs("SubGroups");
51 Mapping[SubGroups[j]].push_back(DiagGroups[i]);
51 Mapping[SubGroups[j]].push_back(DiagGroups[i]);
110 std::string Category = getDiagnosticCategory(Diags[i], ParentInfo);
195 GI.SubGroups.push_back(SubGroups[j]->getValueAsString("GroupName"));
829 return Visit(P->Pieces[0]);
858 RST[Start + I] += Separator + Lines[I];
858 RST[Start + I] += Separator + Lines[I];
859 std::string Empty(Lines[0].size(), ' ');
861 RST[I] += Separator + Empty;
865 RST[I] += "|";
918 makeRowSeparator(RST[I]);
964 if (P->OptionPrefixes[I])
965 Visit(P->OptionPrefixes[I]);
966 Visit(P->Options[I]);
1222 const Record &R = *Diags[i];
1599 const RecordIndexElement &R = Index[i];
tools/clang/utils/TableGen/ClangOpcodesEmitter.cpp 127 OS << "PC.read<" << Args[I]->getValueAsString("Name") << ">();\n";
184 OS << Args[I]->getValueAsString("Name") << " A" << I << ",";
192 OS << Args[I]->getValueAsString("Name");
263 OS << Args[I]->getValueAsString("Name") << " A" << I << ", ";
326 OS << Args[I]->getValueAsString("Name") << " A" << I << ",";
tools/clang/utils/TableGen/ClangSACheckersEmitter.cpp 196 sortedPackages[getPackageFullName(packages[i])] = packages[i];
196 sortedPackages[getPackageFullName(packages[i])] = packages[i];
tools/clang/utils/TableGen/MveEmitter.cpp 414 int MapValue = (*ParamNumberMap)[nparams++];
tools/clang/utils/TableGen/NeonEmitter.cpp 1230 Variables[Name] = Variable(Types[I], Name + VariablePostfix);
1232 RetVar = Variable(Types[0], "ret" + VariablePostfix);
1239 OS << "__ai " << Types[0].str() << " ";
1484 assert(RetVar.getType() == Types[0]);
1604 S += Values[I];
tools/dsymutil/CompileUnit.h 121 DIEInfo &getInfo(unsigned Idx) { return Info[Idx]; }
240 return ResolvedPaths[FileNum];
248 ResolvedPaths[FileNum] = Path;
tools/dsymutil/DebugMap.cpp 200 seq[index].reset(new dsymutil::DebugMapObject);
202 return *seq[index];
tools/dsymutil/DwarfLinker.cpp 563 StartOffset > ValidRelocs[NextValidReloc - 1].Offset);
567 uint64_t RelocOffset = ValidRelocs[NextValidReloc].Offset;
574 RelocOffset = ValidRelocs[++NextValidReloc].Offset;
579 const auto &ValidReloc = ValidRelocs[NextValidReloc++];
1397 BaseOffset > ValidRelocs[NextValidReloc - 1].Offset) &&
1404 ValidRelocs[NextValidReloc].Offset < BaseOffset)
1410 ValidRelocs[NextValidReloc].Offset >= BaseOffset &&
1411 ValidRelocs[NextValidReloc].Offset < EndOffset) {
1412 const auto &ValidReloc = ValidRelocs[NextValidReloc++];
2698 auto &LinkContext = ObjectContexts[i];
2742 auto &LinkContext = ObjectContexts[i];
2777 LinkContext.CompileUnits[0]->getOrigUnit().getAddressByteSize());
tools/dsymutil/DwarfStreamer.cpp 498 auto &Row = Rows[Idx];
tools/dsymutil/SymbolMap.cpp 45 const std::string &Translation = UnobfuscatedStrings[LineNumber];
tools/gold/gold-plugin.cpp 719 SymbolResolution &R = Resols[SymNum++];
1046 Files[Task].second = !SaveTemps;
1048 Files[Task].first, Task);
1082 cl::ParseCommandLineOptions(NumOpts, &options::extra[0]);
tools/lld/COFF/DLL.cpp 591 syms[i]->setLocation(addresses[base + i]);
591 syms[i]->setLocation(addresses[base + i]);
594 dllNames.push_back(make<StringChunk>(syms[0]->getDLLName()));
596 dir->lookupTab = lookups[base];
597 dir->addressTab = addresses[base];
631 dllNames.push_back(make<StringChunk>(syms[0]->getDLLName()));
656 syms[i]->setLocation(addresses[base + i]);
656 syms[i]->setLocation(addresses[base + i]);
663 dir->addressTab = addresses[base];
664 dir->nameTab = names[base];
tools/lld/COFF/DLL.h 48 uint64_t getDirRVA() { return dirs[0]->getRVA(); }
73 uint64_t getRVA() { return chunks[0]->getRVA(); }
tools/lld/COFF/Driver.cpp 1015 : toString(resourceObjFiles[1])) +
tools/lld/COFF/DriverUtils.cpp 63 if (sys::ExecuteAndWait(args[0], args) != 0)
tools/lld/COFF/ICF.cpp 110 return equalsConstant(chunks[begin], s);
111 return equalsVariable(chunks[begin], s);
118 chunks[i]->eqClass[(cnt + 1) % 2] = mid;
196 if (chunks[begin]->eqClass[cnt % 2] != chunks[i]->eqClass[cnt % 2])
196 if (chunks[begin]->eqClass[cnt % 2] != chunks[i]->eqClass[cnt % 2])
305 log("Selected " + chunks[begin]->getDebugName());
307 log(" Removed " + chunks[i]->getDebugName());
308 chunks[begin]->replace(chunks[i]);
308 chunks[begin]->replace(chunks[i]);
tools/lld/COFF/InputFiles.cpp 224 sparseChunks[i] = pendingComdat;
226 sparseChunks[i] = readSection(i, nullptr, "");
310 SectionChunk *parent = sparseChunks[parentIndex];
337 sparseChunks[sectionNumber] = c;
343 sparseChunks[sectionNumber] = nullptr;
354 SectionChunk *sc = sparseChunks[sectionNumber];
380 SectionChunk *sc = sparseChunks[sym.getSectionNumber()];
418 symbols[i] = createUndefined(coffSym);
420 symbols[i] = createUndefined(coffSym);
422 weakAliases.emplace_back(symbols[i], tagIndex);
425 symbols[i] = *optSym;
450 if (sparseChunks[sym.getSectionNumber()] == pendingComdat) {
457 symbols[i] = createRegular(sym);
463 checkAndSetWeakAlias(symtab, this, sym, symbols[idx]);
629 if (const coff_aux_section_definition *def = comdatDefs[sectionNumber]) {
630 comdatDefs[sectionNumber] = nullptr;
656 sparseChunks[sectionNumber] = c;
661 sparseChunks[sectionNumber] = nullptr;
668 if (sparseChunks[sectionNumber] == pendingComdat) {
671 comdatDefs[sectionNumber] = def;
906 comdat[i] = symtab->addComdat(this, saver.save(obj->getComdatTable()[i]));
923 sym = comdat[comdatIndex].first;
924 else if (comdat[comdatIndex].second)
tools/lld/COFF/InputFiles.h 151 return symbols[symbolIndex];
tools/lld/COFF/LTO.cpp 127 Symbol *sym = symBodies[symNum];
128 lto::SymbolResolution &r = resols[symNum];
158 files[task] = std::move(mb);
164 std::make_unique<raw_svector_ostream>(buf[task]));
181 saveBuffer(buf[0], config->ltoObjPath);
192 if (buf[i].empty())
196 saveBuffer(buf[i], config->outputFile + ".lto.obj");
198 saveBuffer(buf[i], config->outputFile + Twine(i) + ".lto.obj");
200 ret.emplace_back(buf[i].data(), buf[i].size());
200 ret.emplace_back(buf[i].data(), buf[i].size());
tools/lld/COFF/MapFile.cpp 79 raw_string_ostream os(str[i]);
86 ret[syms[i]] = std::move(str[i]);
tools/lld/COFF/PDB.cpp 1440 SmallString<64> exe = config->argv[0];
tools/lld/COFF/SymbolTable.cpp 168 llvm::raw_string_ostream os(symbolLocations[i++]);
345 undefDiags[it->second].files.push_back({file, symIndex});
tools/lld/COFF/Writer.cpp 87 return osidx == 0 ? nullptr : outputSections[osidx - 1];
408 SectionChunk *sc = dyn_cast_or_null<SectionChunk>(os->chunks[i]);
1455 symbolTable[i] = outputSymtab[i];
1913 uint32_t page = v[0].rva & mask;
1916 uint32_t p = v[j].rva & mask;
1919 relocSec->addChunk(make<BaserelChunk>(page, &v[i], &v[0] + j));
1919 relocSec->addChunk(make<BaserelChunk>(page, &v[i], &v[0] + j));
1925 relocSec->addChunk(make<BaserelChunk>(page, &v[i], &v[0] + j));
1925 relocSec->addChunk(make<BaserelChunk>(page, &v[i], &v[0] + j));
tools/lld/ELF/Arch/AMDGPU.cpp 49 uint32_t ret = getEFlags(objectFiles[0]);
tools/lld/ELF/CallGraphSort.cpp 134 clusters[to].weight += weight;
140 Cluster &toC = clusters[to];
160 while (leaders[v] != v) {
161 leaders[v] = leaders[leaders[v]];
161 leaders[v] = leaders[leaders[v]];
161 leaders[v] = leaders[leaders[v]];
162 v = leaders[v];
171 cs[tail2].next = intoIdx;
173 cs[tail1].next = fromIdx;
189 return clusters[a].getDensity() > clusters[b].getDensity();
189 return clusters[a].getDensity() > clusters[b].getDensity();
195 Cluster &c = clusters[l];
205 Cluster *predC = &clusters[predL];
212 leaders[l] = predL;
219 if (clusters[i].size > 0)
222 return clusters[a].getDensity() > clusters[b].getDensity();
222 return clusters[a].getDensity() > clusters[b].getDensity();
229 orderMap[sections[i]] = curOrder++;
230 i = clusters[i].next;
249 for (Symbol *sym : sections[i]->file->getSymbols())
252 if (sections[i] == d->section)
254 i = clusters[i].next;
tools/lld/ELF/Driver.cpp 1052 config->versionDefinitions[VER_NDX_LOCAL].patterns.push_back(
1056 config->versionDefinitions[VER_NDX_GLOBAL].patterns.push_back(
1739 parseFile(files[i]);
1876 mainPart = &partitions[0];
tools/lld/ELF/ICF.cpp 214 return equalsConstant(sections[begin], s);
215 return equalsVariable(sections[begin], s);
223 sections[i]->eqClass[next] = mid;
368 uint32_t eqClass = sections[begin]->eqClass[current];
370 if (eqClass != sections[i]->eqClass[current])
491 print("selected section " + toString(sections[begin]));
493 print(" removing identical section " + toString(sections[i]));
494 sections[begin]->replace(sections[i]);
494 sections[begin]->replace(sections[i]);
499 for (InputSection *isec : sections[i]->dependentSections)
tools/lld/ELF/InputFiles.cpp 147 existing = objectFiles[0];
149 existing = sharedFiles[0];
151 existing = bitcodeFiles[0];
510 if (this->sections[i] == &InputSection::discarded)
533 this->sections[i] = &InputSection::discarded;
541 this->sections[i] = &InputSection::discarded;
565 this->sections[i] = createInputSection(sec);
574 this->sections[secIndex] = &InputSection::discarded;
586 this->sections[i] = createInputSection(sec);
591 if (this->sections[i] == &InputSection::discarded)
601 linkSec = this->sections[sec.sh_link];
605 InputSection *isec = cast<InputSection>(this->sections[i]);
769 InputSectionBase *target = this->sections[idx];
848 this->sections[sec.sh_info] = target;
989 if (!this->symbols[i] && eSyms[i].getBinding() != STB_LOCAL)
990 this->symbols[i] =
1002 InputSectionBase *sec = this->sections[secIdx];
1021 this->symbols[i] = make<Undefined>(this, name, binding, stOther, type);
1023 this->symbols[i] = make<Undefined>(this, name, binding, stOther, type,
1026 this->symbols[i] =
1033 this->symbols[i]->resolve(Undefined{this, name, binding, stOther, type});
1034 this->symbols[i]->referenced = true;
1043 this->symbols[i]->resolve(
1054 this->symbols[i]->resolve(
1062 this->symbols[i]->resolve(
1131 verdefs[verdefIndex] = curVerdef;
1246 versyms[i] = versym[i].vs_index;
1280 uint32_t idx = versyms[i] & ~VERSYM_HIDDEN;
1286 if (!(versyms[i] & VERSYM_HIDDEN)) {
1306 reinterpret_cast<const Elf_Verdef *>(verdefs[idx])->getAux()->vda_name;
1538 this->symbols[i] = symtab->insert(CHECK(eSyms[i].getName(strtab), this));
tools/lld/ELF/LTO.cpp 173 lto::SymbolResolution &r = resols[i];
248 files[task] = std::move(mb);
255 std::make_unique<raw_svector_ostream>(buf[task]));
271 saveBuffer(buf[0], config->ltoObjPath);
285 saveBuffer(buf[0], config->ltoObjPath);
287 saveBuffer(buf[i], config->ltoObjPath + Twine(i));
291 saveBuffer(buf[0], config->outputFile + ".lto.o");
293 saveBuffer(buf[i], config->outputFile + Twine(i) + ".lto.o");
298 if (!buf[i].empty())
299 ret.push_back(createObjectFile(MemoryBufferRef(buf[i], "lto.tmp")));
tools/lld/ELF/LinkerScript.cpp 655 cast<InputSectionDescription>(sec->sectionCommands[0])
656 ->sectionBases[0]);
1140 ret[id]->add(sec);
1141 if (!phdrsCommands[id].flags.hasValue())
1142 ret[id]->p_flags |= sec->getPhdrFlags();
tools/lld/ELF/MapFile.cpp 88 raw_string_ostream os(str[i]);
98 ret[syms[i]] = std::move(str[i]);
tools/lld/ELF/MarkLive.cpp 139 EhSectionPiece &piece = eh.pieces[i];
tools/lld/ELF/OutputSections.cpp 226 in[i] = v[i].second;
315 fill(buf, sections.empty() ? size : sections[0]->outSecOff, filler);
318 InputSection *isec = sections[i];
328 end = buf + sections[i + 1]->outSecOff;
356 InputSection *first = v.empty() ? nullptr : v[0];
447 auto *isd = cast<InputSectionDescription>(sectionCommands[0]);
tools/lld/ELF/Relocations.cpp 832 canon->locs.push_back(undef.locs[0]);
tools/lld/ELF/ScriptLexer.cpp 45 StringRef tok = tokens[pos - 1];
56 StringRef tok = tokens[pos - 1];
62 StringRef tok = tokens[pos - 1];
222 std::vector<StringRef> v = tokenizeExpr(tokens[pos]);
238 return tokens[pos++];
270 if (tokens.size() >= pos + 2 && tokens[pos] == tok &&
271 tokens[pos + 1] == ":") {
297 if (encloses(mb.getBuffer(), tokens[pos - 1]))
tools/lld/ELF/ScriptParser.cpp 1348 config->versionDefinitions[VER_NDX_LOCAL].patterns.push_back(pat);
1350 config->versionDefinitions[VER_NDX_GLOBAL].patterns.push_back(pat);
1363 config->versionDefinitions[VER_NDX_LOCAL].patterns.push_back(pat);
tools/lld/ELF/SymbolTable.cpp 68 return symVector[symIndex];
100 Symbol *sym = symVector[it->second];
192 return ("version '" + config->versionDefinitions[ver].name + "'").str();
tools/lld/ELF/SyntheticSections.cpp 727 return gots[*f.mipsGotIndex];
1791 add(g[0].r_offset - offset);
1794 add(g[0].r_addend - addend);
1795 addend = g[0].r_addend;
1925 relrRelocs.push_back(Elf_Relr(offsets[i]));
1926 uint64_t base = offsets[i] + wordsize;
1934 uint64_t delta = offsets[i] - base;
2480 const Symbol *b = entries[i];
2635 cuIdxs[i] = cuIdx;
2662 uint32_t v = ent.cuIndexAndAttrs + cuIdxs[i];
2663 size_t &idx = map[shardId][ent.name];
2665 symbols[shardId][idx - 1].cuVector.push_back(v);
2665 symbols[shardId][idx - 1].cuVector.push_back(v);
2669 idx = symbols[shardId].size() + 1;
2670 symbols[shardId].push_back({ent.name, {v}, 0, 0});
2718 ObjFile<ELFT> *file = sections[i]->getFile<ELFT>();
2721 chunks[i].sec = sections[i];
2721 chunks[i].sec = sections[i];
2722 chunks[i].compilationUnits = readCuList(dwarf);
2723 chunks[i].addressAreas = readAddressAreas(dwarf, sections[i]);
2723 chunks[i].addressAreas = readAddressAreas(dwarf, sections[i]);
2724 nameAttrs[i] = readPubNamesAndTypes<ELFT>(
2726 chunks[i].compilationUnits);
2956 if (file.vernauxs[ss->verdefIndex] == 0)
2957 file.vernauxs[ss->verdefIndex] = ++SharedFile::vernauxNum + getVerDefNum();
2959 ss->versionId = file.vernauxs[ss->verdefIndex];
2975 if (f->vernauxs[i] == 0)
2978 reinterpret_cast<const typename ELFT::Verdef *>(f->verdefs[i]);
2980 {verdef->vd_hash, f->vernauxs[i],
3051 if (sec->pieces[i].live)
3062 if (sec->pieces[i].live)
3063 sec->pieces[i].outputOff = builder.getOffset(sec->getData(i));
3068 shards[i].write(buf + shardOffsets[i]);
3095 if (!sec->pieces[i].live)
3097 size_t shardId = getShardId(sec->pieces[i].hash);
3099 sec->pieces[i].outputOff = shards[shardId].add(sec->getData(i));
3099 sec->pieces[i].outputOff = shards[shardId].add(sec->getData(i));
3107 shards[i].finalizeInOrder();
3108 if (shards[i].getSize() > 0)
3111 off += shards[i].getSize();
3119 if (sec->pieces[i].live)
3120 sec->pieces[i].outputOff +=
3121 shardOffsets[getShardId(sec->pieces[i].hash)];
3273 selectedSections.push_back(executableSections[0]);
3276 InputSection *ex1 = findExidxSection(executableSections[prev]);
3277 InputSection *ex2 = findExidxSection(executableSections[i]);
3279 selectedSections.push_back(executableSections[i]);
3478 uint8_t ver = objectFiles[0]->abiVersion;
3571 partitions[i].nameStrTab = mainPart->dynStrTab->addString(partitions[i].name);
3571 partitions[i].nameStrTab = mainPart->dynStrTab->addString(partitions[i].name);
3577 write32(buf, mainPart->dynStrTab->getVA() + partitions[i].nameStrTab - va);
3578 write32(buf + 4, partitions[i].elfHeader->getVA() - (va + 4));
3581 i == partitions.size() - 1 ? in.partEnd : partitions[i + 1].elfHeader;
3582 write32(buf + 8, next->getVA() - partitions[i].elfHeader->getVA());
tools/lld/ELF/SyntheticSections.h 1138 unsigned getNumber() const { return this - &partitions[0] + 1; }
1145 return partitions[partition - 1];
tools/lld/ELF/Writer.cpp 716 InputSectionBase *isec = cast<InputSectionDescription>(*i)->sections[0];
1309 unorderedPos += unorderedSections[insPt]->getSize();
1356 auto *isd = cast<InputSectionDescription>(sec->sectionCommands[0]);
1541 *scriptSections[i] = sections[i];
1541 *scriptSections[i] = sections[i];
1789 partitions[sym->partition - 1].dynSymTab->addSymbol(sym);
1837 OutputSection *sec = outputSections[i];
2436 SectionOffset a = sections[i - 1];
2437 SectionOffset b = sections[i];
2690 hashFn(hashes.data() + i * hashBuf.size(), chunks[i]);
tools/lld/include/lld/Core/File.h 168 return _v[idx];
tools/lld/lib/Core/Resolver.cpp 55 StringRef undefName = _undefines[i];
61 _undefines[i] = "";
185 if (FileNode *node = dyn_cast<FileNode>(inputs[i].get()))
195 if (GroupEnd *group = dyn_cast<GroupEnd>(inputs[index].get())) {
207 return cast<FileNode>(inputs[index++].get())->getFile();
tools/lld/lib/ReaderWriter/MachO/CompactUnwindPass.cpp 153 personalities[i]);
166 uint8_t *indexData = &_contents[_topLevelIndexOffset];
171 pages[i].entries[0].rangeStart);
177 for (auto &entry : pages[i].entries)
183 auto &finalEntry = pages[pages.size() - 1].entries.back();
224 write32(&_contents[curPageOffset], 2, _isBig);
226 write16(&_contents[curPageOffset + 4], headerSize, _isBig);
227 write16(&_contents[curPageOffset + 6], page.entries.size(), _isBig);
tools/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp 176 FileNode *node = dyn_cast<FileNode>(nodes[i].get());
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp 672 Section *normSect = &file.sections[si->normalizedSectionIndex];
714 Segment *normSeg = &file.segments[sgi->normalizedSegmentIndex];
718 Section *normSect = &file.sections[si->normalizedSectionIndex];
1172 Section &normSect = file.sections[si->normalizedSectionIndex];
1316 Section &normSect = file.sections[si->normalizedSectionIndex];
1514 file.sections[sectInfo->normalizedSectionIndex].content;
1526 file.sections[sectInfo->normalizedSectionIndex].content = newContent;
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp 62 return seq[index];
74 return seq[index];
87 return seq[index];
100 return seq[index];
115 return seq[index];
tools/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp 522 return seq._atoms[index].get();
566 return seq[index];
1377 const File *file = createdFiles[0];
tools/lld/tools/lld/lld.cpp 119 if (v.size() > 1 && v[1] == StringRef("-flavor")) {
122 Flavor f = getFlavor(v[2]);
124 die("Unknown flavor: " + StringRef(v[2]));
130 StringRef arg0 = path::filename(v[0]);
tools/lld/unittests/DriverTests/DarwinLdDriverTest.cpp 35 Node &node = *_ctx.getNodes()[index];
tools/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp 273 const Section& text = f->sections[0];
299 const Section& cstring = f->sections[1];
314 const Symbol& strLabel = f->localSymbols[0];
319 const Symbol& mainLabel = f->globalSymbols[0];
326 const Symbol& printfLabel = f->undefinedSymbols[0];
398 const Section& text = f->sections[0];
434 const Section& cstring = f->sections[1];
450 const Symbol& mainLabel = f->globalSymbols[0];
457 const Symbol& printfLabel = f->undefinedSymbols[0];
530 const Section& text = f->sections[0];
575 const Section& cstring = f->sections[1];
591 const Symbol& mainLabel = f->globalSymbols[0];
598 const Symbol& printfLabel = f->undefinedSymbols[0];
674 const Section& text = f->sections[0];
718 const Section& cstring = f->sections[1];
734 const Symbol& mainLabel = f->globalSymbols[0];
741 const Symbol& printfLabel = f->undefinedSymbols[0];
tools/lld/unittests/MachOTests/MachONormalizedFileBinaryWriterTests.cpp 165 const Symbol& barUndef = f2->undefinedSymbols[0];
169 const Symbol& tbarUndef = f2->undefinedSymbols[1];
175 const Section& text = f2->sections[0];
277 const Symbol& barUndef = f2->undefinedSymbols[0];
281 const Symbol& tbarUndef = f2->undefinedSymbols[1];
287 const Section& text = f2->sections[0];
395 const Symbol& fooDef = f2->globalSymbols[0];
400 const Symbol& foo2Def = f2->globalSymbols[1];
407 const Symbol& barUndef = f2->undefinedSymbols[0];
413 const Section& text = f2->sections[0];
552 const Symbol& fooDef = f2->globalSymbols[0];
557 const Symbol& foo2Def = f2->globalSymbols[1];
564 const Symbol& barUndef = f2->undefinedSymbols[0];
570 const Section& text = f2->sections[0];
tools/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp 181 const Symbol& sym = f->globalSymbols[0];
210 const Section& sect = f->sections[0];
281 const Section& sect1 = f->sections[0];
313 const Section& sect2 = f->sections[1];
326 const Symbol& sym1 = f->globalSymbols[0];
334 const Symbol& sym2 = f->localSymbols[0];
342 const Symbol& sym3 = f->undefinedSymbols[0];
411 const Section& sect1 = f->sections[0];
450 const Section& sect2 = f->sections[1];
463 const Symbol& sym1 = f->globalSymbols[0];
471 const Symbol& sym2 = f->undefinedSymbols[0];
539 const Section& sect1 = f->sections[0];
578 const Section& sect2 = f->sections[1];
591 const Symbol& sym1 = f->globalSymbols[0];
599 const Symbol& sym2 = f->undefinedSymbols[0];
679 const Section& sect1 = f->sections[0];
734 const Section& sect2 = f->sections[1];
747 const Symbol& sym1 = f->globalSymbols[0];
755 const Symbol& sym2 = f->undefinedSymbols[0];
tools/lld/wasm/InputFiles.cpp 274 tableEntries[functionIndex] = offset + index;
398 functions[sym.Info.ElementIndex - wasmObj->getNumImportedFunctions()];
406 InputSegment *seg = segments[sym.Info.DataRef.Segment];
417 globals[sym.Info.ElementIndex - wasmObj->getNumImportedGlobals()];
429 events[sym.Info.ElementIndex - wasmObj->getNumImportedEvents()];
tools/lld/wasm/LTO.cpp 97 lto::SymbolResolution &r = resols[symNum];
135 files[task] = std::move(mb);
141 std::make_unique<raw_svector_ostream>(buf[task]));
150 if (buf[i].empty())
154 saveBuffer(buf[i], config->outputFile + ".lto.o");
156 saveBuffer(buf[i], config->outputFile + Twine(i) + ".lto.o");
158 ret.emplace_back(buf[i].data(), buf[i].size());
158 ret.emplace_back(buf[i].data(), buf[i].size());
tools/lld/wasm/Relocations.cpp 64 file->typeMap[reloc.Index] =
tools/lld/wasm/SymbolTable.cpp 87 return symVector[it->second];
92 symVector[it->second] = sym;
107 return {symVector[symIndex], false};
712 cast<FunctionSymbol>(variants[0]),
713 cast<FunctionSymbol>(variants[1]), true);
tools/lld/wasm/Writer.cpp 149 OutputSection *sec = outputSections[i];
576 file->typeMap[i] = out.typeSec->registerType(types[i]);
701 segments[i]->index = i;
tools/lldb/include/lldb/Core/FileSpecList.h 180 m_files[idx] = file;
tools/lldb/include/lldb/Core/IOHandler.h 555 m_stack[num_io_handlers - 1]->GetType() == top_type &&
556 m_stack[num_io_handlers - 2]->GetType() == second_top_type);
tools/lldb/include/lldb/Core/ModuleSpec.h 346 ModuleSpec &GetModuleSpecRefAtIndex(size_t i) { return m_specs[i]; }
tools/lldb/include/lldb/DataFormatters/FormattersContainer.h 134 return m_map[index].second;
142 return m_map[index].first;
tools/lldb/include/lldb/Expression/ExpressionVariable.h 130 var_sp = m_variables[index];
149 if (m_variables[index].get() == var_sp.get())
tools/lldb/include/lldb/Interpreter/OptionValueArray.h 99 m_values[idx] = value_sp;
tools/lldb/include/lldb/Interpreter/OptionValueProperties.h 206 return ((idx < m_properties.size()) ? &m_properties[idx] : nullptr);
tools/lldb/include/lldb/Symbol/SymbolContext.h 459 SymbolContext &operator[](size_t idx) { return m_symbol_contexts[idx]; }
tools/lldb/include/lldb/Symbol/Type.h 326 type_sp = m_content[idx];
513 enum_member = m_content[idx];
tools/lldb/include/lldb/Target/Platform.h 936 platform_sp = m_platforms[idx];
960 if (m_platforms[idx].get() == platform_sp.get()) {
961 m_selected_platform_sp = m_platforms[idx];
tools/lldb/include/lldb/Target/Process.h 439 ? m_restarted_reasons[idx].c_str()
tools/lldb/include/lldb/Target/Target.h 1351 m_stats_storage[key] += 1;
tools/lldb/include/lldb/Utility/ProcessInfo.h 169 return ((idx < m_infos.size()) ? m_infos[idx].GetNameAsStringRef() : "");
173 return ((idx < m_infos.size()) ? m_infos[idx].GetProcessID() : 0);
178 info = m_infos[idx];
tools/lldb/include/lldb/Utility/RangeMap.h 483 Entry &GetEntryRef(size_t i) { return m_entries[i]; }
tools/lldb/include/lldb/Utility/StreamTee.h 95 stream_sp = m_streams[idx];
106 m_streams[idx] = stream_sp;
tools/lldb/include/lldb/Utility/StringList.h 67 return m_strings[idx];
tools/lldb/include/lldb/Utility/StructuredData.h 184 return m_items[idx];
tools/lldb/source/API/SBBreakpoint.cpp 805 lldb::break_id_t bp_id = m_break_ids[idx];
tools/lldb/source/API/SBMemoryRegionInfoList.cpp 55 region_info = m_regions[index];
tools/lldb/source/API/SBModule.cpp 352 sc.symbol = symtab->SymbolAtIndex(matching_symbol_indexes[i]);
tools/lldb/source/API/SBQueue.cpp 153 ThreadSP thread_sp = m_threads[idx].lock();
178 result.SetQueueItem(m_pending_items[idx]);
tools/lldb/source/API/SBThread.cpp 946 abort_other_plans, &step_over_until_addrs[0],
tools/lldb/source/API/SBValueList.cpp 45 return m_values[index];
tools/lldb/source/Breakpoint/Breakpoint.cpp 782 old_break_locs.FindByIDPair(GetID(), old_id_vec[idx]);
784 new_break_locs.FindByIDPair(GetID(), new_id_vec[idx]);
786 old_sc_map.erase(old_id_vec[idx]);
787 new_sc_map.erase(new_id_vec[idx]);
tools/lldb/source/Breakpoint/BreakpointLocationCollection.cpp 105 stop_sp = m_break_loc_collection[i];
tools/lldb/source/Breakpoint/BreakpointLocationList.cpp 140 bp_loc_sp = m_locations[i];
246 if (m_locations[idx].get() == bp_loc_sp.get()) {
257 m_address_to_location.erase(m_locations[idx]->GetAddress());
267 BreakpointLocation *bp_loc = m_locations[idx].get();
tools/lldb/source/Breakpoint/BreakpointResolverFileRegex.cpp 115 cu->ResolveSymbolContext(cu_file_spec, line_matches[i], search_inlines,
tools/lldb/source/Breakpoint/BreakpointResolverName.cpp 181 bkpt, names[0].c_str(), name_masks[0], language,
181 bkpt, names[0].c_str(), name_masks[0], language,
184 resolver->AddNameLookup(ConstString(names[i]), name_masks[i]);
184 resolver->AddNameLookup(ConstString(names[i]), name_masks[i]);
411 s->Printf("name = '%s'", m_lookups[0].GetName().GetCString());
416 m_lookups[i].GetName().GetCString());
tools/lldb/source/Commands/CommandObjectApropos.cpp 84 properties[i]->DumpDescription(
tools/lldb/source/Commands/CommandObjectBreakpoint.cpp 1118 const int short_option = m_getopt_table[option_idx].val;
1251 const int short_option = m_getopt_table[option_idx].val;
1326 Breakpoint *bp = breakpoints.FindBreakpointByID(BreakIDs[i]).get();
1398 const int short_option = m_getopt_table[option_idx].val;
2035 const int short_option = m_getopt_table[option_idx].val;
2153 const int short_option = m_getopt_table[option_idx].val;
tools/lldb/source/Commands/CommandObjectBreakpointCommand.cpp 506 const int short_option = m_getopt_table[option_idx].val;
tools/lldb/source/Commands/CommandObjectCommands.cpp 65 const int short_option = m_getopt_table[option_idx].val;
238 const int short_option = m_getopt_table[option_idx].val;
1149 const int short_option = m_getopt_table[option_idx].val;
1403 const int short_option = m_getopt_table[option_idx].val;
1537 const int short_option = m_getopt_table[option_idx].val;
tools/lldb/source/Commands/CommandObjectDisassemble.cpp 51 const int short_option = m_getopt_table[option_idx].val;
tools/lldb/source/Commands/CommandObjectFrame.cpp 70 const int short_option = m_getopt_table[option_idx].val;
247 const int short_option = m_getopt_table[option_idx].val;
749 const int short_option = m_getopt_table[option_idx].val;
tools/lldb/source/Commands/CommandObjectHelp.h 42 const int short_option = m_getopt_table[option_idx].val;
tools/lldb/source/Commands/CommandObjectLog.cpp 96 const int short_option = m_getopt_table[option_idx].val;
tools/lldb/source/Commands/CommandObjectMemory.cpp 1169 bad_char_heuristic[bcu_idx] = buffer_size - idx - 1;
1178 s += bad_char_heuristic[iterator[s + buffer_size - 1]];
tools/lldb/source/Commands/CommandObjectPlatform.cpp 620 char short_option = (char)m_getopt_table[option_idx].val;
706 char short_option = (char)m_getopt_table[option_idx].val;
1163 const int short_option = m_getopt_table[option_idx].val;
1400 char short_option = (char)m_getopt_table[option_idx].val;
1442 int opt_arg_pos = opt_element_vector[opt_element_index].opt_arg_pos;
1443 int opt_defs_index = opt_element_vector[opt_element_index].opt_defs_index;
tools/lldb/source/Commands/CommandObjectProcess.cpp 276 const int short_option = m_getopt_table[option_idx].val;
326 int opt_arg_pos = opt_element_vector[opt_element_index].opt_arg_pos;
327 int opt_defs_index = opt_element_vector[opt_element_index].opt_defs_index;
524 const int short_option = m_getopt_table[option_idx].val;
664 const int short_option = m_getopt_table[option_idx].val;
759 const int short_option = m_getopt_table[option_idx].val;
878 const int short_option = m_getopt_table[option_idx].val;
1252 const int short_option = m_getopt_table[option_idx].val;
tools/lldb/source/Commands/CommandObjectReproducer.cpp 182 const int short_option = m_getopt_table[option_idx].val;
tools/lldb/source/Commands/CommandObjectSettings.cpp 97 const int short_option = m_getopt_table[option_idx].val;
343 const int short_option = m_getopt_table[option_idx].val;
444 const int short_option = m_getopt_table[option_idx].val;
tools/lldb/source/Commands/CommandObjectSource.cpp 581 FileSpec module_file_spec(m_options.modules[i]);
587 m_options.modules[i].c_str());
890 FileSpec module_file_spec(m_options.modules[i]);
913 FileSpec module_file_spec(m_options.modules[i]);
1170 FileSpec module_file_spec(m_options.modules[i]);
tools/lldb/source/Commands/CommandObjectTarget.cpp 665 target_sp = delete_target_list[idx];
1561 Symbol *symbol = symtab->SymbolAtIndex(match_indexes[i]);
1970 const int short_option = m_getopt_table[option_idx].val;
2908 const int short_option = m_getopt_table[option_idx].val;
3104 const char format_char = m_options.m_format_array[i].first;
3105 uint32_t width = m_options.m_format_array[i].second;
3263 const int short_option = m_getopt_table[option_idx].val;
3587 const int short_option = m_getopt_table[option_idx].val;
4427 const int short_option = m_getopt_table[option_idx].val;
tools/lldb/source/Commands/CommandObjectThread.cpp 259 const int short_option = m_getopt_table[option_idx].val;
1003 const int short_option = m_getopt_table[option_idx].val;
1407 const int short_option = m_getopt_table[option_idx].val;
1538 const int short_option = m_getopt_table[option_idx].val;
1711 const int short_option = m_getopt_table[option_idx].val;
1848 const int short_option = m_getopt_table[option_idx].val;
tools/lldb/source/Commands/CommandObjectType.cpp 296 const int short_option = m_getopt_table[option_idx].val;
723 const int short_option = m_getopt_table[option_idx].val;
858 const int short_option = m_getopt_table[option_idx].val;
971 const int short_option = m_getopt_table[option_idx].val;
1179 const int short_option = m_getopt_table[option_idx].val;
1722 const int short_option = m_getopt_table[option_idx].val;
1818 const int short_option = m_getopt_table[option_idx].val;
1985 const int short_option = m_getopt_table[option_idx].val;
2392 const int short_option = m_getopt_table[option_idx].val;
tools/lldb/source/Commands/CommandObjectWatchpoint.cpp 110 llvm::StringRef Arg = StrRefArgs[i];
122 if (i < (size - 1) && StrRefArgs[i + 1] == Minus) {
182 const int short_option = m_getopt_table[option_idx].val;
263 Watchpoint *wp = watchpoints.FindByID(wp_ids[i]).get();
336 if (target->EnableWatchpointByID(wp_ids[i]))
409 if (target->DisableWatchpointByID(wp_ids[i]))
483 if (target->RemoveWatchpointByID(wp_ids[i]))
528 const int short_option = m_getopt_table[option_idx].val;
594 if (target->IgnoreWatchpointByID(wp_ids[i], m_options.m_ignore_count))
648 const int short_option = m_getopt_table[option_idx].val;
713 WatchpointSP wp_sp = watchpoints.FindByID(wp_ids[i]);
tools/lldb/source/Commands/CommandObjectWatchpointCommand.cpp 323 const int short_option = m_getopt_table[option_idx].val;
tools/lldb/source/Core/Address.cpp 167 if (ReadBytes(exe_scope, address, &buf[0], buf.size()) == buf.size()) {
tools/lldb/source/Core/AddressResolver.cpp 42 return m_address_ranges[idx];
tools/lldb/source/Core/Disassembler.cpp 588 previous_line.line = previous_lines[i];
627 SourceLine ln = source_lines_to_display.lines[idx];
1162 if (m_instructions[i]->GetAddress() == address) {
tools/lldb/source/Core/IOHandler.cpp 1216 if (m_subwindows[i]->GetCanBeActive()) {
1225 return m_subwindows[m_curr_active_window_idx];
1264 if (m_subwindows[idx]->GetCanBeActive()) {
1272 if (m_subwindows[idx]->GetCanBeActive()) {
1281 if (m_subwindows[idx]->GetCanBeActive()) {
1444 Menu *submenu = submenus[i].get();
1532 Menu *menu = submenus[i].get();
1559 submenus[i]->DrawMenuTitle(window, is_selected);
1585 run_menu_sp = submenus[selected_idx];
1596 run_menu_sp = submenus[m_selected];
1607 run_menu_sp = submenus[m_selected];
1615 if (submenus[i]->GetKeyValue() == key) {
1617 run_menu_sp = submenus[i];
1652 if (m_submenus[m_selected]->GetType() == Type::Separator)
1667 if (m_submenus[m_selected]->GetType() == Type::Separator)
1678 if (submenus[selected_idx]->Action() == MenuActionResult::Quit)
1692 Menu *menu = submenus[i].get();
2036 TreeItem &operator[](size_t i) { return m_children[i]; }
2900 const bool last_child = row.parent && &rows[rows.size() - 1] == &row;
tools/lldb/source/Core/Module.cpp 123 return modules[idx];
861 sc.symbol = symtab->SymbolAtIndex(symbol_indexes[i]);
883 sc.symbol = symtab->SymbolAtIndex(symbol_indexes[i]);
1303 sc.symbol = symtab->SymbolAtIndex(symbol_indexes[i]);
tools/lldb/source/Core/ModuleList.cpp 162 ModuleSP module_sp(m_modules[idx]);
tools/lldb/source/Core/PluginManager.cpp 259 return instances[idx].create_callback;
390 return instances[idx].create_callback;
475 return instances[idx].create_callback;
559 return instances[idx].create_callback;
639 return instances[idx].create_callback;
724 return instances[idx].create_callback;
803 return instances[idx].create_callback;
888 return instances[idx].create_callback;
897 return instances[idx].command_callback;
906 return instances[idx].precondition_callback;
986 return instances[idx].create_callback;
1077 return instances[idx].create_callback;
1086 return instances[idx].create_memory_callback;
1096 return instances[idx].get_module_specifications;
1213 return instances[idx].create_callback;
1239 return instances[idx].get_module_specifications;
1292 return instances[idx].name.GetCString();
1300 return instances[idx].description.c_str();
1325 return instances[idx].create_callback;
1408 return instances[idx].name.GetCString();
1416 return instances[idx].description.c_str();
1441 return instances[idx].create_callback;
1526 return instances[idx].create_callback;
1623 return instances[idx].create_callback;
1651 return instances[idx].filter_callback;
1722 return instances[idx].create_callback;
1802 return instances[idx].create_callback;
1882 return instances[idx].create_callback;
1962 return instances[idx].create_callback;
2051 return instances[idx].get_type_callback;
2061 return instances[idx].create_callback;
2146 return instances[idx].create_callback;
2171 all.bitvector |= instances[i].supported_languages_for_types.bitvector;
2180 all.bitvector |= instances[i].supported_languages_for_expressions.bitvector;
2244 return instances[idx].create_callback;
2268 all.bitvector |= instances[i].supported_languages.bitvector;
tools/lldb/source/Core/SourceManager.cpp 452 return m_offsets[line - 1]; // yes we want "line - 1" in the index
620 if (!m_offsets.empty() && m_offsets[0] == UINT32_MAX)
tools/lldb/source/Core/Value.cpp 702 return &(m_values[idx]);
tools/lldb/source/Core/ValueObjectList.cpp 43 valobj_sp = m_value_objects[idx];
50 valobj_sp = m_value_objects[idx];
60 m_value_objects[idx] = valobj_sp;
tools/lldb/source/DataFormatters/TypeCategory.cpp 86 return m_languages[idx];
tools/lldb/source/DataFormatters/TypeSynthetic.cpp 47 m_expression_paths[i] = path;
49 m_expression_paths[i] = std::string(".") + path;
tools/lldb/source/Expression/DWARFExpression.cpp 1062 stack[i].Dump(&new_value);
1436 stack.push_back(stack[stack.size() - 2]);
1446 stack.push_back(stack[stack.size() - 1 - pick_idx]);
1468 stack.back() = stack[stack.size() - 2];
1469 stack[stack.size() - 2] = tmp;
1487 Value old_top = stack[last_idx];
1488 stack[last_idx] = stack[last_idx - 1];
1488 stack[last_idx] = stack[last_idx - 1];
1489 stack[last_idx - 1] = stack[last_idx - 2];
1489 stack[last_idx - 1] = stack[last_idx - 2];
1490 stack[last_idx - 2] = old_top;
2649 stack[i].Dump(&new_value);
tools/lldb/source/Expression/FunctionCaller.cpp 166 uint64_t first_offset = m_member_offsets[0];
186 uint64_t offset = m_member_offsets[i + 1]; // Clang sizes are in bytes.
tools/lldb/source/Expression/IRExecutionUnit.cpp 671 ConstString alternate_mangled_name = alternates[i];
688 return param_and_qual_matches[0]; // It is assumed that there will be only
691 return param_matches[0]; // Return one of them as a best match
tools/lldb/source/Host/common/Editline.cpp 337 line += CountRowsForLine(m_input_lines[index]);
344 line += CountRowsForLine(m_input_lines[index]);
374 ((m_input_lines[m_input_lines.size() - 1].length() + GetPromptWidth()) %
392 m_input_lines[index].c_str());
407 m_input_lines[m_current_line_index] =
567 m_input_lines[m_current_line_index] = current_line;
673 el_winsertstr(m_editline, m_input_lines[m_current_line_index + 1].c_str());
703 auto priorLine = m_input_lines[m_current_line_index];
705 m_input_lines[m_current_line_index] =
706 priorLine + m_input_lines[m_current_line_index];
738 CountRowsForLine(m_input_lines[m_current_line_index]), 1);
821 m_input_lines[m_current_line_index] = currentLine;
837 el_winsertstr(m_editline, m_input_lines[m_current_line_index].c_str());
1353 line = SplitLines(input)[0];
tools/lldb/source/Host/common/NativeProcessProtocol.cpp 90 return m_threads[idx].get();
tools/lldb/source/Host/common/OptionParser.cpp 46 &opts[0], longindex);
tools/lldb/source/Host/common/SocketAddress.cpp 222 *this = addresses[0];
tools/lldb/source/Host/common/TaskPool.cpp 122 futures[i].wait();
tools/lldb/source/Interpreter/CommandObject.cpp 345 return &(m_arguments[idx]);
422 if (opt_set_mask & cmd_arg_entry[i].arg_opt_set_association)
423 ret_val.push_back(cmd_arg_entry[i]);
439 ? m_arguments[i]
440 : OptSetFiltered(opt_set_mask, m_arguments[i]);
443 if ((num_alternatives == 2) && IsPairType(arg_entry[0].arg_repetition)) {
444 const char *first_name = GetArgumentName(arg_entry[0].arg_type);
445 const char *second_name = GetArgumentName(arg_entry[1].arg_type);
446 switch (arg_entry[0].arg_repetition) {
485 names.Printf("%s", GetArgumentName(arg_entry[j].arg_type));
489 switch (arg_entry[0].arg_repetition) {
tools/lldb/source/Interpreter/OptionValueArray.cpp 48 m_values[i]->DumpValue(exe_ctx, strm, dump_mask | extra_dump_options);
61 m_values[i]->DumpValue(exe_ctx, strm, (dump_mask & (~eDumpOptionType)) |
266 m_values[idx] = value_sp;
tools/lldb/source/Interpreter/OptionValueProperties.cpp 40 if (!m_properties[i].IsGlobal()) {
41 lldb::OptionValueSP new_value_sp(m_properties[i].GetValue()->DeepCopy());
42 m_properties[i].SetOptionValue(new_value_sp);
523 m_properties[i].GetValue()->Clear();
tools/lldb/source/Interpreter/Options.cpp 120 if (IsASubset(GetRequiredOptions()[i], m_seen_options)) {
124 OptionsSetDiff(m_seen_options, GetRequiredOptions()[i],
128 if (IsASubset(remaining_options, GetOptionalOptions()[i]))
191 m_required_options[j].insert(def.short_option);
193 m_optional_options[j].insert(def.short_option);
215 m_getopt_table[i].definition = &defs[i];
216 m_getopt_table[i].flag = nullptr;
217 m_getopt_table[i].val = short_opt;
222 m_getopt_table[i].val = 0;
232 m_getopt_table[pos->second].definition->long_option,
240 m_getopt_table[pos->second].definition->long_option,
635 OptionsSetUnion(GetRequiredOptions()[i], GetOptionalOptions()[i],
635 OptionsSetUnion(GetRequiredOptions()[i], GetOptionalOptions()[i],
658 size_t opt_pos = static_cast<size_t>(opt_element_vector[i].opt_pos);
659 size_t opt_arg_pos = static_cast<size_t>(opt_element_vector[i].opt_arg_pos);
660 int opt_defs_index = opt_element_vector[i].opt_defs_index;
746 int opt_defs_index = opt_element_vector[opt_element_index].opt_defs_index;
778 int cur_defs_index = opt_element_vector[i].opt_defs_index;
786 int cur_arg_pos = opt_element_vector[i].opt_arg_pos;
822 OptionDefinition opt_def = m_option_defs[i];
824 return m_option_infos[i].option_group;
853 error = m_option_infos[option_idx].option_group->SetOptionValue(
854 m_option_infos[option_idx].option_index, option_value,
1152 (strcmp(dummy_vec[OptionParser::GetOptionIndex() - 1], "--") == 0)) {
1154 dummy_vec[OptionParser::GetOptionIndex() - 1], args);
1167 FindOriginalIndex(dummy_vec[OptionParser::GetOptionIndex() - 1],
1210 FindOriginalIndex(dummy_vec[OptionParser::GetOptionIndex() - 1],
1224 FindOriginalIndex(dummy_vec[OptionParser::GetOptionIndex() - 2],
1230 FindOriginalIndex(dummy_vec[OptionParser::GetOptionIndex() - 1],
1239 FindOriginalIndex(dummy_vec[OptionParser::GetOptionIndex() - 2],
1241 FindOriginalIndex(dummy_vec[OptionParser::GetOptionIndex() - 1],
1246 FindOriginalIndex(dummy_vec[OptionParser::GetOptionIndex() - 2],
1248 FindOriginalIndex(dummy_vec[OptionParser::GetOptionIndex() - 1],
1256 FindOriginalIndex(dummy_vec[OptionParser::GetOptionIndex() - 1],
1264 FindOriginalIndex(dummy_vec[OptionParser::GetOptionIndex() - 1],
tools/lldb/source/Plugins/ABI/SysV-x86_64/ABISysV_x86_64.cpp 833 fp_bytes = aggregate_field_offsets[0];
834 integer_bytes = aggregate_field_offsets[0];
846 CompilerType field_compiler_type = aggregate_compiler_types[idx];
848 uint32_t field_byte_offset = aggregate_field_offsets[idx];
907 aggregate_compiler_types[idx + 1];
924 aggregate_compiler_types[idx - 1];
tools/lldb/source/Plugins/ABI/Windows-x86_64/ABIWindows_x86_64.cpp 1641 used_bytes = aggregate_field_offsets[0];
1649 CompilerType field_compiler_type = aggregate_compiler_types[idx];
1651 uint32_t field_byte_offset = aggregate_field_offsets[idx];
tools/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp 1194 KextImageInfo &image_info = m_known_kexts[old_kext];
1213 if (m_known_kexts[old_kext] == kext_summaries[new_kext]) {
1213 if (m_known_kexts[old_kext] == kext_summaries[new_kext]) {
1227 if (kext_summaries[new_kext].GetUUID().IsValid() &&
1229 kext_summaries[new_kext].GetUUID() == m_kernel.GetUUID()) {
1280 KextImageInfo &image_info = kext_summaries[new_kext];
1285 kext_summaries[new_kext].GetName(),
1286 kext_summaries[new_kext].GetUUID()));
1306 kext_summaries[new_kext].PutToLog(log);
1318 KextImageInfo &image_info = m_known_kexts[old_kext];
1391 image_infos[i].SetName((const char *)name_data);
1393 image_infos[i].SetUUID(uuid);
1394 image_infos[i].SetLoadAddress(extractor.GetU64(&offset));
1395 image_infos[i].SetSize(extractor.GetU64(&offset));
tools/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp 242 section_list->FindSectionByName(info.segments[i].name));
244 if (info.segments[i].maxprot == 0) {
248 info.segments[i].vmaddr + info.slide;
273 const uint32_t seg_idx = inaccessible_segment_indexes[i];
275 section_list->FindSectionByName(info.segments[seg_idx].name));
281 const lldb::addr_t vmaddr = info.segments[seg_idx].vmaddr;
282 const lldb::addr_t vmsize = info.segments[seg_idx].vmsize;
314 section_list->FindSectionByName(info.segments[i].name));
317 info.segments[i].vmaddr + info.slide;
325 info.segments[i].name.AsCString("<invalid>"),
366 image_infos[i].address =
368 image_infos[i].mod_date =
370 image_infos[i].file_spec.SetFile(
376 image_infos[i].header.magic =
378 image_infos[i].header.cputype =
380 image_infos[i].header.cpusubtype =
382 image_infos[i].header.filetype =
390 image_infos[i].os_type = llvm::Triple::MacOSX;
392 image_infos[i].os_type = llvm::Triple::IOS;
394 image_infos[i].os_type = llvm::Triple::TvOS;
396 image_infos[i].os_type = llvm::Triple::WatchOS;
400 image_infos[i].os_type = llvm::Triple::IOS;
401 image_infos[i].os_env = llvm::Triple::MacABI;
405 image_infos[i].min_version_os_sdk =
415 image_infos[i].header.flags =
418 image_infos[i].header.flags = 0;
421 image_infos[i].header.ncmds =
424 image_infos[i].header.ncmds = 0;
427 image_infos[i].header.sizeofcmds =
430 image_infos[i].header.sizeofcmds = 0;
473 image_infos[i].segments.push_back(segment);
476 image_infos[i].uuid.SetFromOptionalStringRef(
486 const size_t num_sections = image_infos[i].segments.size();
490 if ((image_infos[i].segments[k].fileoff == 0 &&
490 if ((image_infos[i].segments[k].fileoff == 0 &&
491 image_infos[i].segments[k].filesize > 0) ||
491 image_infos[i].segments[k].filesize > 0) ||
492 (image_infos[i].segments[k].name == "__TEXT")) {
492 (image_infos[i].segments[k].name == "__TEXT")) {
493 image_infos[i].slide =
494 image_infos[i].address - image_infos[i].segments[k].vmaddr;
494 image_infos[i].address - image_infos[i].segments[k].vmaddr;
494 image_infos[i].address - image_infos[i].segments[k].vmaddr;
515 if (image_infos[i].header.filetype == llvm::MachO::MH_DYLINKER) {
526 if (image_infos[i].os_type == llvm::Triple::OSType::UnknownOS) {
527 if (image_infos[i].file_spec.GetFilename() != g_dyld_sim_filename) {
532 if (image_infos[i].os_type != llvm::Triple::OSType::IOS &&
533 image_infos[i].os_type != llvm::Triple::TvOS &&
534 image_infos[i].os_type != llvm::Triple::WatchOS) {
544 } else if (image_infos[i].header.filetype == llvm::MachO::MH_EXECUTE) {
551 ModuleSP exe_module_sp(FindTargetModuleForImageInfo(image_infos[exe_idx],
557 UpdateImageLoadAddress(exe_module_sp.get(), image_infos[exe_idx]);
566 ModuleSP dyld_sp = FindTargetModuleForImageInfo(image_infos[dyld_idx],
572 UpdateImageLoadAddress(dyld_sp.get(), image_infos[dyld_idx]);
614 image_infos[idx].address);
615 image_infos[idx].PutToLog(log);
618 m_dyld_image_infos.push_back(image_infos[idx]);
621 FindTargetModuleForImageInfo(image_infos[idx], true, nullptr));
633 image_infos[idx].GetArchitecture());
646 image_infos[idx].file_spec, image_infos[idx].address);
646 image_infos[idx].file_spec, image_infos[idx].address);
653 image_infos[idx]);
656 image_infos[idx].load_stop_id = m_process->GetStopID();
669 if (UpdateImageLoadAddress(image_module_sp.get(), image_infos[idx])) {
676 ArchSpec dyld_spec = image_infos[idx].GetArchitecture();
tools/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOS.cpp 381 Symbol *symbol = symtab->SymbolAtIndex(match_indexes[0]);
tools/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp 590 image_infos[idx].address);
591 image_infos[idx].PutToLog(log);
604 if (image_infos[idx].address == (*pos).address) {
605 image_infos[idx].uuid = (*pos).uuid;
611 FindTargetModuleForImageInfo(image_infos[idx], false, nullptr));
620 image_infos[idx].PutToLog(log);
634 image_infos[idx].PutToLog(log);
670 image_infos[i].address = info_data_ref.GetPointer(&info_data_offset);
672 image_infos[i].mod_date = info_data_ref.GetPointer(&info_data_offset);
679 image_infos[i].file_spec.SetFile(raw_path, FileSpec::Style::native);
899 if ((dylib_info.segments[i].fileoff == 0 &&
900 dylib_info.segments[i].filesize > 0) ||
901 (dylib_info.segments[i].name == "__TEXT")) {
902 dylib_info.slide = dylib_info.address - dylib_info.segments[i].vmaddr;
919 if (!image_infos[i].UUIDValid()) {
921 if (!ReadMachHeader(image_infos[i].address, &image_infos[i].header,
921 if (!ReadMachHeader(image_infos[i].address, &image_infos[i].header,
925 ParseLoadCommands(data, image_infos[i], nullptr);
927 if (image_infos[i].header.filetype == llvm::MachO::MH_EXECUTE)
936 ModuleSP exe_module_sp(FindTargetModuleForImageInfo(image_infos[exe_idx],
940 UpdateImageLoadAddress(exe_module_sp.get(), image_infos[exe_idx]);
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp 935 clang::NamedDecl *const decl_from_modules = decls[0];
997 clang::Decl *copied_decl = CopyDecl(decls[0]);
1405 dyn_cast<ObjCInterfaceDecl>(decls[0]);
1446 dyn_cast<ObjCInterfaceDecl>(decls[0]);
1591 dyn_cast<ObjCInterfaceDecl>(decls[0]));
1636 dyn_cast<ObjCInterfaceDecl>(decls[0]));
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp 1426 clang::NamedDecl *const decl_from_modules = decls[0];
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp 702 instance->getFrontendOpts().Inputs[0]))
tools/lldb/source/Plugins/Language/CPlusPlus/LibCxxBitset.cpp 81 if (m_elements[idx])
82 return m_elements[idx];
109 m_elements[idx] = CreateValueObjectFromData(llvm::formatv("[{0}]", idx).str(),
112 return m_elements[idx];
tools/lldb/source/Plugins/Language/CPlusPlus/LibCxxTuple.cpp 66 if (m_elements[idx])
67 return m_elements[idx]->GetSP();
79 m_elements[idx] =
82 if (m_elements[idx])
83 return m_elements[idx]->GetSP();
tools/lldb/source/Plugins/Language/CPlusPlus/LibCxxUnorderedMap.cpp 144 std::pair<ValueObject *, uint64_t> val_hash = m_elements_cache[idx];
tools/lldb/source/Plugins/Language/CPlusPlus/LibStdcppTuple.cpp 93 if (idx < m_members.size() && m_members[idx])
94 return m_members[idx]->GetSP();
tools/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp 611 DictionaryItemDescriptor &dict_item = m_children[idx];
855 DictionaryItemDescriptor &dict_item = m_children[idx];
1013 DictionaryItemDescriptor &dict_item = m_children[idx];
tools/lldb/source/Plugins/Language/ObjC/NSSet.cpp 473 SetItemDescriptor &set_item = m_children[idx];
640 SetItemDescriptor &set_item = m_children[idx];
tools/lldb/source/Plugins/Language/ObjC/NSString.cpp 393 stream.Printf("\"%s\"", &bytes[0]);
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCClassDescriptorV2.cpp 498 return m_ivars[idx];
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp 371 interface_decl->getASTContext(), m_type_vector[0].c_str(),
389 ast_ctx, m_type_vector[ai].c_str(), for_expression));
411 const char *GetTypeAtIndex(size_t idx) { return m_type_vector[idx].c_str(); }
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp 524 const int short_option = m_getopt_table[option_idx].val;
2598 (uint64_t)m_indexed_isa_cache[index]);
2600 ret_isa = m_indexed_isa_cache[index];
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTrampolineHandler.cpp 386 m_descriptors[i + 1].code_start - m_descriptors[i].code_start;
386 m_descriptors[i + 1].code_start - m_descriptors[i].code_start;
427 m_descriptors[i].code_start, m_descriptors[i].flags);
427 m_descriptors[i].code_start, m_descriptors[i].flags);
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp 1396 auto rsg = rsm->m_globals[uint64_t(args[eRsId])];
2267 if (!child || (child->GetName() != elem.children[i].type_name)) {
2281 ConstString name = elem.children[num_children + i].type_name;
3146 m_allocations[alloc_id - 1]->id == alloc_id) {
3147 alloc = m_allocations[alloc_id - 1].get();
4090 const int short_option = m_getopt_table[option_idx].val;
4244 const int short_option = m_getopt_table[option_idx].val;
4525 const int short_option = m_getopt_table[option_idx].val;
4653 const int short_option = m_getopt_table[option_idx].val;
tools/lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp 178 return &m_objects[match->value];
181 if (m_objects[match->value].modification_time == object_modification_date)
182 return &m_objects[match->value];
187 if (m_objects[next_match->value].modification_time ==
189 return &m_objects[next_match->value];
tools/lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.h 136 return &m_objects[idx];
tools/lldb/source/Plugins/ObjectContainer/Universal-Mach-O/ObjectContainerUniversalMachO.cpp 198 module_sp, file, m_offset + m_fat_archs[arch_idx].offset,
199 m_fat_archs[arch_idx].size, data_sp, data_offset);
tools/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp 822 ELFDynamic &symbol = m_dynamic_symbols[i];
981 if (!program_headers[idx].Parse(data, &offset))
1382 if (!section_headers[idx].Parse(sh_data, &offset))
1390 const ELFSectionHeaderInfo &sheader = section_headers[strtab_idx];
1548 return &m_section_headers[id];
1557 if (m_section_headers[i].section_name == ConstString(name))
tools/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp 1857 if (!m_section_infos[n_sect].section_sp) {
1859 m_section_infos[n_sect].section_sp = section_sp;
1861 m_section_infos[n_sect].vm_range.SetBaseAddress(
1863 m_section_infos[n_sect].vm_range.SetByteSize(
1871 if (m_section_infos[n_sect].vm_range.Contains(file_addr)) {
1873 return m_section_infos[n_sect].section_sp;
1874 } else if (m_section_infos[n_sect].vm_range.GetByteSize() == 0 &&
1875 m_section_infos[n_sect].vm_range.GetBaseAddress() ==
1880 return m_section_infos[n_sect].section_sp;
4577 if ((m_mach_sections[sect_idx].flags & SECTION_TYPE) ==
4579 uint32_t symbol_stub_byte_size = m_mach_sections[sect_idx].reserved2;
4584 m_mach_sections[sect_idx].size / symbol_stub_byte_size;
4590 m_mach_sections[sect_idx].reserved1;
4595 m_mach_sections[sect_idx].addr +
6143 thread_sp.get(), LC_THREAD_datas[thread_idx]);
6148 thread_sp.get(), LC_THREAD_datas[thread_idx]);
6153 thread_sp.get(), LC_THREAD_datas[thread_idx]);
6158 thread_sp.get(), LC_THREAD_datas[thread_idx]);
tools/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp 509 m_coff_header_opt.data_dirs[i].vmaddr = m_data.GetU32(offset_ptr);
510 m_coff_header_opt.data_dirs[i].vmsize = m_data.GetU32(offset_ptr);
592 memcpy(m_sect_headers[idx].name, name_data, 8);
593 m_sect_headers[idx].vmsize = section_header_data.GetU32(&offset);
594 m_sect_headers[idx].vmaddr = section_header_data.GetU32(&offset);
595 m_sect_headers[idx].size = section_header_data.GetU32(&offset);
596 m_sect_headers[idx].offset = section_header_data.GetU32(&offset);
597 m_sect_headers[idx].reloff = section_header_data.GetU32(&offset);
598 m_sect_headers[idx].lineoff = section_header_data.GetU32(&offset);
599 m_sect_headers[idx].nreloc = section_header_data.GetU16(&offset);
600 m_sect_headers[idx].nline = section_header_data.GetU16(&offset);
601 m_sect_headers[idx].flags = section_header_data.GetU32(&offset);
704 m_coff_header_opt.data_dirs[coff_data_dir_export_table].vmsize > 0 &&
705 m_coff_header_opt.data_dirs[coff_data_dir_export_table].vmaddr > 0) {
708 m_coff_header_opt.data_dirs[coff_data_dir_export_table].vmaddr;
711 data_start, m_coff_header_opt.data_dirs[0].vmsize);
771 m_coff_header_opt.data_dirs[coff_data_dir_exception_table];
806 ConstString const_sect_name(GetSectionName(m_sect_headers[idx]));
834 if (m_sect_headers[idx].flags & llvm::COFF::IMAGE_SCN_CNT_CODE &&
838 } else if (m_sect_headers[idx].flags &
842 if (m_sect_headers[idx].size == 0 && m_sect_headers[idx].offset == 0)
842 if (m_sect_headers[idx].size == 0 && m_sect_headers[idx].offset == 0)
846 } else if (m_sect_headers[idx].flags &
850 if (m_sect_headers[idx].size == 0)
892 else if (m_sect_headers[idx].flags & llvm::COFF::IMAGE_SCN_CNT_CODE) {
894 } else if (m_sect_headers[idx].flags &
897 } else if (m_sect_headers[idx].flags &
899 if (m_sect_headers[idx].size == 0)
912 m_sect_headers[idx].vmaddr, // File VM address == addresses as
914 m_sect_headers[idx].vmsize, // VM size in bytes of this section
915 m_sect_headers[idx]
917 m_sect_headers[idx]
920 m_sect_headers[idx].flags)); // Flags for this section
tools/lldb/source/Plugins/Platform/Android/AdbClient.cpp 164 llvm::StringRef response(&in_buffer[0], in_buffer.size());
262 error = ReadAllBytes(&message[0], packet_len);
316 std::string(&error_message[0], error_message.size()).c_str());
384 if (!memcmp(&output_buf[0], kShellPrefix, strlen(kShellPrefix)))
417 dst.write(&output_buffer[0], output_buffer.size());
457 dst.write(&chunk[0], chunk.size());
529 error = ReadAllBytes(&buffer[0], buffer.size());
533 DataExtractor extractor(&buffer[0], buffer.size(), eByteOrderLittle,
638 error = ReadAllBytes(&buffer[0], data_len);
tools/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp 375 if (dl_open_name == dl_open_names[0])
tools/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp 1751 path_to_try.AppendPathComponent(path_parts[k]);
tools/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.cpp 61 const SDKDirectoryInfo &sdk_dir_info = m_sdk_directory_infos[i];
226 m_sdk_directory_infos[i].user_cached = true;
233 m_sdk_directory_infos[i].directory.GetPath().c_str());
281 check_sdk_info[i] = m_sdk_directory_infos[i].build == build;
292 if (m_sdk_directory_infos[i].version == version)
293 return &m_sdk_directory_infos[i];
299 if (m_sdk_directory_infos[i].version.getMajor() ==
301 m_sdk_directory_infos[i].version.getMinor() ==
303 return &m_sdk_directory_infos[i];
310 if (m_sdk_directory_infos[i].version.getMajor() ==
312 return &m_sdk_directory_infos[i];
321 return &m_sdk_directory_infos[i];
403 m_sdk_directory_infos[sdk_idx].directory);
418 m_sdk_directory_infos[sdk_idx].directory.GetPath();
535 m_sdk_directory_infos[connected_sdk_idx].directory);
552 m_sdk_directory_infos[m_last_module_sdk_idx].directory);
574 m_sdk_directory_infos[current_sdk_idx].directory);
594 m_sdk_directory_infos[sdk_idx].directory);
648 const SDKDirectoryInfo &sdk_dir_info = m_sdk_directory_infos[i];
668 return sdk_info - &m_sdk_directory_infos[0];
tools/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp 45 const ArchSpec &operator[](int idx) { return m_archs[idx]; }
tools/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp 835 ConnectProcess(connection_urls[i].c_str(), "", debugger, nullptr, error);
tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp 606 auto *main_thread = static_cast<NativeThreadLinux *>(m_threads[0].get());
tools/lldb/source/Plugins/Process/Utility/DynamicRegisterInfo.cpp 54 m_sets[set].registers = m_set_reg_nums[set].data();
54 m_sets[set].registers = m_set_reg_nums[set].data();
288 m_dynamic_reg_size_map[i].push_back(dwarf_opcode_bytes[j]);
394 m_set_reg_nums[set].push_back(i);
432 m_set_reg_nums[set].push_back(reg_num);
446 m_sets[set].num_registers = m_set_reg_nums[set].size();
446 m_sets[set].num_registers = m_set_reg_nums[set].size();
447 m_sets[set].registers = m_set_reg_nums[set].data();
447 m_sets[set].registers = m_set_reg_nums[set].data();
472 m_regs[i].value_regs = m_value_regs_map[i].data();
474 m_regs[i].value_regs = nullptr;
483 if (m_regs[reg_num].value_regs) {
521 m_regs[i].invalidate_regs = m_invalidate_regs_map[i].data();
523 m_regs[i].invalidate_regs = nullptr;
639 return &m_regs[i];
tools/lldb/source/Plugins/Process/Utility/HistoryThread.cpp 51 *this, 0, GetProcess()->GetAddressByteSize(), m_pcs[0]);
tools/lldb/source/Plugins/Process/Utility/HistoryUnwind.cpp 61 pc = m_pcs[frame_idx];
tools/lldb/source/Plugins/Process/Utility/RegisterContextFreeBSD_x86_64.cpp 96 return &g_register_infos[0];
tools/lldb/source/Plugins/Process/Utility/RegisterContextLinux_x86_64.cpp 110 return &g_register_infos[0];
tools/lldb/source/Plugins/Process/Utility/RegisterInfos_x86_64.h 365 UPDATE_GPR_INFO(eax, rax);
366 UPDATE_GPR_INFO(ebx, rbx);
367 UPDATE_GPR_INFO(ecx, rcx);
368 UPDATE_GPR_INFO(edx, rdx);
369 UPDATE_GPR_INFO(edi, rdi);
370 UPDATE_GPR_INFO(esi, rsi);
371 UPDATE_GPR_INFO(ebp, rbp);
372 UPDATE_GPR_INFO(esp, rsp);
373 UPDATE_GPR_INFO(eip, rip);
374 UPDATE_GPR_INFO(eflags, rflags);
375 UPDATE_GPR_INFO(cs, cs);
376 UPDATE_GPR_INFO(fs, fs);
377 UPDATE_GPR_INFO(gs, gs);
378 UPDATE_GPR_INFO(ss, ss);
379 UPDATE_GPR_INFO(ds, ds);
380 UPDATE_GPR_INFO(es, es);
382 UPDATE_GPR_INFO(ax, rax);
383 UPDATE_GPR_INFO(bx, rbx);
384 UPDATE_GPR_INFO(cx, rcx);
385 UPDATE_GPR_INFO(dx, rdx);
386 UPDATE_GPR_INFO(di, rdi);
387 UPDATE_GPR_INFO(si, rsi);
388 UPDATE_GPR_INFO(bp, rbp);
389 UPDATE_GPR_INFO(sp, rsp);
390 UPDATE_GPR_INFO_8H(ah, rax);
391 UPDATE_GPR_INFO_8H(bh, rbx);
392 UPDATE_GPR_INFO_8H(ch, rcx);
393 UPDATE_GPR_INFO_8H(dh, rdx);
394 UPDATE_GPR_INFO(al, rax);
395 UPDATE_GPR_INFO(bl, rbx);
396 UPDATE_GPR_INFO(cl, rcx);
397 UPDATE_GPR_INFO(dl, rdx);
399 UPDATE_FPR_INFO(fctrl, fctrl);
400 UPDATE_FPR_INFO(fstat, fstat);
401 UPDATE_FPR_INFO(ftag, ftag);
402 UPDATE_FPR_INFO(fop, fop);
403 UPDATE_FPR_INFO(fiseg, ptr.i386_.fiseg);
404 UPDATE_FPR_INFO(fioff, ptr.i386_.fioff);
405 UPDATE_FPR_INFO(fooff, ptr.i386_.fooff);
406 UPDATE_FPR_INFO(foseg, ptr.i386_.foseg);
407 UPDATE_FPR_INFO(mxcsr, mxcsr);
408 UPDATE_FPR_INFO(mxcsrmask, mxcsrmask);
410 UPDATE_FP_INFO(st, 0);
411 UPDATE_FP_INFO(st, 1);
412 UPDATE_FP_INFO(st, 2);
413 UPDATE_FP_INFO(st, 3);
414 UPDATE_FP_INFO(st, 4);
415 UPDATE_FP_INFO(st, 5);
416 UPDATE_FP_INFO(st, 6);
417 UPDATE_FP_INFO(st, 7);
418 UPDATE_FP_INFO(mm, 0);
419 UPDATE_FP_INFO(mm, 1);
420 UPDATE_FP_INFO(mm, 2);
421 UPDATE_FP_INFO(mm, 3);
422 UPDATE_FP_INFO(mm, 4);
423 UPDATE_FP_INFO(mm, 5);
424 UPDATE_FP_INFO(mm, 6);
425 UPDATE_FP_INFO(mm, 7);
427 UPDATE_XMM_INFO(xmm, 0);
428 UPDATE_XMM_INFO(xmm, 1);
429 UPDATE_XMM_INFO(xmm, 2);
430 UPDATE_XMM_INFO(xmm, 3);
431 UPDATE_XMM_INFO(xmm, 4);
432 UPDATE_XMM_INFO(xmm, 5);
433 UPDATE_XMM_INFO(xmm, 6);
434 UPDATE_XMM_INFO(xmm, 7);
436 UPDATE_YMM_INFO(ymm, 0);
437 UPDATE_YMM_INFO(ymm, 1);
438 UPDATE_YMM_INFO(ymm, 2);
439 UPDATE_YMM_INFO(ymm, 3);
440 UPDATE_YMM_INFO(ymm, 4);
441 UPDATE_YMM_INFO(ymm, 5);
442 UPDATE_YMM_INFO(ymm, 6);
443 UPDATE_YMM_INFO(ymm, 7);
445 UPDATE_DR_INFO(0);
446 UPDATE_DR_INFO(1);
447 UPDATE_DR_INFO(2);
448 UPDATE_DR_INFO(3);
449 UPDATE_DR_INFO(4);
450 UPDATE_DR_INFO(5);
451 UPDATE_DR_INFO(6);
452 UPDATE_DR_INFO(7);
tools/lldb/source/Plugins/Process/Utility/UnwindLLDB.cpp 352 if (!m_frames[m_frames.size() - 2]
382 return m_frames[m_frames.size() - 2]->reg_ctx_lldb_sp->GetCFA(
383 m_frames[m_frames.size() - 2]->cfa);
407 cfa = m_frames[idx]->cfa;
408 pc = m_frames[idx]->start_pc;
412 } else if (m_frames[idx - 1]->reg_ctx_lldb_sp->IsTrapHandlerFrame()) {
417 } else if (m_frames[idx]->reg_ctx_lldb_sp->IsTrapHandlerFrame()) {
456 Cursor *frame_cursor = m_frames[idx].get();
466 reg_ctx_sp = m_frames[frame_num]->reg_ctx_lldb_sp;
482 result = m_frames[frame_num]->reg_ctx_lldb_sp->SavedLocationForRegister(
488 result = m_frames[frame_num]->reg_ctx_lldb_sp->SavedLocationForRegister(
tools/lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp 50 if (m_cursors[idx].pc == LLDB_INVALID_ADDRESS)
52 if (m_cursors[idx].fp == LLDB_INVALID_ADDRESS)
55 pc = m_cursors[idx].pc;
56 cfa = m_cursors[idx].fp;
71 m_thread, concrete_idx, m_cursors[concrete_idx]);
tools/lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp 242 m_nt_file_entries[0].path.GetCString(), FileSpec::Style::native);
268 const ThreadData &td = m_thread_data[tid];
836 m_nt_file_entries[i].path.SetCString(path);
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp 347 packet.PutCString(features[i]);
796 arg = argv[i];
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationHistory.cpp 38 m_packets[idx].packet.data.assign(1, packet_char);
39 m_packets[idx].type = type;
40 m_packets[idx].bytes_transmitted = bytes_transmitted;
41 m_packets[idx].packet_idx = m_total_packet_count;
42 m_packets[idx].tid = llvm::get_threadid();
44 m_packets[idx].Serialize(*m_stream);
56 m_packets[idx].packet.data.assign(src, 0, src_len);
57 m_packets[idx].type = type;
58 m_packets[idx].bytes_transmitted = bytes_transmitted;
59 m_packets[idx].packet_idx = m_total_packet_count;
60 m_packets[idx].tid = llvm::get_threadid();
62 m_packets[idx].Serialize(*m_stream);
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp 2401 Status error = m_debugged_process_up->WriteMemory(write_addr, &buf[0],
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp 926 if (m_regs[i].name && g_register_infos[i].name) {
927 if (strcmp(m_regs[i].name, g_register_infos[i].name)) {
934 if (m_regs[i].byte_size != g_register_infos[i].byte_size) {
tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp 1404 if (m_continue_C_tids[i].second != continue_signo)
1453 if (m_continue_S_tids[i].second != step_signo)
1603 StringExtractorGDBRemote &stop_info = m_stop_packet_stack[i];
1657 tid_t tid = m_thread_ids[i];
1698 gdb_thread->PrivateSetRegisterValue(pc_regnum, m_thread_pcs[index]);
2399 StringExtractorGDBRemote stop_info = m_stop_packet_stack[i];
tools/lldb/source/Plugins/Process/minidump/MinidumpParser.cpp 309 auto dup_module = filtered_modules[iter->second];
311 filtered_modules[iter->second] = &module;
tools/lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp 501 const int short_option = m_getopt_table[option_idx].val;
tools/lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.cpp 157 result[0] = cu_spec;
160 result[KV.second] = all_files[KV.first];
211 spec = (*m_files)[record->FileNum];
656 (*m_files)[record->Number] = FileSpec(record->Name, style);
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp 2000 const DIERef &die_ref = method_die_offsets[i];
2302 const DWARFDIE &die = m_dies[i];
2407 sstr << param_types[i].GetTypeName();
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp 115 cu = m_units[idx].get();
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDeclContext.h 56 return m_entries[idx];
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp 207 die.SetParentIndex(m_die_array.size() - die_index_stack[depth - 1]);
210 m_die_array[die_index_stack.back()].SetSiblingIndex(
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h 251 return &m_die_array[0];
tools/lldb/source/Plugins/SymbolFile/DWARF/HashedNameToDIE.cpp 318 if (!m_header.Read(m_data, &offset, hash_data[i]))
tools/lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp 51 IndexUnit(*units_to_index[cu_idx], sets[cu_idx]);
51 IndexUnit(*units_to_index[cu_idx], sets[cu_idx]);
55 clear_cu_dies[cu_idx] = units_to_index[cu_idx]->ExtractDIEsScoped();
55 clear_cu_dies[cu_idx] = units_to_index[cu_idx]->ExtractDIEsScoped();
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp 767 return m_lldb_cu_to_dwarf_unit[cu_idx];
2054 const DIERef &die_ref = die_offsets[i];
2147 const DIERef &die_ref = die_offsets[i];
2403 const DIERef &die_ref = die_offsets[i];
2470 const DIERef &die_ref = die_offsets[i];
2516 const DIERef &die_ref = die_offsets[i];
2695 const DIERef &die_ref = die_offsets[i];
2790 decl_ctx_die1 = decl_ctx_1[i];
2791 decl_ctx_die2 = decl_ctx_2[i];
2801 dw_tag_t cu_tag = decl_ctx_1[count1 - 1].Tag();
2809 decl_ctx_die1 = decl_ctx_1[i];
2810 decl_ctx_die2 = decl_ctx_2[i];
2877 const DIERef &die_ref = die_offsets[i];
3113 const DIERef &die_ref = die_offsets[i];
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp 337 const uint32_t so_idx = oso_indexes[i] - 1;
338 const uint32_t oso_idx = oso_indexes[i];
344 m_compile_unit_infos[i].so_file.SetFile(
346 m_compile_unit_infos[i].oso_path = oso_symbol->GetName();
347 m_compile_unit_infos[i].oso_mod_time =
359 m_compile_unit_infos[i].first_symbol_index = so_idx;
360 m_compile_unit_infos[i].last_symbol_index = sibling_idx - 1;
361 m_compile_unit_infos[i].first_symbol_id = so_symbol->GetID();
362 m_compile_unit_infos[i].last_symbol_id = last_symbol->GetID();
397 return GetModuleByCompUnitInfo(&m_compile_unit_infos[oso_idx]);
472 if (m_compile_unit_infos[oso_idx].so_file) {
473 file_spec = m_compile_unit_infos[oso_idx].so_file;
524 return GetSymbolFileByCompUnitInfo(&m_compile_unit_infos[oso_idx]);
572 Module *oso_module = GetModuleByCompUnitInfo(&m_compile_unit_infos[cu_idx]);
579 m_compile_unit_infos[cu_idx].compile_unit_sp =
584 if (m_compile_unit_infos[cu_idx].compile_unit_sp) {
586 m_compile_unit_infos[cu_idx].compile_unit_sp);
590 comp_unit_sp = m_compile_unit_infos[cu_idx].compile_unit_sp;
605 if (comp_unit == m_compile_unit_infos[i].compile_unit_sp.get())
606 return &m_compile_unit_infos[i];
616 if (module == GetModuleByCompUnitInfo(&m_compile_unit_infos[i]))
617 cu_infos.push_back(&m_compile_unit_infos[i]);
943 &symbol_idx, &m_compile_unit_infos[0], m_compile_unit_infos.size(),
950 *oso_idx_ptr = comp_unit_info - &m_compile_unit_infos[0];
964 &symbol_id, &m_compile_unit_infos[0], m_compile_unit_infos.size(),
971 *oso_idx_ptr = comp_unit_info - &m_compile_unit_infos[0];
1234 GetSymbolFileByCompUnitInfo(&m_compile_unit_infos[cu_idx]);
1236 if (!m_compile_unit_infos[cu_idx].compile_unit_sp)
1237 m_compile_unit_infos[cu_idx].compile_unit_sp =
1240 return m_compile_unit_infos[cu_idx].compile_unit_sp;
1253 GetSymbolFileByCompUnitInfo(&m_compile_unit_infos[cu_idx]);
1255 return &m_compile_unit_infos[cu_idx];
1268 GetSymbolFileByCompUnitInfo(&m_compile_unit_infos[cu_idx]);
1270 if (m_compile_unit_infos[cu_idx].compile_unit_sp) {
1271 assert(m_compile_unit_infos[cu_idx].compile_unit_sp.get() ==
1274 m_compile_unit_infos[cu_idx].compile_unit_sp = cu_sp;
tools/lldb/source/Plugins/SymbolFile/Symtab/SymbolFileSymtab.cpp 123 m_objfile_sp->GetSymtab()->SymbolAtIndex(m_source_indexes[idx]);
165 uint32_t symbol_idx = m_code_indexes[idx];
176 next_symbol = symtab->SymbolAtIndex(m_code_indexes[idx + 1]);
tools/lldb/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.cpp 237 if (::strcmp(reg_info[i].name, it->second.name) == 0) {
238 it->second.lldb_regnum = reg_info[i].lldb_regnum;
tools/lldb/source/Symbol/CompactUnwindInfo.cpp 367 m_indexes[m_indexes.size() - 1].lsda_array_end = lsda_offset;
tools/lldb/source/Symbol/FuncUnwinders.cpp 81 return m_unwind_plan_compact_unwind[0]; // FIXME support multiple compact
94 return m_unwind_plan_compact_unwind[0]; // FIXME support multiple
tools/lldb/source/Symbol/LineTable.cpp 247 const Entry &entry = m_entries[idx];
268 line_entry.range.SetByteSize(m_entries[idx + 1].file_addr -
299 if (m_entries[idx].is_terminal_entry)
302 if (find(begin_pos, end_pos, m_entries[idx].file_idx) == end_pos)
311 if (m_entries[idx].line < line) {
313 } else if (m_entries[idx].line == line) {
320 else if (m_entries[idx].line < m_entries[best_match].line)
320 else if (m_entries[idx].line < m_entries[best_match].line)
343 if (m_entries[idx].is_terminal_entry)
346 if (m_entries[idx].file_idx != file_idx)
355 if (m_entries[idx].line < line) {
357 } else if (m_entries[idx].line == line) {
364 else if (m_entries[idx].line < m_entries[best_match].line)
364 else if (m_entries[idx].line < m_entries[best_match].line)
391 if (m_entries[idx].is_terminal_entry)
394 if (m_entries[idx].file_idx == file_idx) {
440 const Entry &entry = m_entries[idx];
466 const Entry &entry = m_entries[idx];
tools/lldb/source/Symbol/LocateSymbolFile.cpp 346 const std::string &filename = files[idx_file];
tools/lldb/source/Symbol/SymbolFile.cpp 168 lldb::CompUnitSP &cu_sp = (*m_compile_units)[idx];
185 assert((*m_compile_units)[idx] == nullptr);
186 (*m_compile_units)[idx] = cu_sp;
tools/lldb/source/Symbol/Symtab.cpp 48 return m_symbols.empty() ? nullptr : &m_symbols[0];
124 pos->second->Dump(s, target, pos->second - &m_symbols[0]);
137 m_symbols[symbol_idx].Dump(s, target, symbol_idx);
207 return &m_symbols[idx];
273 Symbol *symbol = &m_symbols[value];
540 addr_t value_a = addr_cache[index_a];
543 addr_cache[index_a] = value_a;
546 addr_t value_b = addr_cache[index_b];
549 addr_cache[index_b] = value_b;
628 if (CheckSymbolAtIndex(all_name_indexes[i], symbol_debug_type,
630 indexes.push_back(all_name_indexes[i]);
647 m_symbols[*pos].GetType() == symbol_type)
667 m_symbols[*pos].GetType() == symbol_type)
686 m_symbols[i].GetType() == symbol_type) {
687 const char *name = m_symbols[i].GetName().AsCString();
708 m_symbols[i].GetType() == symbol_type) {
712 const char *name = m_symbols[i].GetName().AsCString();
731 m_symbols[idx].GetType() == symbol_type) {
734 return &m_symbols[idx];
933 Symbol &symbol = m_symbols[entry->data];
998 Symbol *symbol = SymbolAtIndex(all_addr_indexes[i]);
1017 sc.symbol = SymbolAtIndex(symbol_indexes[i]);
1041 sym_ctx.symbol = SymbolAtIndex(temp_symbol_indexes[i]);
1047 symbol_indexes.push_back(temp_symbol_indexes[i]);
tools/lldb/source/Symbol/VariableList.cpp 57 var_sp = m_variables[idx];
tools/lldb/source/Target/JITLoaderList.cpp 36 return m_jit_loaders_vec[idx];
tools/lldb/source/Target/PathMappingList.cpp 103 m_pairs[index] = pair(NormalizePath(path), NormalizePath(replacement));
130 m_pairs[index].first.GetCString(),
131 m_pairs[index].second.GetCString());
134 s->Printf("%s -> %s", m_pairs[pair_index].first.GetCString(),
135 m_pairs[pair_index].second.GetCString());
250 m_pairs[idx].second = new_path;
tools/lldb/source/Target/Platform.cpp 1654 ReadFile(src_fd, offset, &buffer[0], to_read, error);
1663 dst.write(&buffer[0], n_read);
tools/lldb/source/Target/Process.cpp 254 const int short_option = m_getopt_table[option_idx].val;
3953 thread_index_array[idx] =
3985 if (thread_sp->GetIndexID() != thread_index_array[idx]) {
3991 idx, thread_index_array[idx], thread_sp->GetIndexID());
5472 thread_id_array[idx] = curr_thread_list.GetThreadAtIndex(idx)->GetID();
5476 ThreadSP thread_sp(GetThreadList().FindThreadByID(thread_id_array[i]));
5766 m_image_tokens[token] = LLDB_INVALID_IMAGE_TOKEN;
tools/lldb/source/Target/QueueList.cpp 29 return m_queues[idx];
tools/lldb/source/Target/StackFrameList.cpp 89 if (!m_frames[0]->IsInlined()) {
106 Block *block_ptr = m_frames[0]->GetFrameBlock();
564 StackFrameSP curr_frame_sp(curr_frames->m_frames[curr_frame_idx]);
565 StackFrameSP prev_frame_sp(prev_frames->m_frames[prev_frame_idx]);
593 m_frames[curr_frame_idx] = prev_frame_sp;
649 frame_sp = m_frames[idx];
661 frame_sp = m_frames[idx];
701 frame_sp = m_frames[original_idx];
763 m_frames[idx] = frame_sp;
tools/lldb/source/Target/Target.cpp 2621 sym_ctx_with_reasons[i])) &&
2624 exc_ctx_with_reasons[i].GetThreadRef()))) {
2645 exc_ctx_with_reasons[i].GetThreadPtr()->GetIndexID());
2659 cur_hook_sp->GetCommands(), &exc_ctx_with_reasons[i], options,
tools/lldb/source/Target/Thread.cpp 1078 completed_plan_sp = m_completed_plan_stack[i];
1090 return_valobj_sp = m_completed_plan_stack[i]->GetReturnValueObject();
1103 m_completed_plan_stack[i]->GetExpressionVariable();
1114 if (m_completed_plan_stack[i].get() == plan)
1124 if (m_discarded_plan_stack[i].get() == plan)
1141 if (current_plan == m_completed_plan_stack[i].get())
1142 return m_completed_plan_stack[i - 1].get();
1145 if (stack_size > 0 && m_completed_plan_stack[0].get() == current_plan) {
1151 if (current_plan == m_plan_stack[i].get())
1152 return m_plan_stack[i - 1].get();
1190 if (m_plan_stack[i]->GetThreadPlanTracer()) {
1191 m_plan_stack[i]->GetThreadPlanTracer()->EnableTracing(value);
1192 m_plan_stack[i]->GetThreadPlanTracer()->EnableSingleStep(single_stepping);
1200 m_plan_stack[i]->SetThreadPlanTracer(tracer_sp);
1249 if (m_plan_stack[i].get() == up_to_plan_ptr)
1288 if (m_plan_stack[master_plan_idx]->IsMasterPlan()) {
1289 discard = m_plan_stack[master_plan_idx]->OkayToDiscard();
1323 return m_plan_stack[0].get() == plan_ptr;
1334 if (m_plan_stack[i]->GetKind() == ThreadPlan::eKindCallFunction) {
1335 DiscardThreadPlansUpToPlan(m_plan_stack[i].get());
1769 Address dest = candidates[0];
tools/lldb/source/Target/ThreadCollection.cpp 63 thread_sp = m_threads[idx];
tools/lldb/source/Target/ThreadList.cpp 98 thread_sp = m_threads[idx];
112 if (m_threads[idx]->GetID() == tid) {
113 thread_sp = m_threads[idx];
130 if (m_threads[idx]->GetProtocolID() == tid) {
131 thread_sp = m_threads[idx];
148 if (m_threads[idx]->GetID() == tid) {
149 thread_sp = m_threads[idx];
168 if (m_threads[idx]->GetProtocolID() == tid) {
169 thread_sp = m_threads[idx];
185 if (m_threads[idx].get() == thread_ptr) {
186 thread_sp = m_threads[idx];
200 if (m_threads[idx]->GetBackingThread() == real_thread) {
201 thread_sp = m_threads[idx];
217 if (m_threads[idx]->GetIndexID() == index_id) {
218 thread_sp = m_threads[idx];
454 m_threads[idx]->DestroyThread();
654 m_selected_tid = m_threads[0]->GetID();
655 thread_sp = m_threads[0];
722 ThreadSP backing_thread = m_threads[idx]->GetBackingThread();
723 if (m_threads[idx]->GetID() == tid ||
tools/lldb/source/Target/ThreadPlanRunToAddress.cpp 66 ->CreateBreakpoint(m_addresses[i], true, false)
71 m_break_ids[i] = breakpoint->GetID();
81 m_thread.CalculateTarget()->RemoveBreakpointByID(m_break_ids[i]);
100 s->Address(m_addresses[i], sizeof(addr_t));
119 s->Address(m_addresses[i], sizeof(addr_t));
120 s->Printf(" using breakpoint: %d - ", m_break_ids[i]);
122 m_thread.CalculateTarget()->GetBreakpointByID(m_break_ids[i]).get();
142 if (m_break_ids[i] == LLDB_INVALID_BREAK_ID) {
146 error->Address(m_addresses[i], sizeof(addr_t));
180 if (m_break_ids[i] != LLDB_INVALID_BREAK_ID) {
181 m_thread.CalculateTarget()->RemoveBreakpointByID(m_break_ids[i]);
182 m_break_ids[i] = LLDB_INVALID_BREAK_ID;
197 if (m_addresses[i] == current_address) {
tools/lldb/source/Target/ThreadPlanStepRange.cpp 91 m_address_ranges[0].Dump(s, m_thread.CalculateTarget().get(),
96 m_address_ranges[i].Dump(s, m_thread.CalculateTarget().get(),
110 ret_value = m_address_ranges[i].ContainsLoadAddress(
249 if (m_address_ranges[i].ContainsLoadAddress(addr, &GetTarget())) {
251 if (m_address_ranges[i].GetByteSize() == 0)
254 if (!m_instruction_ranges[i]) {
260 m_instruction_ranges[i] = Disassembler::DisassembleRange(
262 m_address_ranges[i], prefer_file_cache);
264 if (!m_instruction_ranges[i])
272 m_instruction_ranges[i]
279 return &m_instruction_ranges[i]->GetInstructionList();
478 bool in_range = m_address_ranges[i].ContainsLoadAddress(
tools/lldb/source/Target/ThreadPlanTracer.cpp 217 if (m_register_values[reg_num].GetType() == RegisterValue::eTypeInvalid ||
218 reg_value != m_register_values[reg_num]) {
225 m_register_values[reg_num] = reg_value;
tools/lldb/source/Utility/Args.cpp 327 m_argv.insert(m_argv.begin() + idx, m_entries[idx].data());
338 m_entries[idx] = ArgEntry(arg_str, quote_char);
339 m_argv[idx] = m_entries[idx].data();
339 m_argv[idx] = m_entries[idx].data();
362 m_entries[i] = ArgEntry(args[i], quote);
363 m_argv[i] = m_entries[i].data();
363 m_argv[i] = m_entries[i].data();
tools/lldb/source/Utility/Broadcaster.cpp 388 m_event_map.insert(event_listener_key(to_be_readded[i], listener_sp));
tools/lldb/source/Utility/Listener.cpp 75 BroadcasterManagerSP manager_sp(m_broadcaster_managers[i].lock());
tools/lldb/source/Utility/Reproducer.cpp 335 return m_files[m_index++];
tools/lldb/source/Utility/StringList.cpp 185 if (m_strings[idx].empty())
tools/lldb/tools/driver/Driver.cpp 534 EscapeString(m_option_data.m_args[0]).c_str());
537 EscapeString(m_option_data.m_args[0]).c_str());
549 " %s", EscapeString(m_option_data.m_args[arg_idx]).c_str());
tools/lldb/unittests/Host/SocketAddressTest.cpp 48 EXPECT_EQ(AF_INET, addr[0].GetFamily());
49 EXPECT_EQ("127.0.0.1", addr[0].GetIPAddress());
tools/lldb/unittests/Host/TaskPoolTest.cpp 26 TaskPool::RunTasks([fn, &r]() { fn(1, r[0]); }, [fn, &r]() { fn(2, r[1]); },
26 TaskPool::RunTasks([fn, &r]() { fn(1, r[0]); }, [fn, &r]() { fn(2, r[1]); },
27 [fn, &r]() { fn(3, r[2]); }, [fn, &r]() { fn(4, r[3]); });
27 [fn, &r]() { fn(3, r[2]); }, [fn, &r]() { fn(4, r[3]); });
29 ASSERT_EQ(2, r[0]);
30 ASSERT_EQ(5, r[1]);
31 ASSERT_EQ(10, r[2]);
32 ASSERT_EQ(17, r[3]);
tools/lldb/unittests/Process/gdb-remote/GDBRemoteClientBaseTest.cpp 318 ASSERT_EQ(json_packet, delegate.structured_data_packets[0]);
tools/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp 195 EXPECT_EQ("/foo/bar.so", result.getValue()[0].GetFileSpec().GetPath());
196 EXPECT_EQ(triple, result.getValue()[0].GetArchitecture().GetTriple());
198 result.getValue()[0].GetUUID());
199 EXPECT_EQ(0u, result.getValue()[0].GetObjectOffset());
200 EXPECT_EQ(1234u, result.getValue()[0].GetObjectSize());
220 EXPECT_EQ("/foo/bar.so", result.getValue()[0].GetFileSpec().GetPath());
221 EXPECT_EQ(triple, result.getValue()[0].GetArchitecture().GetTriple());
223 result.getValue()[0].GetUUID());
224 EXPECT_EQ(0u, result.getValue()[0].GetObjectOffset());
225 EXPECT_EQ(1234u, result.getValue()[0].GetObjectSize());
tools/lldb/unittests/Process/minidump/MinidumpParserTest.cpp 248 const minidump::Module &M = *filtered_modules[0];
690 EXPECT_EQ(0x0000000000001000u, filtered_modules[0]->BaseOfImage);
716 EXPECT_EQ(0x0000000000002000u, filtered_modules[0]->BaseOfImage);
718 parser->GetMinidumpFile().getString(filtered_modules[0]->ModuleNameRVA),
720 EXPECT_EQ(0x0000000000001000u, filtered_modules[1]->BaseOfImage);
722 parser->GetMinidumpFile().getString(filtered_modules[1]->ModuleNameRVA),
tools/lldb/unittests/SymbolFile/DWARF/DWARFASTParserClangTests.cpp 62 ast_parser.LinkDeclContextToDIE(decl_ctxs[i], dies[i]);
62 ast_parser.LinkDeclContextToDIE(decl_ctxs[i], dies[i]);
64 CompilerDeclContext(nullptr, decl_ctxs[1]));
67 testing::UnorderedElementsAre(decl_ctxs[0], decl_ctxs[3]));
67 testing::UnorderedElementsAre(decl_ctxs[0], decl_ctxs[3]));
tools/lldb/unittests/TestingSupport/Host/NativeProcessTestUtils.h 140 std::copy_n(Chunk.begin(), Size, &Data[Addr]);
tools/lldb/unittests/tools/lldb-server/tests/TestClient.cpp 230 if (m_register_infos[Reg].kinds[eRegisterKindGeneric] ==
tools/llvm-config/llvm-config.cpp 539 OS << Components[I];
694 auto Lib = RequiredLibs[i];
tools/llvm-cov/CodeCoverage.cpp 481 int RC = sys::ExecuteAndWait(ViewOpts.DemanglerOpts[0], ArgsV,
485 error(ErrMsg, ViewOpts.DemanglerOpts[0]);
tools/llvm-cov/SourceCoverageViewHTML.cpp 433 if (FileReports[I].FunctionCoverage.getNumFunctions())
434 emitFileSummary(OSRef, SourceFiles[I], FileReports[I]);
450 if (!FileReports[I].FunctionCoverage.getNumFunctions()) {
451 std::string Link = buildLinkToFile(SourceFiles[I], FileReports[I]);
tools/llvm-cvtres/llvm-cvtres.cpp 145 OutputFile = sys::path::filename(StringRef(InputFiles[0]));
tools/llvm-dwarfdump/Statistics.cpp 145 return Ranges[0].LowPC;
171 VarParamLocStats[CoverageBucket]++;
173 ParamLocStats[CoverageBucket]++;
175 VarLocStats[CoverageBucket]++;
461 << LocationStats[0];
463 << LocationStats[0] << '\n');
465 << LocationStats[1];
467 << LocationStats[1] << '\n');
470 << "% of its scope covered\":" << LocationStats[i];
473 << "% of its scope covered: " << LocationStats[i]);
476 << LocationStats[NumOfCoverageCategories - 1];
478 << LocationStats[NumOfCoverageCategories - 1]);
tools/llvm-dwp/llvm-dwp.cpp 310 while (Buckets[H]) {
311 assert(S != IndexEntries.begin()[Buckets[H] - 1].first &&
315 Buckets[H] = i + 1;
tools/llvm-elfabi/ErrorCollector.cpp 45 WithColor::error(OS) << "(" << Tags[i] << ") " << Errors[i];
45 WithColor::error(OS) << "(" << Tags[i] << ") " << Errors[i];
tools/llvm-exegesis/lib/Analysis.cpp 241 Entries[IndexIt->second].PointIds.push_back(PointId);
tools/llvm-exegesis/lib/Clustering.cpp 102 ClusterIdForPoint_[P] = ClusterId::error();
131 if (!ClusterIdForPoint_[P].isUndef())
137 ClusterIdForPoint_[P] = ClusterId::noise();
144 ClusterIdForPoint_[P] = CurrentCluster.Id; /* Label initial point */
155 if (ClusterIdForPoint_[Q].isNoise()) {
157 ClusterIdForPoint_[Q] = CurrentCluster.Id;
161 if (!ClusterIdForPoint_[Q].isUndef()) {
165 ClusterIdForPoint_[Q] = CurrentCluster.Id;
179 if (ClusterIdForPoint_[P].isNoise()) {
194 SmallVectorImpl<size_t> &PointsOfOpcode = OpcodeToPoints[Opcode];
216 ClusterIdForPoint_[P] = CurrentCluster.Id;
282 Cluster &OldCluster = Clusters_[CID.getId()]; // Valid clusters storage.
298 ClusterIdForPoint_[P] = UnstableCluster.Id;
tools/llvm-exegesis/lib/SchedClassResolution.cpp 266 BenchmarkMeasure &LatencyMeasure = SchedClassPoint[0];
306 BenchmarkMeasure &RThroughputMeasure = SchedClassPoint[0];
tools/llvm-exegesis/lib/Uops.cpp 111 InstructionTemplate IT = Instructions[I % OriginalInstructionsSize];
143 PossibleRegsForVar[VarId].find_next(Iterators[VarId]);
tools/llvm-lto/llvm-lto.cpp 853 OS << Binaries[BufID]->getBuffer();
980 CodeGen.addMustPreserveSymbol(KeptDSOSyms[i]);
tools/llvm-lto2/llvm-lto2.cpp 415 outs() << " comdat " << ComdatTable[Comdat] << '\n';
tools/llvm-mca/CodeRegion.cpp 36 if (Regions.size() == 1 && !Regions[0]->startLoc().isValid() &&
37 !Regions[0]->endLoc().isValid()) {
39 Regions[0] = std::make_unique<CodeRegion>(Description, Loc);
45 const CodeRegion &R = *Regions[It->second];
77 Regions[It->second]->setEndLocation(Loc);
84 !Regions[0]->startLoc().isValid() && !Regions[0]->endLoc().isValid()) {
84 !Regions[0]->startLoc().isValid() && !Regions[0]->endLoc().isValid()) {
85 Regions[0]->setEndLocation(Loc);
92 Regions[It->second]->setEndLocation(Loc);
tools/llvm-mca/Views/ResourcePressureView.cpp 62 ResourceUsage[R2VIndex + NumResourceUnits * SourceIdx] += Use.second;
63 ResourceUsage[R2VIndex + NumResourceUnits * Source.size()] += Use.second;
tools/llvm-mca/Views/SchedulerStatistics.cpp 53 Usage[LQResourceID].SlotsInUse++;
58 Usage[SQResourceID].SlotsInUse++;
64 assert(Usage[LQResourceID].SlotsInUse);
65 Usage[LQResourceID].SlotsInUse--;
68 assert(Usage[SQResourceID].SlotsInUse);
69 Usage[SQResourceID].SlotsInUse--;
79 Usage[Buffer].SlotsInUse++;
88 Usage[Buffer].SlotsInUse--;
tools/llvm-mca/Views/TimelineView.cpp 56 UsedBuffer[IR.getSourceIndex()] = BufferInfo;
66 TimelineViewEntry &TVEntry = Timeline[Index];
73 WaitTimeEntry &WTEntry = WaitTime[Index % Source.size()];
85 Timeline[Index].CycleReady = CurrentCycle;
88 Timeline[Index].CycleIssued = CurrentCycle;
91 Timeline[Index].CycleExecuted = CurrentCycle;
97 if (Timeline[Index].CycleDispatched == -1)
98 Timeline[Index].CycleDispatched = static_cast<int>(CurrentCycle);
tools/llvm-modextract/llvm-modextract.cpp 63 Result.append(Ms[ModuleIndex].getBuffer().begin(),
64 Ms[ModuleIndex].getBuffer().end());
65 Writer.copyStrtab(Ms[ModuleIndex].getStrtab());
71 std::unique_ptr<Module> M = ExitOnErr(Ms[ModuleIndex].parseModule(Context));
tools/llvm-mt/llvm-mt.cpp 131 OutputFile = InputFiles[0];
tools/llvm-nm/llvm-nm.cpp 1254 SymbolList[I].Name = P;
1452 SymbolList[I].Name = Q;
1454 if (SymbolList[I].TypeChar == 'I') {
1455 SymbolList[I].IndirectName = Q;
1472 if (SymbolList[J].Name == Entry.symbolName())
1506 SymbolList[I].Name = Q;
1508 if (SymbolList[I].TypeChar == 'I') {
1509 SymbolList[I].IndirectName = Q;
1530 if (SymbolList[J].Name == Entry.symbolName())
1566 SymbolList[I].Name = Q;
1568 if (SymbolList[I].TypeChar == 'I') {
1569 SymbolList[I].IndirectName = Q;
1590 if (SymbolList[J].Name == Entry.symbolName()) {
1624 if (SymbolList[J].TypeChar == 'U')
1626 SymbolList[J].NDesc |= MachO::N_WEAK_DEF;
1636 SymbolList[I].Name = Q;
1638 if (SymbolList[I].TypeChar == 'I') {
1639 SymbolList[I].IndirectName = Q;
1669 if (SymbolList[J].Address == FoundFns[f] + BaseSegmentAddress)
1726 SymbolList[I].Name = Q;
1728 if (SymbolList[I].TypeChar == 'I') {
1729 SymbolList[I].IndirectName = Q;
tools/llvm-objcopy/COFF/Reader.cpp 170 const Symbol *Target = RawSymbolTable[*Sym.WeakTargetSymbolId];
182 const Symbol *Sym = RawSymbolTable[R.Reloc.SymbolTableIndex];
tools/llvm-objcopy/COFF/Writer.cpp 58 Sym.AuxData[0].Opaque);
82 reinterpret_cast<coff_aux_weak_external *>(Sym.AuxData[0].Opaque);
376 const data_directory *Dir = &Obj.DataDirectories[DEBUG_DIRECTORY];
tools/llvm-objcopy/ELF/Object.cpp 2165 Segment *Seg = OrderedSegments[0];
tools/llvm-objcopy/MachO/MachOReader.cpp 239 O.LoadCommands[*O.DataInCodeCommandIndex]
250 O.LoadCommands[*O.FunctionStartsCommandIndex]
tools/llvm-objcopy/MachO/MachOWriter.cpp 42 O.LoadCommands[*O.SymTabCommandIndex]
51 O.LoadCommands[*O.DyLdInfoCommandIndex]
84 O.LoadCommands[*O.DySymTabCommandIndex]
94 O.LoadCommands[*O.DataInCodeCommandIndex]
104 O.LoadCommands[*O.FunctionStartsCommandIndex]
277 O.LoadCommands[*O.SymTabCommandIndex]
288 O.LoadCommands[*O.SymTabCommandIndex]
308 O.LoadCommands[*O.DyLdInfoCommandIndex]
320 O.LoadCommands[*O.DyLdInfoCommandIndex]
332 O.LoadCommands[*O.DyLdInfoCommandIndex]
344 O.LoadCommands[*O.DyLdInfoCommandIndex]
356 O.LoadCommands[*O.DyLdInfoCommandIndex]
369 O.LoadCommands[*O.DySymTabCommandIndex]
383 O.LoadCommands[*O.DataInCodeCommandIndex]
395 O.LoadCommands[*O.FunctionStartsCommandIndex]
410 O.LoadCommands[*O.SymTabCommandIndex]
420 O.LoadCommands[*O.DyLdInfoCommandIndex]
440 O.LoadCommands[*O.DySymTabCommandIndex]
450 O.LoadCommands[*O.DataInCodeCommandIndex]
460 O.LoadCommands[*O.FunctionStartsCommandIndex]
tools/llvm-objdump/MachODump.cpp 3285 uint64_t SectAddress = ((*(info->Sections))[SectIdx]).getAddress();
3286 uint64_t SectSize = ((*(info->Sections))[SectIdx]).getSize();
3292 ((*(info->Sections))[SectIdx]).getName();
3298 DataRefImpl Ref = ((*(info->Sections))[SectIdx]).getRawDataRefImpl();
3304 S = (*(info->Sections))[SectIdx];
3308 ((*(info->Sections))[SectIdx]).getContents(), info->O->getFileName());
7317 BaseAddress = Sections[0].getAddress();
7430 Expected<StringRef> SecNameOrErr = Sections[SectIdx].getName();
7438 DataRefImpl DR = Sections[SectIdx].getRawDataRefImpl();
7445 unwrapOrError(Sections[SectIdx].getContents(), Filename);
7447 uint64_t SectAddress = Sections[SectIdx].getAddress();
7475 SymbolizerInfo.S = Sections[SectIdx];
7481 ThumbSymbolizerInfo.S = Sections[SectIdx];
7500 unwrapOrError(Symbols[SymIdx].getName(), MachOOF->getFileName());
7502 unwrapOrError(Symbols[SymIdx].getType(), MachOOF->getFileName());
7507 bool containsSym = Sections[SectIdx].containsSymbol(Symbols[SymIdx]);
7507 bool containsSym = Sections[SectIdx].containsSymbol(Symbols[SymIdx]);
7538 uint64_t SectSize = Sections[SectIdx].getSize();
7539 uint64_t Start = Symbols[SymIdx].getValue();
7540 uint64_t SectionAddress = Sections[SectIdx].getAddress();
7556 Symbols[NextSymIdx].getType(), MachOOF->getFileName());
7559 Sections[SectIdx].containsSymbol(Symbols[NextSymIdx]);
7559 Sections[SectIdx].containsSymbol(Symbols[NextSymIdx]);
7560 NextSym = Symbols[NextSymIdx].getValue();
7572 DataRefImpl Symb = Symbols[SymIdx].getRawDataRefImpl();
7685 uint64_t SectAddress = Sections[SectIdx].getAddress();
7686 uint64_t SectSize = Sections[SectIdx].getSize();
tools/llvm-objdump/llvm-objdump.cpp 653 OS << Delimiter << LineBuffer->second[LineInfo.Line - 1] << '\n';
1254 if (Symbols.empty() || std::get<0>(Symbols[0]) != 0) {
1279 std::string SymbolName = std::get<1>(Symbols[SI]).str();
1288 uint64_t Start = std::get<0>(Symbols[SI]);
1298 End = std::min(End, std::get<0>(Symbols[SI + 1]));
1313 if (std::get<2>(Symbols[SI]) == ELF::STT_AMDGPU_HSA_KERNEL) {
1318 std::get<2>(Symbols[SI + 1]) == ELF::STT_AMDGPU_HSA_KERNEL) {
1363 uint8_t SymTy = std::get<2>(Symbols[SI]);
1371 std::get<2>(Symbols[SI]) != ELF::STT_OBJECT &&
tools/llvm-profdata/llvm-profdata.cpp 777 Stats.ValueSitesHistogram[NV - 1]++;
807 if (Stats.ValueSitesHistogram[I] > 0)
808 OS << "\t" << I + 1 << ", " << Stats.ValueSitesHistogram[I] << "\n";
937 VPStats[IPVK_IndirectCallTarget], OS,
943 traverseAllValueSites(Func, IPVK_MemOPSize, VPStats[IPVK_MemOPSize], OS,
983 VPStats[IPVK_IndirectCallTarget]);
988 showValueSitesStats(OS, IPVK_MemOPSize, VPStats[IPVK_MemOPSize]);
tools/llvm-rc/ResourceFileWriter.cpp 915 RETURN_IF_ERROR(Reader.readInteger(ItemOffsets[ID]));
922 Reader.setOffset(ItemOffsets[ID]);
924 RETURN_IF_ERROR(Reader.readArray(Image, ItemEntries[ID].Size));
925 SingleIconCursorResource SingleRes(Type, ItemEntries[ID], Image,
935 const auto &OldHeader = ItemEntries[ID];
953 Reader.setOffset(ItemOffsets[ID]);
967 ItemEntries[ID] = NewHeader;
tools/llvm-rc/llvm-rc.cpp 111 MemoryBuffer::getFile(InArgsInfo[0]);
113 fatalError("Error opening file '" + Twine(InArgsInfo[0]) +
141 SmallString<128> InputFile(InArgsInfo[0]);
180 OutArgsInfo[0], EC, sys::fs::FA_Read | sys::fs::FA_Write);
182 fatalError("Error opening output file '" + OutArgsInfo[0] +
tools/llvm-readobj/COFFDumper.cpp 1832 EndianCorrectedNameString[0] = UNI_UTF16_BYTE_ORDER_MARK_SWAPPED;
tools/llvm-readobj/ELFDumper.cpp 3983 if (MaxChain <= ++ChainLen[B])
3986 TotalSyms += ChainLen[B];
3995 ++Count[ChainLen[B]];
3995 ++Count[ChainLen[B]];
4002 CumulativeNonZero += Count[I] * I;
4003 OS << format("%7lu %-10lu (%5.1f%%) %5.1f%%\n", I, Count[I],
4004 (Count[I] * 100.0) / NBucket,
4035 ChainLen[B] = Len;
4045 ++Count[ChainLen[B]];
4045 ++Count[ChainLen[B]];
4052 CumulativeNonZero += Count[I] * I;
4053 OS << format("%7lu %-10lu (%5.1f%%) %5.1f%%\n", I, Count[I],
4054 (Count[I] * 100.0) / NBucket,
tools/llvm-reduce/deltas/Delta.cpp 123 if (!UninterestingChunks.count(C) && C != Chunks[I])
135 Chunks[I].print();
147 UninterestingChunks.insert(Chunks[I]);
tools/llvm-reduce/deltas/ReduceArguments.cpp 54 if (ChunksToKeep[I].contains(++ArgCount))
56 if (ChunksToKeep[I].end == ArgCount)
tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp 52 BranchInst::Create(ChunkSucessors[0], &BB);
91 if (ChunksToKeep[I].contains(++BBCount))
93 if (ChunksToKeep[I].end == BBCount)
tools/llvm-reduce/deltas/ReduceGlobalVars.cpp 27 if (ChunksToKeep[I].contains(++GVCount))
29 if (GVCount == ChunksToKeep[I].end)
tools/llvm-reduce/deltas/ReduceInstructions.cpp 29 if (ChunksToKeep[I].contains(++InstCount))
31 if (ChunksToKeep[I].end == InstCount)
tools/llvm-stress/llvm-stress.cpp 323 return ScalarTypes[getRandom() % ScalarTypes.size()];
tools/llvm-xray/xray-account.cpp 247 R.Median = Timings[MedianOff];
251 R.Pct90 = Timings[Pct90Off];
255 R.Pct99 = Timings[Pct99Off];
tools/lto/lto.cpp 516 auto &MemBuffer = unwrap(cg)->getProducedBinaries()[index];
528 return unwrap(cg)->getProducedBinaryFiles()[index].c_str();
tools/obj2yaml/dwarf2yaml.cpp 338 i < DebugLines.StandardOpcodeLengths[NewOp.Opcode - 1]; ++i)
tools/obj2yaml/elf2yaml.cpp 98 if (!SectionNames[SecIndex].empty())
99 return SectionNames[SecIndex];
105 std::string &Ret = SectionNames[SecIndex];
135 if (!SymbolNames[Index].empty())
136 return SymbolNames[Index];
140 SymbolNames[Index] =
143 SymbolNames[Index] = Name;
144 return SymbolNames[Index];
tools/obj2yaml/wasm2yaml.cpp 84 LinkingSec->Comdats[Func.Comdat].Entries.emplace_back(
100 LinkingSec->Comdats[Segment.Data.Comdat].Entries.emplace_back(
tools/polly/lib/Analysis/ScopBuilder.cpp 2419 if (Int[0] <= 1)
2424 if (Int[0] != Int[i] && Int[i])
2424 if (Int[0] != Int[i] && Int[i])
2424 if (Int[0] != Int[i] && Int[i])
2440 Size = SE.getMulExpr(Size, SE.getConstant(Size->getType(), Int[0]));
tools/polly/lib/CodeGen/BlockGenerators.cpp 1031 Vector, getNewValue(Stmt, Old, ScalarMaps[Lane], VLTS[Lane], L),
1058 VLTS[Offset], NewAccesses);
1085 generateLocationAccessed(Stmt, Load, BBMap, VLTS[0], NewAccesses);
1114 VLTS[i], NewAccesses);
1136 generateArrayLoad(Stmt, Load, ScalarMaps[i], VLTS[i], NewAccesses);
1205 VLTS[0], NewAccesses);
1217 VLTS[i], NewAccesses);
1273 VLTS[VectorLane], NewAccesses);
tools/polly/lib/CodeGen/IslNodeBuilder.cpp 454 IVS[0] = ValueLB;
457 IVS[i] = Builder.CreateAdd(IVS[i - 1], ValueInc, "p_vector_iv");
457 IVS[i] = Builder.CreateAdd(IVS[i - 1], ValueInc, "p_vector_iv");
932 createSubstitutions(isl_ast_expr_copy(Expr), Stmt, VLTS[i]);
tools/polly/lib/Transform/ScheduleOptimizer.cpp 841 TileSizes[DimOutNum - 3] = MacroKernelParams.Mc;
842 TileSizes[DimOutNum - 2] = MacroKernelParams.Nc;
843 TileSizes[DimOutNum - 1] = MacroKernelParams.Kc;
unittests/ADT/FallibleIteratorTest.cpp 46 Item &operator*() { return C[Idx].first; }
48 const Item &operator*() const { return C[Idx].first; }
52 if (C[Idx].second == ValidLink) {
63 if (C[Idx].second == ValidLink)
unittests/ADT/HashingTest.cpp 177 hash_code code = hash_combine_range(&all_one_c[0], &all_one_c[0] + Idx);
177 hash_code code = hash_combine_range(&all_one_c[0], &all_one_c[0] + Idx);
185 hash_code code = hash_combine_range(&all_zero_c[0], &all_zero_c[0] + Idx);
185 hash_code code = hash_combine_range(&all_zero_c[0], &all_zero_c[0] + Idx);
193 hash_code code = hash_combine_range(&all_one_int[0], &all_one_int[0] + Idx);
193 hash_code code = hash_combine_range(&all_one_int[0], &all_one_int[0] + Idx);
201 hash_code code = hash_combine_range(&all_zero_int[0], &all_zero_int[0] + Idx);
201 hash_code code = hash_combine_range(&all_zero_int[0], &all_zero_int[0] + Idx);
unittests/ADT/STLExtrasTest.cpp 53 EXPECT_EQ(CharPairType(0u, 'a'), CharResults[0]);
54 EXPECT_EQ(CharPairType(1u, 'b'), CharResults[1]);
55 EXPECT_EQ(CharPairType(2u, 'c'), CharResults[2]);
65 EXPECT_EQ(IntPairType(0u, 1), IntResults[0]);
66 EXPECT_EQ(IntPairType(1u, 2), IntResults[1]);
67 EXPECT_EQ(IntPairType(2u, 3), IntResults[2]);
86 EXPECT_EQ('b', foo[0]);
87 EXPECT_EQ('c', foo[1]);
88 EXPECT_EQ('d', foo[2]);
103 EXPECT_EQ(PairType(0u, 1), Results[0]);
104 EXPECT_EQ(PairType(1u, 2), Results[1]);
105 EXPECT_EQ(PairType(2u, 3), Results[2]);
121 EXPECT_EQ(PairType(0u, '2'), Results[0]);
122 EXPECT_EQ(PairType(1u, '3'), Results[1]);
123 EXPECT_EQ(PairType(2u, '4'), Results[2]);
271 EXPECT_EQ(v[I], Enumerated[I].value());
307 EXPECT_EQ(2, V[0]);
308 EXPECT_EQ(4, V[1]);
309 EXPECT_EQ(6, V[2]);
310 EXPECT_EQ(8, V[3]);
311 EXPECT_EQ(1, V[4]);
312 EXPECT_EQ(3, V[5]);
313 EXPECT_EQ(5, V[6]);
314 EXPECT_EQ(7, V[7]);
322 EXPECT_EQ(1, V[0]);
323 EXPECT_EQ(3, V[1]);
324 EXPECT_EQ(5, V[2]);
325 EXPECT_EQ(7, V[3]);
unittests/ADT/SmallSetTest.cpp 83 EXPECT_EQ(i, V[i]);
94 EXPECT_EQ(i, V[i]);
109 EXPECT_EQ("str 1", V[0]);
110 EXPECT_EQ("str 2", V[1]);
120 EXPECT_EQ("str 0", V[0]);
121 EXPECT_EQ("str 1", V[1]);
122 EXPECT_EQ("str 2", V[2]);
123 EXPECT_EQ("str 4", V[3]);
unittests/ADT/TinyPtrVectorTest.cpp 57 return makeArrayRef(&TestPtrs[0], N);
93 this->V.push_back(this->TestPtrs[0]);
95 this->V.push_back(this->TestPtrs[1]);
97 this->V.push_back(this->TestPtrs[2]);
99 this->V.push_back(this->TestPtrs[3]);
101 this->V.push_back(this->TestPtrs[4]);
109 this->TestPtrs[3] = this->makePtr(&this->TestValues[42]);
110 this->TestPtrs[4] = this->makePtr(&this->TestValues[43]);
111 this->V.push_back(this->TestPtrs[3]);
113 this->V.push_back(this->TestPtrs[4]);
370 this->V.insert(this->V.end(), this->TestPtrs[0]);
375 this->V.insert(this->V.end(), this->TestPtrs[4]);
377 this->V.insert(this->V.begin(), this->TestPtrs[42]);
378 this->TestPtrs.insert(this->TestPtrs.begin(), this->TestPtrs[42]);
380 this->V.insert(std::next(this->V.begin(), 3), this->TestPtrs[43]);
382 this->TestPtrs[43]);
446 EXPECT_TRUE(V[i] == data[i]);
465 EXPECT_TRUE(mut_array[i] == data[i]);
467 EXPECT_TRUE(mut_array[i] == (324 + data[i]));
unittests/Analysis/LazyCallGraphTest.cpp 269 EXPECT_EQ("a2", Nodes[0]);
270 EXPECT_EQ("b2", Nodes[1]);
271 EXPECT_EQ("c3", Nodes[2]);
284 EXPECT_EQ("b2", Nodes[0]);
285 EXPECT_EQ("d3", Nodes[1]);
298 EXPECT_EQ("c2", Nodes[0]);
299 EXPECT_EQ("d2", Nodes[1]);
329 EXPECT_EQ("d1", Nodes[0]);
330 EXPECT_EQ("d2", Nodes[1]);
331 EXPECT_EQ("d3", Nodes[2]);
345 EXPECT_EQ("c1", Nodes[0]);
346 EXPECT_EQ("c2", Nodes[1]);
347 EXPECT_EQ("c3", Nodes[2]);
361 EXPECT_EQ("b1", Nodes[0]);
362 EXPECT_EQ("b2", Nodes[1]);
363 EXPECT_EQ("b3", Nodes[2]);
379 EXPECT_EQ("a1", Nodes[0]);
380 EXPECT_EQ("a2", Nodes[1]);
381 EXPECT_EQ("a3", Nodes[2]);
483 EXPECT_EQ("d1", Nodes[0]);
484 EXPECT_EQ("d2", Nodes[1]);
485 EXPECT_EQ("d3", Nodes[2]);
493 EXPECT_EQ("b1", Nodes[0]);
494 EXPECT_EQ("b2", Nodes[1]);
495 EXPECT_EQ("b3", Nodes[2]);
503 EXPECT_EQ("c1", Nodes[0]);
504 EXPECT_EQ("c2", Nodes[1]);
505 EXPECT_EQ("c3", Nodes[2]);
513 EXPECT_EQ("a1", Nodes[0]);
514 EXPECT_EQ("a2", Nodes[1]);
515 EXPECT_EQ("a3", Nodes[2]);
unittests/Analysis/ScalarEvolutionTest.cpp 584 GetAddRec(L1, {Exprs[1], Exprs[2], Exprs[3], Exprs[0]})); // 4
584 GetAddRec(L1, {Exprs[1], Exprs[2], Exprs[3], Exprs[0]})); // 4
584 GetAddRec(L1, {Exprs[1], Exprs[2], Exprs[3], Exprs[0]})); // 4
584 GetAddRec(L1, {Exprs[1], Exprs[2], Exprs[3], Exprs[0]})); // 4
586 GetAddRec(L1, {Exprs[1], Exprs[2], Exprs[0], Exprs[3]})); // 5
586 GetAddRec(L1, {Exprs[1], Exprs[2], Exprs[0], Exprs[3]})); // 5
586 GetAddRec(L1, {Exprs[1], Exprs[2], Exprs[0], Exprs[3]})); // 5
586 GetAddRec(L1, {Exprs[1], Exprs[2], Exprs[0], Exprs[3]})); // 5
588 GetAddRec(L1, {Exprs[1], Exprs[3], Exprs[3], Exprs[1]})); // 6
588 GetAddRec(L1, {Exprs[1], Exprs[3], Exprs[3], Exprs[1]})); // 6
588 GetAddRec(L1, {Exprs[1], Exprs[3], Exprs[3], Exprs[1]})); // 6
588 GetAddRec(L1, {Exprs[1], Exprs[3], Exprs[3], Exprs[1]})); // 6
590 Exprs.push_back(GetAdd({Exprs[6], Exprs[3], V2})); // 7
590 Exprs.push_back(GetAdd({Exprs[6], Exprs[3], V2})); // 7
593 GetAddRec(L2, {Exprs[4], Exprs[3], Exprs[3], Exprs[5]})); // 8
593 GetAddRec(L2, {Exprs[4], Exprs[3], Exprs[3], Exprs[5]})); // 8
593 GetAddRec(L2, {Exprs[4], Exprs[3], Exprs[3], Exprs[5]})); // 8
593 GetAddRec(L2, {Exprs[4], Exprs[3], Exprs[3], Exprs[5]})); // 8
596 GetAddRec(L2, {Exprs[4], Exprs[6], Exprs[7], Exprs[3], V0})); // 9
596 GetAddRec(L2, {Exprs[4], Exprs[6], Exprs[7], Exprs[3], V0})); // 9
596 GetAddRec(L2, {Exprs[4], Exprs[6], Exprs[7], Exprs[3], V0})); // 9
596 GetAddRec(L2, {Exprs[4], Exprs[6], Exprs[7], Exprs[3], V0})); // 9
unittests/AsmParser/AsmParserTest.cpp 59 EXPECT_TRUE(isa<GlobalVariable>(Mapping.GlobalValues[0]));
unittests/DebugInfo/CodeView/RandomAccessVisitorTest.cpp 133 if (GlobalState->TypeVector[Index] != Types.getType(TI))
141 if (TI != TestState->Callbacks.Indices[VisitationOrder])
144 if (GlobalState->TypeVector[TI.toArrayIndex()] !=
145 TestState->Callbacks.RawRecords[VisitationOrder])
148 if (GlobalState->Records[TI.toArrayIndex()] !=
149 TestState->Callbacks.VisitedRecords[VisitationOrder])
188 consumeError(Writer.writeObject(GlobalState->AllOffsets[I]));
unittests/DebugInfo/CodeView/TypeIndexDiscoveryTest.cpp 127 discoverTypeIndices(Data, Refs[I]);
134 discoverTypeIndicesInSymbol(Symbols[I], Refs[I]);
134 discoverTypeIndicesInSymbol(Symbols[I], Refs[I]);
308 checkTypeReferences(0, StringList.Ids[0], StringList.Ids[1],
308 checkTypeReferences(0, StringList.Ids[0], StringList.Ids[1],
309 StringList.Ids[2]);
315 checkTypeReferences(0, BuildInfo.Ids[0], BuildInfo.Ids[1], BuildInfo.Ids[2]);
315 checkTypeReferences(0, BuildInfo.Ids[0], BuildInfo.Ids[1], BuildInfo.Ids[2]);
315 checkTypeReferences(0, BuildInfo.Ids[0], BuildInfo.Ids[1], BuildInfo.Ids[2]);
352 checkTypeReferences(0, ArgList.Ids[0], ArgList.Ids[1], ArgList.Ids[2]);
352 checkTypeReferences(0, ArgList.Ids[0], ArgList.Ids[1], ArgList.Ids[2]);
352 checkTypeReferences(0, ArgList.Ids[0], ArgList.Ids[1], ArgList.Ids[2]);
437 checkTypeReferences(3, StringList.Ids[0], StringList.Ids[1],
437 checkTypeReferences(3, StringList.Ids[0], StringList.Ids[1],
438 StringList.Ids[2]);
439 checkTypeReferences(4, BuildInfo.Ids[0], BuildInfo.Ids[1], BuildInfo.Ids[2]);
439 checkTypeReferences(4, BuildInfo.Ids[0], BuildInfo.Ids[1], BuildInfo.Ids[2]);
439 checkTypeReferences(4, BuildInfo.Ids[0], BuildInfo.Ids[1], BuildInfo.Ids[2]);
446 checkTypeReferences(10, ArgList.Ids[0], ArgList.Ids[1], ArgList.Ids[2]);
446 checkTypeReferences(10, ArgList.Ids[0], ArgList.Ids[1], ArgList.Ids[2]);
446 checkTypeReferences(10, ArgList.Ids[0], ArgList.Ids[1], ArgList.Ids[2]);
unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp 198 ASSERT_EQ(Prologue.IncludeDirectories[0].getForm(), DW_FORM_string);
199 EXPECT_STREQ(*Prologue.IncludeDirectories[0].getAsCString(), "a dir");
201 ASSERT_EQ(Prologue.FileNames[0].Name.getForm(), DW_FORM_string);
202 EXPECT_STREQ(*Prologue.FileNames[0].Name.getAsCString(), "a file");
unittests/DebugInfo/MSF/MSFBuilderTest.cpp 197 EXPECT_EQ(OldStreamBlocks[0], NewStreamBlocks[0]);
197 EXPECT_EQ(OldStreamBlocks[0], NewStreamBlocks[0]);
198 EXPECT_NE(NewStreamBlocks[0], NewStreamBlocks[1]);
198 EXPECT_NE(NewStreamBlocks[0], NewStreamBlocks[1]);
239 EXPECT_EQ(OldStreamBlocks[0], NewStreamBlocks[0]);
239 EXPECT_EQ(OldStreamBlocks[0], NewStreamBlocks[0]);
304 EXPECT_EQ(ExpectedNumBlocks, L.StreamMap[I].size());
323 EXPECT_EQ(1U, L.StreamMap[0].size());
326 EXPECT_EQ(B + 2, L.StreamMap[0].front());
381 auto BlocksRef = L.StreamMap[*SN];
unittests/DebugInfo/MSF/MSFCommonTest.cpp 120 EXPECT_EQ(SB.FreeBlockMapBlock, SL.Blocks[0]);
121 EXPECT_EQ(SB.FreeBlockMapBlock + SB.BlockSize, SL.Blocks[1]);
126 EXPECT_EQ(3u - SB.FreeBlockMapBlock, SL.Blocks[0]);
127 EXPECT_EQ(3u - SB.FreeBlockMapBlock + SB.BlockSize, SL.Blocks[1]);
137 EXPECT_EQ(I * SB.BlockSize + SB.FreeBlockMapBlock, SL.Blocks[I]);
unittests/DebugInfo/PDB/HashTableTest.cpp 173 ExpectedIndices[Streams[I]] = I + 1;
unittests/FuzzMutate/ReservoirSamplerTest.cpp 44 Counts[Sampler.getSelection()] += 1;
unittests/IR/CFGBuilder.cpp 138 Update NextUpdate = Updates[UpdateIdx++];
unittests/LineEditor/LineEditor.cpp 70 ASSERT_EQ("int foo()", CA.Completions[0]);
71 ASSERT_EQ("int bar()", CA.Completions[1]);
unittests/Object/SymbolSizeTest.cpp 30 EXPECT_LE(Syms[I].Address, Syms[I + 1].Address);
30 EXPECT_LE(Syms[I].Address, Syms[I + 1].Address);
unittests/ObjectYAML/YAML2ObjTest.cpp 66 ASSERT_TRUE(Errors[0] == "ObjectYAML: repeated symbol name: 'foo'");
67 ASSERT_TRUE(Errors[1] == Errors[0]);
67 ASSERT_TRUE(Errors[1] == Errors[0]);
79 ASSERT_TRUE(Errors[0] == "ObjectYAML: repeated symbol name: 'foo'");
80 ASSERT_TRUE(Errors[1] == Errors[0]);
80 ASSERT_TRUE(Errors[1] == Errors[0]);
unittests/Option/OptionParsingTest.cpp 86 EXPECT_EQ("apple", Es[0]);
87 EXPECT_EQ("bloom", Es[1]);
90 EXPECT_EQ("chuu", Gs[0]);
91 EXPECT_EQ("2", Gs[1]);
158 EXPECT_EQ("foo", AL.getAllArgValues(OPT_B)[0]);
159 EXPECT_EQ("bar", AL.getAllArgValues(OPT_B)[1]);
204 EXPECT_EQ("-B", AL.getAllArgValues(OPT_Slurp)[0]);
205 EXPECT_EQ("--", AL.getAllArgValues(OPT_Slurp)[1]);
206 EXPECT_EQ("foo", AL.getAllArgValues(OPT_Slurp)[2]);
229 EXPECT_EQ(AL.getAllArgValues(OPT_SlurpJoined)[0], "foo");
241 EXPECT_EQ("foo", AL.getAllArgValues(OPT_SlurpJoined)[0]);
242 EXPECT_EQ("bar", AL.getAllArgValues(OPT_SlurpJoined)[1]);
243 EXPECT_EQ("baz", AL.getAllArgValues(OPT_SlurpJoined)[2]);
255 EXPECT_EQ("foo", AL.getAllArgValues(OPT_SlurpJoined)[0]);
256 EXPECT_EQ("bar", AL.getAllArgValues(OPT_SlurpJoined)[1]);
257 EXPECT_EQ("baz", AL.getAllArgValues(OPT_SlurpJoined)[2]);
270 EXPECT_EQ("", AL.getAllArgValues(OPT_B)[0]);
unittests/ProfileData/CoverageMappingTest.cpp 215 std::string Regions = writeCoverageRegions(InputFunctions[I]);
216 readCoverageRegions(Regions, OutputFunctions[I]);
217 OutputFunctions[I].Name = InputFunctions[I].Name;
217 OutputFunctions[I].Name = InputFunctions[I].Name;
218 OutputFunctions[I].Hash = InputFunctions[I].Hash;
218 OutputFunctions[I].Hash = InputFunctions[I].Hash;
220 OutputFunctions[I].Filenames.clear();
275 ASSERT_EQ(Input.Regions[I].Count, Output.Regions[I].Count);
275 ASSERT_EQ(Input.Regions[I].Count, Output.Regions[I].Count);
276 ASSERT_EQ(Input.Regions[I].FileID, Output.Regions[I].FileID);
276 ASSERT_EQ(Input.Regions[I].FileID, Output.Regions[I].FileID);
277 ASSERT_EQ(Input.Regions[I].startLoc(), Output.Regions[I].startLoc());
277 ASSERT_EQ(Input.Regions[I].startLoc(), Output.Regions[I].startLoc());
278 ASSERT_EQ(Input.Regions[I].endLoc(), Output.Regions[I].endLoc());
278 ASSERT_EQ(Input.Regions[I].endLoc(), Output.Regions[I].endLoc());
279 ASSERT_EQ(Input.Regions[I].Kind, Output.Regions[I].Kind);
279 ASSERT_EQ(Input.Regions[I].Kind, Output.Regions[I].Kind);
301 ASSERT_GT(N, Output.Regions[I].FileID);
302 ASSERT_GT(N, Output.Regions[I].LineStart);
303 EXPECT_EQ(FileNames[Output.Regions[I].LineStart],
304 Output.Filenames[Output.Regions[I].FileID]);
304 Output.Filenames[Output.Regions[I].FileID]);
357 EXPECT_EQ(CoverageSegment(1, 1, 10, true), Segments[0]);
358 EXPECT_EQ(CoverageSegment(5, 5, false), Segments[1]);
361 EXPECT_EQ(CoverageSegment(2, 2, 20, true), Segments[0]);
362 EXPECT_EQ(CoverageSegment(6, 6, false), Segments[1]);
384 EXPECT_EQ(CoverageSegment(1, 1, 6, true), Segments[0]);
385 EXPECT_EQ(CoverageSegment(2, 2, false), Segments[1]);
402 EXPECT_EQ(CoverageSegment(1, 1, 1, true), Segments[0]);
403 EXPECT_EQ(CoverageSegment(5, 1, true), Segments[1]);
404 EXPECT_EQ(CoverageSegment(5, 5, false), Segments[2]);
458 EXPECT_EQ(CoverageSegment(1, 1, 1, true), Segments[0]);
459 EXPECT_EQ(CoverageSegment(3, 5, 1, true), Segments[1]);
460 EXPECT_EQ(CoverageSegment(5, 4, 0, false), Segments[2]);
461 EXPECT_EQ(CoverageSegment(7, 3, 0, true), Segments[3]);
462 EXPECT_EQ(CoverageSegment(7, 7, 0, true), Segments[4]);
463 EXPECT_EQ(CoverageSegment(9, 2, 0, false), Segments[5]);
464 EXPECT_EQ(CoverageSegment(9, 7, 1, false), Segments[6]);
465 EXPECT_EQ(CoverageSegment(9, 9, false), Segments[7]);
486 EXPECT_EQ(CoverageSegment(2, 1, 1, true), Segments[0]);
487 EXPECT_EQ(CoverageSegment(8, 10, 0, true), Segments[1]);
488 EXPECT_EQ(CoverageSegment(8, 12, 0, true), Segments[2]);
489 EXPECT_EQ(CoverageSegment(9, 1, 1, true), Segments[3]);
490 EXPECT_EQ(CoverageSegment(11, 13, 2, true), Segments[4]);
492 EXPECT_EQ(CoverageSegment(11, 14, 1, false), Segments[5]);
493 EXPECT_EQ(CoverageSegment(18, 2, false), Segments[6]);
511 EXPECT_EQ(CoverageSegment(1, 1, 1, true), Segments[0]);
512 EXPECT_EQ(CoverageSegment(2, 2, 1, true), Segments[1]);
513 EXPECT_EQ(CoverageSegment(3, 3, 1, true), Segments[2]);
514 EXPECT_EQ(CoverageSegment(4, 4, 1, false), Segments[3]);
517 EXPECT_EQ(CoverageSegment(6, 6, false), Segments[4]);
536 EXPECT_EQ(CoverageSegment(1, 1, 1, true), Segments[0]);
537 EXPECT_EQ(CoverageSegment(2, 2, 1, true), Segments[1]);
538 EXPECT_EQ(CoverageSegment(3, 3, 1, true), Segments[2]);
539 EXPECT_EQ(CoverageSegment(6, 5, 1, true), Segments[3]);
543 EXPECT_EQ(CoverageSegment(7, 7, false), Segments[4]);
563 EXPECT_EQ(CoverageSegment(1, 1, true), Segments[0]);
586 EXPECT_EQ(CoverageSegment(1, 5, 2, true), Segments[0]);
587 EXPECT_EQ(CoverageSegment(1, 9, 1, true), Segments[1]);
588 EXPECT_EQ(CoverageSegment(1, 50, 2, false), Segments[2]);
589 EXPECT_EQ(CoverageSegment(2, 7, 1, true), Segments[3]);
590 EXPECT_EQ(CoverageSegment(2, 34, 2, false), Segments[4]);
591 EXPECT_EQ(CoverageSegment(3, 5, 1, true), Segments[5]);
592 EXPECT_EQ(CoverageSegment(3, 21, 2, true), Segments[6]);
595 EXPECT_EQ(CoverageSegment(4, 4, false), Segments[7]);
597 EXPECT_EQ(CoverageSegment(4, 12, 1, true), Segments[8]);
598 EXPECT_EQ(CoverageSegment(4, 17, false), Segments[9]);
617 EXPECT_EQ(CoverageSegment(1, 1, 1, true), Segments[0]);
618 EXPECT_EQ(CoverageSegment(2, 2, 2, true), Segments[1]);
619 EXPECT_EQ(CoverageSegment(3, 3, 3, true), Segments[2]);
620 EXPECT_EQ(CoverageSegment(4, 4, 2, false), Segments[3]);
621 EXPECT_EQ(CoverageSegment(5, 5, 1, false), Segments[4]);
622 EXPECT_EQ(CoverageSegment(6, 6, 4, true), Segments[5]);
623 EXPECT_EQ(CoverageSegment(7, 7, 1, false), Segments[6]);
624 EXPECT_EQ(CoverageSegment(8, 8, false), Segments[7]);
638 ASSERT_EQ(CounterMappingRegion::ExpansionRegion, Output.Regions[2].Kind);
639 ASSERT_EQ(Counter::getCounter(2), Output.Regions[2].Count);
640 ASSERT_EQ(3U, Output.Regions[2].LineStart);
656 ASSERT_EQ(CoverageSegment(1, 1, 20, true), Segments[0]);
657 ASSERT_EQ(CoverageSegment(4, 7, 30, false), Segments[1]);
658 ASSERT_EQ(CoverageSegment(5, 8, 10, true), Segments[2]);
659 ASSERT_EQ(CoverageSegment(9, 1, 30, false), Segments[3]);
660 ASSERT_EQ(CoverageSegment(9, 9, false), Segments[4]);
661 ASSERT_EQ(CoverageSegment(10, 10, 0, true), Segments[5]);
662 ASSERT_EQ(CoverageSegment(11, 11, false), Segments[6]);
696 ASSERT_EQ(CoverageSegment(1, 2, 0, true), Segments[0]);
697 ASSERT_EQ(CoverageSegment(3, 4, false), Segments[1]);
709 ASSERT_EQ(CoverageSegment(1, 1, 0, true), Segments[0]);
710 ASSERT_EQ(CoverageSegment(4, 7, 0, false), Segments[1]);
711 ASSERT_EQ(CoverageSegment(9, 9, false), Segments[2]);
726 ASSERT_EQ(CoverageSegment(1, 1, 10, true), Segments[0]);
727 ASSERT_EQ(CoverageSegment(3, 3, 50, true), Segments[1]);
728 ASSERT_EQ(CoverageSegment(4, 4, 10, false), Segments[2]);
729 ASSERT_EQ(CoverageSegment(9, 9, false), Segments[3]);
744 EXPECT_EQ(CoverageSegment(1, 1, 30, true), Segments[0]);
745 EXPECT_EQ(CoverageSegment(3, 3, 40, true), Segments[1]);
746 EXPECT_EQ(CoverageSegment(5, 5, 30, false), Segments[2]);
747 EXPECT_EQ(CoverageSegment(9, 9, false), Segments[3]);
766 ASSERT_EQ(CoverageSegment(1, 1, 10, true), Segments[0]);
767 ASSERT_EQ(CoverageSegment(3, 3, 20, true), Segments[1]);
768 ASSERT_EQ(CoverageSegment(4, 4, 10, false), Segments[2]);
769 ASSERT_EQ(CoverageSegment(9, 9, false), Segments[3]);
788 EXPECT_EQ(CoverageSegment(1, 1, 2, true), Segments[0]);
789 EXPECT_EQ(CoverageSegment(3, 1, 10, true), Segments[1]);
790 EXPECT_EQ(CoverageSegment(3, 5, 2, false), Segments[2]);
791 EXPECT_EQ(CoverageSegment(5, 5, false), Segments[3]);
805 ASSERT_EQ("func", Names[0]);
819 ASSERT_EQ("func", Names[0]);
854 EXPECT_EQ(CoverageSegment(1, 1, 10, true), Segments[0]);
855 EXPECT_EQ(CoverageSegment(1, 10, false), Segments[1]);
unittests/ProfileData/InstrProfTest.cpp 83 ASSERT_EQ(1U, I->Counts[0]);
84 ASSERT_EQ(2U, I->Counts[1]);
85 ASSERT_EQ(3U, I->Counts[2]);
86 ASSERT_EQ(4U, I->Counts[3]);
99 ASSERT_EQ(1U, R->Counts[0]);
100 ASSERT_EQ(2U, R->Counts[1]);
105 ASSERT_EQ(3U, R->Counts[0]);
106 ASSERT_EQ(4U, R->Counts[1]);
125 ASSERT_EQ(1U, Counts[0]);
126 ASSERT_EQ(2U, Counts[1]);
131 ASSERT_EQ(3U, Counts[0]);
132 ASSERT_EQ(4U, Counts[1]);
215 ASSERT_EQ(42U, R->Counts[0]);
220 ASSERT_EQ(0U, R->Counts[0]);
221 ASSERT_EQ(0U, R->Counts[1]);
610 ASSERT_EQ(Max, ReadRecord1->Counts[0]);
817 ASSERT_EQ(3U, Counts[0]);
818 ASSERT_EQ(6U, Counts[1]);
823 ASSERT_EQ(15U, Counts[0]);
824 ASSERT_EQ(20U, Counts[1]);
975 StringRef R = Symtab.getFuncName(IndexedInstrProf::ComputeHash(FuncNames1[0]));
977 R = Symtab.getFuncName(IndexedInstrProf::ComputeHash(FuncNames1[1]));
981 N[0] = FuncNames1[2 * I];
982 N[1] = FuncNames1[2 * I + 1];
983 N[2] = FuncNames2[2 * I];
984 N[3] = FuncNames2[2 * I + 1];
1008 EXPECT_EQ(1u, Counts[0]);
1009 EXPECT_EQ(2u, Counts[1]);
1010 EXPECT_EQ(3u, Counts[2]);
1011 EXPECT_EQ(4u, Counts[3]);
1018 EXPECT_EQ(5u, Counts[0]);
1019 EXPECT_EQ(6u, Counts[1]);
1020 EXPECT_EQ(7u, Counts[2]);
unittests/Support/AlignmentTest.cpp 236 const Align A(ValidAlignments[I - 1]);
237 const Align B(ValidAlignments[I]);
259 const MaybeAlign MA(ValidAlignments[I - 1]);
260 const MaybeAlign MB(ValidAlignments[I]);
unittests/Support/BinaryStreamTest.cpp 118 Streams[I].IsContiguous = (I % 2 == 0);
140 ::memcpy(&BrokenInputData[PartitionIndex], Input.data(), RightBytes);
142 ::memcpy(&BrokenInputData[0], Input.data() + RightBytes, LeftBytes);
151 Streams[I * 2].Input = std::move(InByteStream);
152 Streams[I * 2 + 1].Input = std::move(InBrokenStream);
161 Streams[I * 2].Output =
163 Streams[I * 2 + 1].Output = std::make_unique<BrokenStream>(
170 Streams[I * 2].Output =
172 Streams[I * 2 + 1].Output = std::make_unique<BrokenStream>(
179 Streams[I * 2].Input =
181 Streams[I * 2 + 1].Input = std::make_unique<BrokenStream>(
427 ASSERT_EQ(Ints[0], *Iter++);
428 ASSERT_EQ(Ints[1], *Iter++);
429 ASSERT_EQ(Ints[2], *Iter++);
430 ASSERT_EQ(Ints[3], *Iter++);
440 Pairs.size() * sizeof(Pairs[0]));
449 ASSERT_EQ(Pairs[0].first, Iter->first);
450 ASSERT_EQ(Pairs[0].second, Iter->second);
452 ASSERT_EQ(Pairs[1].first, Iter->first);
453 ASSERT_EQ(Pairs[1].second, Iter->second);
569 ArrayRef<uint8_t> IntBytes(reinterpret_cast<uint8_t *>(&Ints[0]),
607 EXPECT_EQ(Enums[I], Value);
640 ASSERT_THAT_ERROR(Reader.readULEB128(Results[I]), Succeeded());
643 EXPECT_EQ(TestValues[I], Results[I]);
643 EXPECT_EQ(TestValues[I], Results[I]);
677 ASSERT_THAT_ERROR(Reader.readSLEB128(Results[I]), Succeeded());
680 EXPECT_EQ(TestValues[I], Results[I]);
680 EXPECT_EQ(TestValues[I], Results[I]);
700 const uint8_t *Bytes = reinterpret_cast<const uint8_t *>(&Foos[0]);
714 EXPECT_EQ(Foos[0], *FPtrOut);
715 EXPECT_EQ(Foos[1], *GPtrOut);
716 EXPECT_EQ(Foos[2], *HPtrOut);
787 ArrayRef<uint8_t> SourceBytes(reinterpret_cast<uint8_t *>(&SourceInts[0]),
unittests/Support/FormatVariadicTest.cpp 47 EXPECT_EQ(kFormatString, Replacements[0].Spec);
48 EXPECT_EQ(ReplacementType::Literal, Replacements[0].Type);
55 EXPECT_EQ("{", Replacements[0].Spec);
56 EXPECT_EQ(ReplacementType::Literal, Replacements[0].Type);
61 EXPECT_EQ("{{{", Replacements[0].Spec);
62 EXPECT_EQ(ReplacementType::Literal, Replacements[0].Type);
69 EXPECT_EQ(ReplacementType::Format, Replacements[0].Type);
70 EXPECT_EQ(0u, Replacements[0].Index);
71 EXPECT_EQ(0u, Replacements[0].Align);
72 EXPECT_EQ("", Replacements[0].Options);
76 EXPECT_EQ(ReplacementType::Format, Replacements[0].Type);
77 EXPECT_EQ(1u, Replacements[0].Index);
78 EXPECT_EQ(0u, Replacements[0].Align);
79 EXPECT_EQ(AlignStyle::Right, Replacements[0].Where);
80 EXPECT_EQ("", Replacements[0].Options);
85 EXPECT_EQ(ReplacementType::Format, Replacements[0].Type);
86 EXPECT_EQ(0u, Replacements[0].Index);
87 EXPECT_EQ(3u, Replacements[0].Align);
88 EXPECT_EQ(AlignStyle::Right, Replacements[0].Where);
89 EXPECT_EQ("", Replacements[0].Options);
94 EXPECT_EQ(ReplacementType::Format, Replacements[0].Type);
95 EXPECT_EQ(0u, Replacements[0].Index);
96 EXPECT_EQ(3u, Replacements[0].Align);
97 EXPECT_EQ(AlignStyle::Left, Replacements[0].Where);
98 EXPECT_EQ("", Replacements[0].Options);
103 EXPECT_EQ(ReplacementType::Format, Replacements[0].Type);
104 EXPECT_EQ(0u, Replacements[0].Index);
105 EXPECT_EQ(3u, Replacements[0].Align);
106 EXPECT_EQ(AlignStyle::Center, Replacements[0].Where);
107 EXPECT_EQ("", Replacements[0].Options);
112 EXPECT_EQ(ReplacementType::Format, Replacements[0].Type);
113 EXPECT_EQ(0u, Replacements[0].Index);
114 EXPECT_EQ(0u, Replacements[0].Align);
115 EXPECT_EQ(AlignStyle::Right, Replacements[0].Where);
116 EXPECT_EQ("foo", Replacements[0].Options);
121 EXPECT_EQ(ReplacementType::Format, Replacements[0].Type);
122 EXPECT_EQ(0u, Replacements[0].Index);
123 EXPECT_EQ(3u, Replacements[0].Align);
124 EXPECT_EQ(AlignStyle::Left, Replacements[0].Where);
125 EXPECT_EQ("foo", Replacements[0].Options);
130 EXPECT_EQ(ReplacementType::Format, Replacements[0].Type);
131 EXPECT_EQ(0u, Replacements[0].Index);
132 EXPECT_EQ(3u, Replacements[0].Align);
133 EXPECT_EQ(AlignStyle::Left, Replacements[0].Where);
134 EXPECT_EQ("foo", Replacements[0].Options);
140 EXPECT_EQ("0:0:1", Replacements[0].Spec);
141 EXPECT_EQ(ReplacementType::Format, Replacements[0].Type);
142 EXPECT_EQ(0u, Replacements[0].Index);
143 EXPECT_EQ(0u, Replacements[0].Align);
144 EXPECT_EQ(AlignStyle::Right, Replacements[0].Where);
145 EXPECT_EQ("0:1", Replacements[0].Options);
150 EXPECT_EQ("0,p+4:foo", Replacements[0].Spec);
151 EXPECT_EQ(ReplacementType::Format, Replacements[0].Type);
152 EXPECT_EQ(0u, Replacements[0].Index);
153 EXPECT_EQ(4u, Replacements[0].Align);
154 EXPECT_EQ(AlignStyle::Right, Replacements[0].Where);
155 EXPECT_EQ('p', Replacements[0].Pad);
156 EXPECT_EQ("foo", Replacements[0].Options);
161 EXPECT_EQ("0,-+4:foo", Replacements[0].Spec);
162 EXPECT_EQ(ReplacementType::Format, Replacements[0].Type);
163 EXPECT_EQ(0u, Replacements[0].Index);
164 EXPECT_EQ(4u, Replacements[0].Align);
165 EXPECT_EQ(AlignStyle::Right, Replacements[0].Where);
166 EXPECT_EQ('-', Replacements[0].Pad);
167 EXPECT_EQ("foo", Replacements[0].Options);
171 EXPECT_EQ("0,+-4:foo", Replacements[0].Spec);
172 EXPECT_EQ(ReplacementType::Format, Replacements[0].Type);
173 EXPECT_EQ(0u, Replacements[0].Index);
174 EXPECT_EQ(4u, Replacements[0].Align);
175 EXPECT_EQ(AlignStyle::Left, Replacements[0].Where);
176 EXPECT_EQ('+', Replacements[0].Pad);
177 EXPECT_EQ("foo", Replacements[0].Options);
181 EXPECT_EQ("0,==4:foo", Replacements[0].Spec);
182 EXPECT_EQ(ReplacementType::Format, Replacements[0].Type);
183 EXPECT_EQ(0u, Replacements[0].Index);
184 EXPECT_EQ(4u, Replacements[0].Align);
185 EXPECT_EQ(AlignStyle::Center, Replacements[0].Where);
186 EXPECT_EQ('=', Replacements[0].Pad);
187 EXPECT_EQ("foo", Replacements[0].Options);
191 EXPECT_EQ("0,:=4:foo", Replacements[0].Spec);
192 EXPECT_EQ(ReplacementType::Format, Replacements[0].Type);
193 EXPECT_EQ(0u, Replacements[0].Index);
194 EXPECT_EQ(4u, Replacements[0].Align);
195 EXPECT_EQ(AlignStyle::Center, Replacements[0].Where);
196 EXPECT_EQ(':', Replacements[0].Pad);
197 EXPECT_EQ("foo", Replacements[0].Options);
204 EXPECT_EQ(ReplacementType::Format, Replacements[0].Type);
205 EXPECT_EQ(0u, Replacements[0].Index);
206 EXPECT_EQ(3u, Replacements[0].Align);
207 EXPECT_EQ("", Replacements[0].Options);
212 EXPECT_EQ(ReplacementType::Format, Replacements[0].Type);
213 EXPECT_EQ(0u, Replacements[0].Index);
214 EXPECT_EQ(3u, Replacements[0].Align);
215 EXPECT_EQ("", Replacements[0].Options);
220 EXPECT_EQ(ReplacementType::Format, Replacements[0].Type);
221 EXPECT_EQ(AlignStyle::Right, Replacements[0].Where);
222 EXPECT_EQ(' ', Replacements[0].Pad);
223 EXPECT_EQ(0u, Replacements[0].Index);
224 EXPECT_EQ(0u, Replacements[0].Align);
225 EXPECT_EQ("foo", Replacements[0].Options);
233 EXPECT_EQ(ReplacementType::Format, Replacements[0].Type);
234 EXPECT_EQ(0u, Replacements[0].Index);
235 EXPECT_EQ(0u, Replacements[0].Align);
236 EXPECT_EQ(AlignStyle::Right, Replacements[0].Where);
237 EXPECT_EQ("", Replacements[0].Options);
240 EXPECT_EQ(ReplacementType::Literal, Replacements[1].Type);
241 EXPECT_EQ(" ", Replacements[1].Spec);
244 EXPECT_EQ(ReplacementType::Format, Replacements[2].Type);
245 EXPECT_EQ(1u, Replacements[2].Index);
246 EXPECT_EQ(0u, Replacements[2].Align);
247 EXPECT_EQ(AlignStyle::Right, Replacements[2].Where);
248 EXPECT_EQ("foo", Replacements[2].Options);
251 EXPECT_EQ(ReplacementType::Literal, Replacements[3].Type);
252 EXPECT_EQ("-", Replacements[3].Spec);
255 EXPECT_EQ(ReplacementType::Format, Replacements[4].Type);
256 EXPECT_EQ(2u, Replacements[4].Index);
257 EXPECT_EQ(3u, Replacements[4].Align);
258 EXPECT_EQ(AlignStyle::Left, Replacements[4].Where);
259 EXPECT_EQ("bar", Replacements[4].Options);
unittests/Support/YAMLIOTest.cpp 117 FooBar& map1 = seq[0];
118 FooBar& map2 = seq[1];
136 EXPECT_EQ(cont.fbs[0].foo, 3);
137 EXPECT_EQ(cont.fbs[0].bar, 5);
138 EXPECT_EQ(cont.fbs[1].foo, 7);
139 EXPECT_EQ(cont.fbs[1].bar, 9);
231 FooBar& map1 = seq2[0];
232 FooBar& map2 = seq2[1];
1182 EXPECT_EQ(documents2[0].str, "Hello\nWorld\n");
1325 EXPECT_TRUE(map2.strings[0].value.equals("one"));
1326 EXPECT_TRUE(map2.strings[1].value.equals("two"));
1328 EXPECT_EQ(1, map2.single[0]);
1330 EXPECT_EQ(10, map2.numbers[0]);
1331 EXPECT_EQ(-30, map2.numbers[1]);
1332 EXPECT_EQ(1024, map2.numbers[2]);
1372 EXPECT_EQ(map2.sequenceOfNumbers[0].size(), 1UL);
1373 EXPECT_EQ(0, map2.sequenceOfNumbers[0][0]);
1373 EXPECT_EQ(0, map2.sequenceOfNumbers[0][0]);
1374 EXPECT_EQ(map2.sequenceOfNumbers[1].size(), 3UL);
1375 EXPECT_EQ(12, map2.sequenceOfNumbers[1][0]);
1375 EXPECT_EQ(12, map2.sequenceOfNumbers[1][0]);
1376 EXPECT_EQ(1, map2.sequenceOfNumbers[1][1]);
1376 EXPECT_EQ(1, map2.sequenceOfNumbers[1][1]);
1377 EXPECT_EQ(-512, map2.sequenceOfNumbers[1][2]);
1377 EXPECT_EQ(-512, map2.sequenceOfNumbers[1][2]);
1378 EXPECT_TRUE(map2.sequenceOfNumbers[2].empty());
1439 EXPECT_EQ(seq[0], 3605U);
1440 EXPECT_EQ(seq[1], 59U);
1466 EXPECT_EQ(seq2[0], 4000U);
1467 EXPECT_EQ(seq2[1], 500U);
1468 EXPECT_EQ(seq2[2], 59U);
1561 EXPECT_EQ(seq[0].kind, kindA);
1562 EXPECT_EQ(seq[0].flags, (uint32_t)a2);
1563 EXPECT_EQ(seq[1].kind, kindB);
1564 EXPECT_EQ(seq[1].flags, (uint32_t)b1);
1591 EXPECT_EQ(seq2[0].kind, kindA);
1592 EXPECT_EQ(seq2[0].flags, (uint32_t)a1);
1593 EXPECT_EQ(seq2[1].kind, kindB);
1594 EXPECT_EQ(seq2[1].flags, (uint32_t)b1);
1595 EXPECT_EQ(seq2[2].kind, kindA);
1596 EXPECT_EQ(seq2[2].flags, (uint32_t)a2);
1597 EXPECT_EQ(seq2[3].kind, kindB);
1598 EXPECT_EQ(seq2[3].flags, (uint32_t)b2);
1599 EXPECT_EQ(seq2[4].kind, kindA);
1600 EXPECT_EQ(seq2[4].flags, (uint32_t)a3);
1675 FooBarMap& map1 = docList2[0];
1676 FooBarMap& map2 = docList2[1];
1733 EXPECT_EQ(docList[0].value, 3.0);
1734 EXPECT_EQ(docList[1].value, 4.5);
1763 EXPECT_EQ(docList2[0].value, 10.25);
1764 EXPECT_EQ(docList2[1].value, -3.75);
1885 EXPECT_EQ(doc2.seq[0].foo, 1);
1886 EXPECT_EQ(doc2.seq[0].bar, 2);
1887 EXPECT_EQ(doc2.seq[1].foo, 0);
1888 EXPECT_EQ(doc2.seq[1].bar, 0);
1889 EXPECT_EQ(doc2.seq[2].foo, -1);
1890 EXPECT_EQ(doc2.seq[2].bar, 1024);
2333 EXPECT_TRUE(Seq2.Tests[0].Numbers.empty());
2334 EXPECT_TRUE(Seq2.Tests[1].Numbers.empty());
2336 EXPECT_EQ(1, Seq2.Tests[2].Numbers[0]);
2336 EXPECT_EQ(1, Seq2.Tests[2].Numbers[0]);
2337 EXPECT_EQ(2, Seq2.Tests[2].Numbers[1]);
2337 EXPECT_EQ(2, Seq2.Tests[2].Numbers[1]);
2338 EXPECT_EQ(3, Seq2.Tests[2].Numbers[2]);
2338 EXPECT_EQ(3, Seq2.Tests[2].Numbers[2]);
2340 EXPECT_TRUE(Seq2.Tests[3].Numbers.empty());
2926 return A[Index];
2967 auto first = llvm::dyn_cast<Scalar>((*seq)[0].get());
2971 auto second = llvm::dyn_cast<Scalar>((*seq)[1].get());
unittests/TableGen/CodeExpanderTest.cpp 40 EXPECT_EQ(Received[i].getLoc(), Expected[i].getLoc());
40 EXPECT_EQ(Received[i].getLoc(), Expected[i].getLoc());
41 EXPECT_EQ(Received[i].getFilename(), Expected[i].getFilename());
41 EXPECT_EQ(Received[i].getFilename(), Expected[i].getFilename());
42 EXPECT_EQ(Received[i].getKind(), Expected[i].getKind());
42 EXPECT_EQ(Received[i].getKind(), Expected[i].getKind());
43 EXPECT_EQ(Received[i].getLineNo(), Expected[i].getLineNo());
43 EXPECT_EQ(Received[i].getLineNo(), Expected[i].getLineNo());
44 EXPECT_EQ(Received[i].getColumnNo(), Expected[i].getColumnNo());
44 EXPECT_EQ(Received[i].getColumnNo(), Expected[i].getColumnNo());
45 EXPECT_EQ(Received[i].getMessage(), Expected[i].getMessage());
45 EXPECT_EQ(Received[i].getMessage(), Expected[i].getMessage());
46 EXPECT_EQ(Received[i].getLineContents(), Expected[i].getLineContents());
46 EXPECT_EQ(Received[i].getLineContents(), Expected[i].getLineContents());
47 EXPECT_EQ(Received[i].getRanges(), Expected[i].getRanges());
47 EXPECT_EQ(Received[i].getRanges(), Expected[i].getRanges());
unittests/TextAPI/ELFYAMLTest.cpp 51 EXPECT_STREQ(Stub->NeededLibs[0].c_str(), "libc.so");
52 EXPECT_STREQ(Stub->NeededLibs[1].c_str(), "libfoo.so");
53 EXPECT_STREQ(Stub->NeededLibs[2].c_str(), "libbar.so");
unittests/TextAPI/TextStubV4Tests.cpp 214 File.addUUID(uuids[0].first, uuids[0].second);
214 File.addUUID(uuids[0].first, uuids[0].second);
215 File.addUUID(uuids[1].first, uuids[1].second);
215 File.addUUID(uuids[1].first, uuids[1].second);
unittests/XRay/FDRBlockVerifierTest.cpp 128 EXPECT_THAT_ERROR(Block[0]->apply(Verifier), Succeeded());
129 EXPECT_THAT_ERROR(Block[1]->apply(Verifier), Succeeded());
130 EXPECT_THAT_ERROR(Block[2]->apply(Verifier), Succeeded());
131 EXPECT_THAT_ERROR(Block[3]->apply(Verifier), Succeeded());
132 EXPECT_THAT_ERROR(Block[4]->apply(Verifier), Succeeded());
133 EXPECT_THAT_ERROR(Block[5]->apply(Verifier), Failed());
unittests/XRay/FDRProducerConsumerTest.cpp 160 EXPECT_THAT(Records[1]->getRecordType(), Eq(R->getRecordType()));
201 EXPECT_THAT(Records[1]->getRecordType(), Eq(R->getRecordType()));
unittests/XRay/GraphTest.cpp 74 EXPECT_EQ(VA[u], EVV->VA);
83 EXPECT_EQ(VA[VVT.first], VVT.second.VA);
100 EXPECT_EQ(VA[u.first] * VA[u.second] * ((u.first > u.second) ? 2 : 1),
100 EXPECT_EQ(VA[u.first] * VA[u.second] * ((u.first > u.second) ? 2 : 1),
110 EXPECT_EQ(VA[EV.first.first] * VA[EV.first.second] *
110 EXPECT_EQ(VA[EV.first.first] * VA[EV.first.second] *
unittests/XRay/ProfileTest.cpp 187 EXPECT_FALSE(errorToBool(Profiles[0].addBlock(Profile::Block{
189 {{Profiles[0].internPath({2, 1}), Profile::Data{1, 1000}}}})));
190 EXPECT_FALSE(errorToBool(Profiles[1].addBlock(Profile::Block{
192 {{Profiles[1].internPath({2, 1}), Profile::Data{1, 1000}}}})));
193 EXPECT_FALSE(errorToBool(Profiles[2].addBlock(Profile::Block{
195 {{Profiles[2].internPath({2, 1}), Profile::Data{1, 1000}}}})));
215 EXPECT_FALSE(errorToBool(Profiles[0].addBlock(Profile::Block{
217 {{Profiles[0].internPath({2, 1}), Profile::Data{1, 1000}},
218 {Profiles[0].internPath({4, 1}), Profile::Data{1, 1000}}}})));
219 EXPECT_FALSE(errorToBool(Profiles[0].addBlock(Profile::Block{
221 {{Profiles[0].internPath({3, 1}), Profile::Data{1, 1000}}}})));
224 EXPECT_FALSE(errorToBool(Profiles[1].addBlock(Profile::Block{
226 {{Profiles[1].internPath({2, 1}), Profile::Data{1, 1000}}}})));
227 EXPECT_FALSE(errorToBool(Profiles[1].addBlock(Profile::Block{
229 {{Profiles[1].internPath({3, 1}), Profile::Data{1, 1000}},
230 {Profiles[1].internPath({4, 1}), Profile::Data{1, 1000}}}})));
unittests/tools/llvm-exegesis/ClusteringTest.cpp 34 Points[0].Measurements = {
36 Points[3].Measurements = {
39 Points[1].Measurements = {
41 Points[4].Measurements = {
44 Points[5].Measurements = {
47 Points[2].Error = "oops";
73 Points[0].Measurements = {
75 Points[1].Measurements = {{"y", 1.02, 0.0}, {"z", 1.98, 0.0}};
86 Points[0].Measurements = {{"x", 0.01, 0.0}, {"y", 1.02, 0.0}};
87 Points[1].Measurements = {{"y", 1.02, 0.0}, {"x", 1.98, 0.0}};
113 Points[0].Measurements = {
115 Points[1].Measurements = {
117 Points[2].Measurements = {
130 Points[0].Measurements = {
132 Points[1].Measurements = {
134 Points[2].Measurements = {
unittests/tools/llvm-exegesis/X86/SnippetFileTest.cpp 80 const auto &Snippet = (*Snippets)[0];
usr/include/c++/7.4.0/bits/random.tcc 3282 __r2 += __k % __n + _M_v[__k - 1];
usr/include/c++/7.4.0/bits/regex.h 1934 { return _Base_type::operator[](_Base_type::size() - 2); }
1942 { return _Base_type::operator[](_Base_type::size() - 1); }
usr/include/c++/7.4.0/bits/regex.tcc 103 __pre.second = __res[0].first;
105 __suf.first = __res[0].second;
usr/include/c++/7.4.0/bits/regex_automaton.h 373 _M_nfa[_M_end]._M_next = __id;
381 _M_nfa[_M_end]._M_next = __s._M_start;
usr/include/c++/7.4.0/bits/regex_automaton.tcc 182 while (__it._M_next >= 0 && (*this)[__it._M_next]._M_opcode()
184 __it._M_next = (*this)[__it._M_next]._M_next;
186 while (__it._M_alt >= 0 && (*this)[__it._M_alt]._M_opcode()
188 __it._M_alt = (*this)[__it._M_alt]._M_next;
204 auto __dup = _M_nfa[__u];
221 auto& __ref = _M_nfa[__v];
usr/include/c++/7.4.0/bits/regex_compiler.tcc 283 auto& __tmp = (*_M_nfa)[__stack.top()];
usr/include/c++/7.4.0/bits/regex_executor.tcc 159 if (__what[__i].matched)
160 _M_cur_results[__i] = __what[__i];
160 _M_cur_results[__i] = __what[__i];
178 auto& __rep_count = _M_rep_count[__i];
251 auto& __res = _M_cur_results[__state._M_subexpr];
265 auto& __res = _M_cur_results[__state._M_subexpr];
350 auto& __submatch = _M_cur_results[__state._M_backref_index];
usr/include/c++/7.4.0/bits/stl_vector.h 847 return (*this)[__n];
utils/PerfectShuffle/PerfectShuffle.cpp 303 Operator *Op = TheOperators[opnum];
utils/TableGen/AsmMatcherEmitter.cpp 1536 auto Alias = std::make_unique<CodeGenInstAlias>(AllInstAliases[i],
2310 assert(ConversionTable[Row].size() % 2 == 0 && "bad conversion row!");
2313 for (unsigned i = 0, e = ConversionTable[Row].size(); i != e; i += 2) {
2314 OS << OperandConversionKinds[ConversionTable[Row][i]] << ", ";
2314 OS << OperandConversionKinds[ConversionTable[Row][i]] << ", ";
2315 if (OperandConversionKinds[ConversionTable[Row][i]] !=
2315 if (OperandConversionKinds[ConversionTable[Row][i]] !=
2317 OS << (unsigned)(ConversionTable[Row][i + 1]) << ", ";
2317 OS << (unsigned)(ConversionTable[Row][i + 1]) << ", ";
2324 auto Key = std::make_tuple((uint8_t)ConversionTable[Row][i + 1],
2324 auto Key = std::make_tuple((uint8_t)ConversionTable[Row][i + 1],
2325 (uint8_t)ConversionTable[Row][i + 2],
2325 (uint8_t)ConversionTable[Row][i + 2],
2326 (uint8_t)ConversionTable[Row][i + 3]);
2326 (uint8_t)ConversionTable[Row][i + 3]);
2704 const SubtargetFeatureInfo *F = Info.getSubtargetFeature(ReqFeatures[i]);
2707 PrintFatalError(R->getLoc(), "Predicate '" + ReqFeatures[i]->getName() +
utils/TableGen/AsmWriterEmitter.cpp 90 if (OpsToPrint[i-1].second == TheOp) {
91 O << "\n case " << OpsToPrint[i-1].first << ":";
110 unsigned DiffOp = Insts[i-1].MatchesAllButOneOp(FirstInst);
118 SimilarInsts.push_back(Insts[i-1]);
132 O << " " << FirstInst.Operands[i].getCode(PassSubtarget);
141 FirstInst.Operands[i]));
182 InstrsForCase[idx] += ", ";
183 InstrsForCase[idx] += Inst.CGI->TheDef->getName();
184 InstIdxs[idx].push_back(i);
202 const auto &Idxs = InstIdxs[CommandIdx];
227 UniqueOperandCommands[CommandIdx] += Command;
228 InstOpsUsed[CommandIdx]++;
234 std::string Instrs = InstrsForCase[i];
241 UniqueOperandCommands[i] = " // " + Instrs + "\n" +
242 UniqueOperandCommands[i];
296 if (AWI.Operands[0].OperandType ==
298 !AWI.Operands[0].Str.empty()) {
299 std::string Str = AWI.Operands[0].Str;
310 if (AWI.Operands[0].OperandType != AsmWriterOperand::isLiteralTextOperand ||
311 AWI.Operands[0].Str.empty()) {
315 std::string Str = AWI.Operands[0].Str;
325 OpcodeInfo[AWI.CGIIndex] = Idx+1;
360 unsigned NumOps = NumInstOpsHandled[i];
361 for (unsigned Idx : InstIdxs[i]) {
362 OpcodeInfo[Instructions[Idx].CGIIndex] |=
362 OpcodeInfo[Instructions[Idx].CGIIndex] |=
365 AsmWriterInst &Inst = Instructions[Idx];
402 O << " " << ((OpcodeInfo[i] >> Shift) & Mask) << "U,\t// "
430 std::vector<std::string> &Commands = TableDrivenOperandPrinters[i];
446 << Commands[1]
448 << Commands[0]
452 O << Commands[0] << "\n\n";
462 O << Commands[j];
519 Idx < e && (AltNameList[Idx]->getName() != AltName);
531 AsmName = AltNames[Idx];
1101 << " " << PrintMethods[i] << "(MI, OpIdx, "
1120 Init *MCOpPred = MCOpPredicates[i]->getValueInit("MCOperandPredicate");
utils/TableGen/CodeEmitterGen.cpp 507 o << " case " << InstList[i] << ":";
utils/TableGen/CodeGenDAGPatterns.cpp 1978 Child->InlinePatternFragments(Child, TP, ChildAlternatives[i]);
1981 if (ChildAlternatives[i].empty())
1984 for (auto NewChild : ChildAlternatives[i])
1998 NewChildren.push_back(ChildAlternatives[i][Idxs[i]]);
1998 NewChildren.push_back(ChildAlternatives[i][Idxs[i]]);
1998 NewChildren.push_back(ChildAlternatives[i][Idxs[i]]);
2020 if (++Idxs[IdxsIdx] == ChildAlternatives[IdxsIdx].size())
2020 if (++Idxs[IdxsIdx] == ChildAlternatives[IdxsIdx].size())
2021 Idxs[IdxsIdx] = 0;
2351 bool MadeChange = TP.getInfer().EnforceInteger(Types[0]);
2353 if (!TP.getInfer().isConcrete(Types[0], false))
2356 ValueTypeByHwMode VVT = TP.getInfer().getConcrete(Types[0], false);
2848 TreePatternNodePtr Child = Children[i];
2951 if (Node == Trees[0].get() && Node->isLeaf()) {
3199 DagInit *DefaultInfo = DefaultOps[i]->getValueAsDag("DefaultOps");
3210 TreePattern P(DefaultOps[i], DI, false, *this);
3224 DefaultOps[i]->getName() +
3231 DefaultOperands[DefaultOps[i]] = DefaultOpInfo;
3755 ResultPattern->setResultIndex(i, ResultIndices[i]);
4381 NewChildren.push_back(ChildVariants[i][Idxs[i]]);
4410 if (++Idxs[IdxsIdx] == ChildVariants[IdxsIdx].size())
4411 Idxs[IdxsIdx] = 0;
4484 GenerateVariantsOf(MaximalChildren[0], AVariants, CDP, DepVars);
4485 GenerateVariantsOf(MaximalChildren[1], BVariants, CDP, DepVars);
4486 GenerateVariantsOf(MaximalChildren[2], CVariants, CDP, DepVars);
4529 GenerateVariantsOf(N->getChildShared(i), ChildVariants[i], CDP, DepVars);
4559 Variants.push_back(std::move(ChildVariants[0])); // Intrinsic id.
4560 Variants.push_back(std::move(ChildVariants[2]));
4561 Variants.push_back(std::move(ChildVariants[1]));
4563 Variants.push_back(std::move(ChildVariants[i]));
4567 Variants.push_back(std::move(ChildVariants[1]));
4568 Variants.push_back(std::move(ChildVariants[0]));
4570 Variants.push_back(std::move(ChildVariants[i]));
4604 FindDepVars(PatternsToMatch[i].getSrcPattern(), DepVars);
4608 GenerateVariantsOf(PatternsToMatch[i].getSrcPatternShared(), Variants,
4616 PatternsToMatch[i].getSrcPattern()->dump(); errs() << "\n");
4625 PatternsToMatch[i].getPredicates();
4627 BitVector &Matches = MatchedPredicates[i];
4634 Matches[p] = (Predicates == PatternsToMatch[p].getPredicates());
4640 MatchedPredicates[p] = Matches;
4651 BitVector &Matches = MatchedPredicates[i];
4663 if (Variant->isIsomorphicTo(PatternsToMatch[p].getSrcPattern(),
4675 PatternsToMatch[i].getSrcRecord(), PatternsToMatch[i].getPredicates(),
4675 PatternsToMatch[i].getSrcRecord(), PatternsToMatch[i].getPredicates(),
4676 Variant, PatternsToMatch[i].getDstPatternShared(),
4677 PatternsToMatch[i].getDstRegs(),
4678 PatternsToMatch[i].getAddedComplexity(), Record::getNewUID()));
utils/TableGen/CodeGenDAGPatterns.h 706 TypeSetByHwMode &getExtType(unsigned ResNo) { return Types[ResNo]; }
707 void setType(unsigned ResNo, const TypeSetByHwMode &T) { Types[ResNo] = T; }
721 void setResultIndex(unsigned ResNo, unsigned RI) { ResultPerm[ResNo] = RI; }
731 void setChild(unsigned i, TreePatternNodePtr N) { Children[i] = N; }
919 void setTree(unsigned i, TreePatternNodePtr Tree) { Trees[i] = Tree; }
953 Copy[i]->InlinePatternFragments(Copy[i], *this, Trees);
953 Copy[i]->InlinePatternFragments(Copy[i], *this, Trees);
989 return TP.getInfer().MergeInTypeInfo(Types[ResNo], VTS);
997 return TP.getInfer().MergeInTypeInfo(Types[ResNo], VTS);
1005 return TP.getInfer().MergeInTypeInfo(Types[ResNo], VTS);
utils/TableGen/CodeGenHwModes.cpp 41 unsigned ModeId = CGH.getHwModeId(Modes[i]->getName());
42 Items.push_back(std::make_pair(ModeId, Objects[i]));
68 ModeIds.insert(std::make_pair(Modes[NewId-1].Name, NewId));
utils/TableGen/CodeGenInstruction.cpp 197 if (OperandList[OpIdx].MINumOperands > 1 && !AllowWholeOp &&
210 DagInit *MIOpInfo = OperandList[OpIdx].MIOperandInfo;
245 if (!Ops[Op.first].Constraints[Op.second].isNone())
249 Ops[Op.first].Constraints[Op.second] =
300 if (!Ops[SrcOp.first].Constraints[SrcOp.second].isNone())
318 Ops[SrcOp.first].Constraints[SrcOp.second] = NewConstraint;
350 if (Op.second >= OperandList[Op.first].DoNotEncode.size())
351 OperandList[Op.first].DoNotEncode.resize(Op.second+1);
352 OperandList[Op.first].DoNotEncode[Op.second] = true;
utils/TableGen/CodeGenInstruction.h 158 OperandInfo &operator[](unsigned i) { return OperandList[i]; }
utils/TableGen/CodeGenIntrinsics.h 184 CodeGenIntrinsic &operator[](size_t Pos) { return Intrinsics[Pos]; }
utils/TableGen/CodeGenMapTable.cpp 301 ColInstrVec[ColIdx] = ColInstr;
391 if (ColInstrs[j] != nullptr) {
396 OutStr += ColInstrs[j]->getName();
535 ColFieldValueMap[ColName].push_back((ValueCols[k])->getElement(j));
545 Init *CurVal = FieldValues[i];
547 if (CurVal == FieldValues[j]) {
557 OS << "\t" << Entry.first << "_" << FieldValues[i]->getAsUnquotedString();
utils/TableGen/CodeGenRegisters.cpp 85 CodeGenSubRegIndex *A = RegBank.getSubRegIdx(Comps[0]);
86 CodeGenSubRegIndex *B = RegBank.getSubRegIdx(Comps[1]);
177 ExplicitSubRegIndices.push_back(RegBank.getSubRegIdx(SRIs[i]));
178 ExplicitSubRegs.push_back(RegBank.getReg(SRs[i]));
666 AsmName = StringInit::get(RegNames[n]);
749 Record *Type = TypeList[i];
766 Orders[0].push_back((*Elements)[i]);
778 Orders[1 + i].append(Order.begin(), Order.end());
856 for (unsigned j = 0, je = Super.Orders[i].size(); j != je; ++j)
857 if (contains(RegBank.getReg(Super.Orders[i][j])))
858 Orders[i].push_back(Super.Orders[i][j]);
858 Orders[i].push_back(Super.Orders[i][j]);
1108 getSubRegIdx(SRIs[i]);
1118 getReg(Regs[i]);
1636 UberRegSet *USet = &UberSets[USetID];
1639 RegSets[i++] = USet;
1729 UberRegSet *UberSet = RegSets[RegBank.getRegIndex(Reg)];
1833 const RegUnitSet &SubSet = RegUnitSets[SubIdx];
1840 const RegUnitSet &SuperSet = RegUnitSets[SuperIdx];
1851 if (RegUnitSets[SubIdx].Name.size() < RegUnitSets[SuperIdx].Name.size())
1851 if (RegUnitSets[SubIdx].Name.size() < RegUnitSets[SuperIdx].Name.size())
1852 RegUnitSets[SuperIdx].Name = RegUnitSets[SubIdx].Name;
1852 RegUnitSets[SuperIdx].Name = RegUnitSets[SubIdx].Name;
1862 unsigned SuperIdx = SuperSetIDs[i];
1863 PrunedUnitSets[i].Name = RegUnitSets[SuperIdx].Name;
1863 PrunedUnitSets[i].Name = RegUnitSets[SuperIdx].Name;
1864 PrunedUnitSets[i].Units.swap(RegUnitSets[SuperIdx].Units);
1864 PrunedUnitSets[i].Units.swap(RegUnitSets[SuperIdx].Units);
1902 dbgs() << "UnitSet " << USIdx << " " << RegUnitSets[USIdx].Name << ":";
1903 for (auto &U : RegUnitSets[USIdx].Units)
1914 dbgs() << "UnitSet " << USIdx << " " << RegUnitSets[USIdx].Name << ":";
1915 for (auto &U : RegUnitSets[USIdx].Units)
1932 std::set_intersection(RegUnitSets[Idx].Units.begin(),
1933 RegUnitSets[Idx].Units.end(),
1934 RegUnitSets[SearchIdx].Units.begin(),
1935 RegUnitSets[SearchIdx].Units.end(),
1943 RegUnitSets[Idx].Name + "+" + RegUnitSets[SearchIdx].Name;
1943 RegUnitSets[Idx].Name + "+" + RegUnitSets[SearchIdx].Name;
1945 std::set_union(RegUnitSets[Idx].Units.begin(),
1946 RegUnitSets[Idx].Units.end(),
1947 RegUnitSets[SearchIdx].Units.begin(),
1948 RegUnitSets[SearchIdx].Units.end(),
1973 dbgs() << "UnitSet " << USIdx << " " << RegUnitSets[USIdx].Name << ":";
1974 for (auto &U : RegUnitSets[USIdx].Units)
2003 if (isRegUnitSubSet(RCRegUnits, RegUnitSets[USIdx].Units)) {
2005 RegClassUnitSets[RCIdx].push_back(USIdx);
2009 assert(!RegClassUnitSets[RCIdx].empty() && "missing unit set for regclass");
2020 RegUnitSet &RUSet = RegUnitSets[i];
2028 if (RegClassUnitSets[RCUnitSetsIdx] == RUSets) {
2036 RegClassUnitSets[RCUnitSetsIdx].swap(RUSets);
2106 RegUnitSets[Idx].Weight = getRegUnitSetWeight(RegUnitSets[Idx].Units);
2106 RegUnitSets[Idx].Weight = getRegUnitSetWeight(RegUnitSets[Idx].Units);
2118 RegUnitSets[RegUnitSetOrder[Idx]].Order = Idx;
2118 RegUnitSets[RegUnitSetOrder[Idx]].Order = Idx;
utils/TableGen/CodeGenSchedule.cpp 350 if (OpcodeMasks[OpcodeIdx].first[ProcIndex]) {
356 OpcodeMasks[OpcodeIdx].first |= ProcMask;
357 OpcodeMasks[OpcodeIdx].second |= PredMask;
358 OpcodeInfo &OI = OpcodeMappings[OpcodeIdx].second;
371 const std::pair<APInt, APInt> &LhsMasks = OpcodeMasks[LhsIdx];
372 const std::pair<APInt, APInt> &RhsMasks = OpcodeMasks[RhsIdx];
418 STIPredicateFunction &PreviousDef = STIPredicates[It->second];
693 SchedWrites[WIdx].dump();
698 SchedReads[RIdx].dump();
913 if (SC.ProcIndices[0] != 0)
929 dbgs() << " " << SchedWrites[*WI].Name;
931 dbgs() << " " << SchedReads[*RI].Name;
935 const RecVec &RWDefs = SchedClasses[SCIdx].InstRWs;
948 dbgs() << " " << SchedWrites[WIdx].Name;
950 dbgs() << " " << SchedReads[RIdx].Name;
984 Name += SchedWrites[Idx].Name;
988 Name += SchedReads[Idx].Name;
1019 if (Idx || SchedClasses[0].isKeyEqual(ItinClassDef, OperWrites, OperReads)) {
1021 std::set_union(SchedClasses[Idx].ProcIndices.begin(),
1022 SchedClasses[Idx].ProcIndices.end(),
1025 SchedClasses[Idx].ProcIndices = std::move(PI);
1069 const RecVec &RWDefs = SchedClasses[OldSCIdx].InstRWs;
1077 assert(SchedClasses[OldSCIdx].ProcIndices[0] == 0 &&
1077 assert(SchedClasses[OldSCIdx].ProcIndices[0] == 0 &&
1097 << SchedClasses[OldSCIdx].Name << " on "
1099 SchedClasses[OldSCIdx].InstRWs.push_back(InstRWDef);
1112 SC.ItinClassDef = SchedClasses[OldSCIdx].ItinClassDef;
1113 SC.Writes = SchedClasses[OldSCIdx].Writes;
1114 SC.Reads = SchedClasses[OldSCIdx].Reads;
1119 for (Record *OldRWDef : SchedClasses[OldSCIdx].InstRWs) {
1174 ProcModel.ItinDefList[SC.Index] = ItinData;
1185 assert(!ProcModel.ItinDefList[0] && "NoItinerary class can't have rec");
1188 if (!ProcModel.ItinDefList[i])
1190 << " missing itinerary for class " << SchedClasses[i].Name
1209 ProcModels[I->second].ItinRWDefs.push_back(RWDef);
1231 assert(SchedClasses[Idx].Index == Idx && "bad SCIdx");
1233 if (SchedClasses[Idx].ItinClassDef)
1234 inferFromItinClass(SchedClasses[Idx].ItinClassDef, Idx);
1235 if (!SchedClasses[Idx].InstRWs.empty())
1237 if (!SchedClasses[Idx].Writes.empty()) {
1238 inferFromRW(SchedClasses[Idx].Writes, SchedClasses[Idx].Reads,
1238 inferFromRW(SchedClasses[Idx].Writes, SchedClasses[Idx].Reads,
1239 Idx, SchedClasses[Idx].ProcIndices);
1250 const CodeGenProcModel &PM = ProcModels[PIdx];
1271 for (unsigned I = 0, E = SchedClasses[SCIdx].InstRWs.size(); I != E; ++I) {
1272 assert(SchedClasses[SCIdx].InstRWs.size() == E && "InstrRWs was mutated!");
1273 Record *Rec = SchedClasses[SCIdx].InstRWs[I];
1273 Record *Rec = SchedClasses[SCIdx].InstRWs[I];
1466 SmallVectorImpl<unsigned> &ProcIndices = TransVec[TransIdx].ProcIndices;
1483 if (mutuallyExclusive(PredDef, TransVec[TransIdx].PredTerm))
1495 TransVec.push_back(TransVec[TransIdx]);
1508 PredTransition &Trans = TransVec[VInfo.TransVecIdx];
1588 TransVec[TransIdx].ReadSequences.back().push_back(*RWI);
1590 TransVec[TransIdx].WriteSequences.back().push_back(*RWI);
1702 LastTransitions[0].WriteSequences.emplace_back();
1703 SmallVectorImpl<unsigned> &Seq = LastTransitions[0].WriteSequences.back();
1711 LastTransitions[0].ReadSequences.emplace_back();
1712 SmallVectorImpl<unsigned> &Seq = LastTransitions[0].ReadSequences.back();
1728 if (LastTransitions[0].PredTerm.empty())
1740 if (!PM.ProcResourceDefs[i]->isSubClassOf("ProcResGroup"))
1743 PM.ProcResourceDefs[i]->getValueAsListOfDefs("Resources");
1759 if (!PM.ProcResourceDefs[i]->isSubClassOf("ProcResGroup"))
1762 PM.ProcResourceDefs[i]->getValueAsListOfDefs("Resources");
1764 if (!PM.ProcResourceDefs[j]->isSubClassOf("ProcResGroup"))
1767 PM.ProcResourceDefs[j]->getValueAsListOfDefs("Resources");
1775 PrintFatalError((PM.ProcResourceDefs[i])->getLoc(),
1777 + PM.ProcResourceDefs[j]->getName()
1813 int Cost = RegisterCosts.size() > I ? RegisterCosts[I] : 1;
1821 CGRF.Costs.emplace_back(RegisterClasses[I], Cost, AllowMoveElim);
1989 const CodeGenProcModel &PM = ProcModels[PIdx];
2121 RecVec &WRDefs = ProcModels[PIdx].WriteResDefs;
2130 addProcResource(*WritePRI, ProcModels[PIdx], ProcWriteResDef->getLoc());
2137 RecVec &RADefs = ProcModels[PIdx].ReadAdvanceDefs;
utils/TableGen/CodeGenSchedule.h 489 return ProcModels[I->second];
538 return SchedClasses[Idx];
utils/TableGen/CodeGenTarget.cpp 224 TargetRec = Targets[0];
260 return LI[AsmParserNum];
272 return LI[i];
291 return LI[AsmWriterNum];
344 return Candidates[0];
406 Instructions[Insts[i]] = std::make_unique<CodeGenInstruction>(Insts[i]);
406 Instructions[Insts[i]] = std::make_unique<CodeGenInstruction>(Insts[i]);
547 if (PropList[i]->getName() == "SDNPHasChain") {
549 } else if (PropList[i]->getName() == "SDNPOptInGlue") {
551 } else if (PropList[i]->getName() == "SDNPMayStore") {
553 } else if (PropList[i]->getName() == "SDNPMayLoad") {
555 } else if (PropList[i]->getName() == "SDNPSideEffect") {
557 } else if (PropList[i]->getName() == "SDNPMemOperand") {
559 } else if (PropList[i]->getName() == "SDNPVariadic") {
561 } else if (PropList[i]->getName() == "SDNPWantRoot") {
563 } else if (PropList[i]->getName() == "SDNPWantParent") {
567 PropList[i]->getName() +
584 bool isTarget = Defs[I]->getValueAsBit("isTarget");
586 Intrinsics.push_back(CodeGenIntrinsic(Defs[I]));
595 if (Intrinsics[I].TargetPrefix != Targets.back().Name) {
597 Targets.push_back({Intrinsics[I].TargetPrefix, I, 0});
690 VT = OverloadedVTs[MatchTy];
726 VT = OverloadedVTs[MatchTy];
utils/TableGen/DAGISelEmitter.cpp 168 if (Matcher *M = ConvertPatternToMatcher(*Patterns[i], Variant, CGP))
utils/TableGen/DAGISelMatcherEmitter.cpp 868 OS << " case " << i << ": return " << PatternPredicates[i] << ";\n";
897 const ComplexPattern &P = *ComplexPatterns[i];
953 CGP.getSDNodeTransform(NodeXForms[i]);
960 OS << "// " << NodeXForms[i]->getName();
982 OpcodeFreq[M->getKind()]++;
1057 << " = " << OpcodeFreq[i] << '\n';
utils/TableGen/DAGISelMatcherGen.cpp 899 HandledReg = II.ImplicitDefs[0];
1041 HandledReg = II.ImplicitDefs[0];
utils/TableGen/DFAPacketizerEmitter.cpp 214 Record *Proc = ProcItinList[i];
226 FUNameToBitsMap[FUs[j]->getName()] = FuncResources;
227 LLVM_DEBUG(dbgs() << " " << FUs[j]->getName() << ":0x"
255 Record *Func = ComboFuncList[i];
265 Record *FuncData = FUs[j];
377 Record *ItinData = ItinDataList[j];
440 Record *Proc = ProcItinList[i];
519 const std::vector<unsigned> &InsnClass = allInsnClasses[i];
utils/TableGen/ExegesisEmitter.cpp 104 Target = Targets[0]->getName();
utils/TableGen/FastISelEmitter.cpp 73 return PredsByName[i];
840 MI->second[i].emitImmediatePredicate(OS, ImmediatePredicates);
842 MI->second[i].PrintManglingSuffix(OS, ImmediatePredicates);
844 if (!MI->second[i].empty())
846 MI->second[i].PrintArguments(OS);
utils/TableGen/FixedLenDecoderEmitter.cpp 467 return Filters[BestIndex];
601 BitValueArray[StartBit + bitIndex] = BIT_UNSET;
624 BitValueArray[StartBit + bitIndex] = BIT_TRUE;
626 BitValueArray[StartBit + bitIndex] = BIT_FALSE;
654 Table[FixupIdx] = (uint8_t)Delta;
655 Table[FixupIdx + 1] = (uint8_t)(Delta >> 8);
656 Table[FixupIdx + 2] = (uint8_t)(Delta >> 16);
714 Table[PrevFilter] = (uint8_t)NumToSkip;
715 Table[PrevFilter + 1] = (uint8_t)(NumToSkip >> 8);
716 Table[PrevFilter + 2] = (uint8_t)(NumToSkip >> 16);
999 if (Insn[StartBit + i] == BIT_UNSET)
1002 if (Insn[StartBit + i] == BIT_TRUE)
1369 unsigned NumBits = EndBits[I-1] - StartBits[I-1] + 1;
1369 unsigned NumBits = EndBits[I-1] - StartBits[I-1] + 1;
1371 TableInfo.Table.push_back(StartBits[I-1]);
1374 encodeULEB128(FieldVals[I-1], Buffer);
1499 runSingleFilter(StartBits[0], EndBits[0] - StartBits[0] + 1, true);
1499 runSingleFilter(StartBits[0], EndBits[0] - StartBits[0] + 1, true);
1499 runSingleFilter(StartBits[0], EndBits[0] - StartBits[0] + 1, true);
1529 if (FilterBitValues[BitIndex] == BIT_TRUE ||
1530 FilterBitValues[BitIndex] == BIT_FALSE)
1541 switch (bitAttrs[BitIndex]) {
1543 if (insn[BitIndex] == BIT_UNSET)
1544 bitAttrs[BitIndex] = ATTR_ALL_UNSET;
1546 bitAttrs[BitIndex] = ATTR_ALL_SET;
1549 if (insn[BitIndex] == BIT_UNSET)
1550 bitAttrs[BitIndex] = ATTR_MIXED;
1553 if (insn[BitIndex] != BIT_UNSET)
1554 bitAttrs[BitIndex] = ATTR_MIXED;
1587 bitAttr_t bitAttr = bitAttrs[BitIndex];
1683 unsigned Usefulness = Filters[i].usefulness();
1843 TiedNames[InOutOperands[i].second] = InOutOperands[SO.first].second;
1843 TiedNames[InOutOperands[i].second] = InOutOperands[SO.first].second;
1844 TiedNames[InOutOperands[SO.first].second] = InOutOperands[i].second;
1844 TiedNames[InOutOperands[SO.first].second] = InOutOperands[i].second;
2014 [SO.second]);
2443 const Record *EncodingDef = NumberedEncodings[i].EncodingDef;
2444 const CodeGenInstruction *Inst = NumberedEncodings[i].Inst;
2465 if (!NumberedEncodings[i].HwModeName.empty())
2467 std::string("_") + NumberedEncodings[i].HwModeName.str();
utils/TableGen/GlobalISelEmitter.cpp 2292 for (auto &OP : Operands[0]->predicates())
2294 Operands[0]->eraseNullPredicates();
5451 if (!Matchers[I]->getFirstCondition().isIdentical(FirstCondition))
5456 Matchers[I]->popFirstCondition();
5544 Condition = Matchers[0]->popFirstCondition();
5546 Matchers[I]->popFirstCondition();
5598 Table << MatchTable::LineBreak << V << MatchTable::JumpTarget(LabelIDs[I]);
5603 Table << MatchTable::Label(LabelIDs[I]);
5604 Matchers[I]->emit(Table);
utils/TableGen/InfoByHwMode.cpp 95 const PairType *P = Pairs[i];
187 const PairType *P = Pairs[i];
utils/TableGen/InstrInfoEmitter.cpp 137 Record *OpR = OperandList[j].Rec;
394 OS << " " << OperandOffsets[I] << ",\n";
403 if (I == OperandOffsets[CurOffset]) {
406 while (OperandOffsets[++CurOffset] == I)
409 Record *OpR = OperandRecords[I];
utils/TableGen/IntrinsicEmitter.cpp 281 Sig.push_back((Number << 3) | ArgCodes[Number]);
325 assert(NextArgCode < ArgCodes.size() && ArgCodes[NextArgCode] == Tmp &&
488 if (TypeSig[i] > 15) {
492 Result = (Result << 4) | TypeSig[e-i-1];
522 if (FixedEncodings[i] != ~0U) {
523 OS << "0x" << Twine::utohexstr(FixedEncodings[i]) << ", ";
utils/TableGen/OptParserEmitter.cpp 125 const Record &R = *Opts[i];
208 const Record &R = *Opts[i];
253 OS << AliasArgs[i] << "\\0";
306 const Record &R = *Opts[I];
utils/TableGen/PseudoLoweringEmitter.cpp 288 evaluateExpansion(Insts[i]);
utils/TableGen/RISCVCompressInstEmitter.cpp 751 Init *MCOpPred = MCOpPredicates[i]->getValueInit("MCOperandPredicate");
754 << " // " << MCOpPredicates[i]->getName().str() << SI->getValue()
786 evaluateCompressPat(Insts[i]);
utils/TableGen/RegisterBankEmitter.cpp 223 RCsGroupedByWord[RC->EnumValue / 32].push_back(RC);
281 StringRef TargetName = Targets[0]->getName();
utils/TableGen/RegisterInfoEmitter.cpp 293 PSets[i].reserve(PSetIDs.size());
296 PSets[i].push_back(RegBank.getRegPressureSet(*PSetI).Order);
298 llvm::sort(PSets[i]);
299 PSetsSeqs.add(PSets[i]);
317 OS << PSetsSeqs.get(PSets[i]) << ",";
334 OS << PSetsSeqs.get(PSets[RegBank.getRegUnit(UnitIdx).RegClassUnitSetsIdx])
414 int DwarfRegNo = I->second[i];
480 int RegNo = I->second[i];
1537 Record *CSRSet = CSRSets[i];
utils/TableGen/SearchableTableEmitter.cpp 592 Enum.Entries[i]->second = i;
utils/TableGen/SubtargetEmitter.cpp 163 Record *Def = DefList[i];
184 unsigned Bit = FeatureMap.lookup(FeatureList[j]);
221 Record *Feature = FeatureList[i];
305 const Record *Stage = StageList[i];
317 ItinString += Name + "FU::" + UnitList[j]->getName().str();
348 const int OCycle = OperandCycleList[i];
363 ItinString += Name + "Bypass::" + BypassList[i]->getName().str();
399 OS << " const unsigned " << FUs[j]->getName()
411 OS << " const unsigned " << BPs[j]->getName()
526 ItinList[SchedClassIdx] = Intinerary;
586 InstrItinerary &Intinerary = ItinList[j];
940 Record *PRDef = PRVec[i];
958 Cycles.push_back(Cycles[i]);
974 Cycles.push_back(Cycles[i]);
1128 WPREntry.ProcResourceIdx = ProcModel.getProcResourceIdx(PRVec[PRIdx]);
1130 WPREntry.Cycles = Cycles[PRIdx];
1137 if (WriteProcResources[WPRIdx].ProcResourceIdx
1139 WriteProcResources[WPRIdx].Cycles += WPREntry.Cycles;
1154 FindReadAdvance(SchedModels.getSchedRead(Reads[UseIdx]), ProcModel);
1214 if (SchedTables.WriterNames[idx + i].find(WriterNames[i]) ==
1214 if (SchedTables.WriterNames[idx + i].find(WriterNames[i]) ==
1216 SchedTables.WriterNames[idx + i] += std::string("_") + WriterNames[i];
1216 SchedTables.WriterNames[idx + i] += std::string("_") + WriterNames[i];
1253 MCWriteProcResEntry &WPREntry = SchedTables.WriteProcResources[WPRIdx];
1269 MCWriteLatencyEntry &WLEntry = SchedTables.WriteLatencies[WLIdx];
1274 OS << " // #" << WLIdx << " " << SchedTables.WriterNames[WLIdx] << '\n';
1285 MCReadAdvanceEntry &RAEntry = SchedTables.ReadAdvanceEntries[RAIdx];
1302 SchedTables.ProcSchedClasses[1 + (PI - SchedModels.procModelBegin())];
1318 MCSchedClassDesc &MCDesc = SCTab[SCIdx];
utils/TableGen/SubtargetFeatureInfo.cpp 78 Names[SF.second.Index] = SF.second.getEnumName();
82 OS << " \"" << Names[I] << "\",\n";
utils/TableGen/WebAssemblyDisassemblerEmitter.cpp 126 if (OperandTable[J + K] != CurOperandList[K]) break;
126 if (OperandTable[J + K] != CurOperandList[K]) break;
utils/TableGen/X86DisassemblerTables.cpp 1053 InstructionSpecifiers[uid];
1055 InstructionSpecifiers[decision.instructionIDs[index]];
1100 InstructionSpecifiers[uid].insnContext, noPrefix,
utils/TableGen/X86DisassemblerTables.h 271 return InstructionSpecifiers[uid];
utils/TableGen/X86FoldTablesEmitter.cpp 222 return RegRec->getValueAsListOfDefs("RegTypes")[0]->getValueAsInt("Size");
utils/TableGen/X86RecognizableInstr.cpp 112 if (Predicates[i]->getName().find("Not64Bit") != Name.npos ||
113 Predicates[i]->getName().find("In32Bit") != Name.npos) {
117 if (Predicates[i]->getName().find("In64Bit") != Name.npos) {
utils/benchmark/src/benchmark.cc 207 pool[ti] = std::thread(&RunInThread, &b, iters,
utils/benchmark/src/benchmark_register.cc 178 const auto& arg_name = family->arg_names_[arg_i];
181 StrFormat("%s:", family->arg_names_[arg_i].c_str());
284 AddRange(&arglists[i], ranges[i].first, ranges[i].second,
286 total *= arglists[i].size();
296 tmp.push_back(arglists[j].at(ctr[j]));
296 tmp.push_back(arglists[j].at(ctr[j]));
302 if (ctr[j] + 1 < arglists[j].size()) {
302 if (ctr[j] + 1 < arglists[j].size()) {
303 ++ctr[j];
306 ctr[j] = 0;
utils/unittest/googlemock/include/gmock/gmock-matchers.h 3191 explanations[exam_pos] = s.str();
3226 PrintIfNotEmpty(explanations[exam_pos], listener->stream());
3236 const internal::string& s = explanations[i];
3279 matched_[SpaceIndex(ilhs, irhs)] = b ? 1 : 0;
utils/unittest/googlemock/src/gmock-matchers.cc 225 GTEST_CHECK_(left_[ilhs] == kUnused)
226 << "ilhs: " << ilhs << ", left_[ilhs]: " << left_[ilhs];
233 size_t irhs = left_[ilhs];
261 if ((*seen)[irhs])
266 (*seen)[irhs] = 1;
277 if (right_[irhs] == kUnused || TryAugment(right_[irhs], seen)) {
277 if (right_[irhs] == kUnused || TryAugment(right_[irhs], seen)) {
279 left_[ilhs] = irhs;
280 right_[irhs] = ilhs;
350 *listener << sep << " - element #" << matches[mi].first
351 << " is matched by matcher #" << matches[mi].second;
362 char& b = matched_[SpaceIndex(ilhs, irhs)];
376 char& b = matched_[SpaceIndex(ilhs, irhs)];
455 element_matched[ilhs] |= matched;
456 matcher_matched[irhs] |= matched;
464 if (matcher_matched[mi])
483 if (element_matched[ei])
utils/unittest/googletest/src/gtest-death-test.cc 928 return &args_[0];
1326 || !ParseNaturalNumber(fields[1], &line)
1327 || !ParseNaturalNumber(fields[2], &index)
1328 || !ParseNaturalNumber(fields[3], &write_fd)) {
1335 return new InternalRunDeathTestFlag(fields[0], line, index, write_fd);
utils/unittest/googletest/src/gtest-internal-inl.h 327 std::swap((*v)[selected], (*v)[last_in_range]);
327 std::swap((*v)[selected], (*v)[last_in_range]);
586 return index < 0 ? NULL : test_cases_[index];
utils/unittest/googletest/src/gtest.cc 1037 costs[l_i][0] = static_cast<double>(l_i);
1037 costs[l_i][0] = static_cast<double>(l_i);
1038 best_move[l_i][0] = kRemove;
1038 best_move[l_i][0] = kRemove;
1041 for (size_t r_i = 1; r_i < costs[0].size(); ++r_i) {
1042 costs[0][r_i] = static_cast<double>(r_i);
1042 costs[0][r_i] = static_cast<double>(r_i);
1043 best_move[0][r_i] = kAdd;
1043 best_move[0][r_i] = kAdd;
1050 costs[l_i + 1][r_i + 1] = costs[l_i][r_i];
1050 costs[l_i + 1][r_i + 1] = costs[l_i][r_i];
1050 costs[l_i + 1][r_i + 1] = costs[l_i][r_i];
1050 costs[l_i + 1][r_i + 1] = costs[l_i][r_i];
1051 best_move[l_i + 1][r_i + 1] = kMatch;
1051 best_move[l_i + 1][r_i + 1] = kMatch;
1055 const double add = costs[l_i + 1][r_i];
1055 const double add = costs[l_i + 1][r_i];
1056 const double remove = costs[l_i][r_i + 1];
1056 const double remove = costs[l_i][r_i + 1];
1057 const double replace = costs[l_i][r_i];
1057 const double replace = costs[l_i][r_i];
1059 costs[l_i + 1][r_i + 1] = add + 1;
1059 costs[l_i + 1][r_i + 1] = add + 1;
1060 best_move[l_i + 1][r_i + 1] = kAdd;
1060 best_move[l_i + 1][r_i + 1] = kAdd;
1062 costs[l_i + 1][r_i + 1] = remove + 1;
1062 costs[l_i + 1][r_i + 1] = remove + 1;
1063 best_move[l_i + 1][r_i + 1] = kRemove;
1063 best_move[l_i + 1][r_i + 1] = kRemove;
1067 costs[l_i + 1][r_i + 1] = replace + 1.00001;
1067 costs[l_i + 1][r_i + 1] = replace + 1.00001;
1068 best_move[l_i + 1][r_i + 1] = kReplace;
1068 best_move[l_i + 1][r_i + 1] = kReplace;
1076 EditType move = best_move[l_i][r_i];
1076 EditType move = best_move[l_i][r_i];
2748 return index < 0 ? NULL : test_info_list_[index];
2800 test_indices_[i] = static_cast<int>(i);
3283 if (listeners_[i] == listener) {
3332 listeners_[i]->OnTestIterationStart(unit_test, iteration);
3341 listeners_[i]->OnTestIterationEnd(unit_test, iteration);
4123 const internal::TraceInfo& trace = impl_->gtest_trace_stack()[i - 1];
4802 TestCase* const test_case = test_cases_[i];
4807 TestInfo* const test_info = test_case->test_info_list()[j];
4870 const TestCase* const test_case = test_cases_[i];
4949 test_cases_[i]->ShuffleTests(random());
4957 test_cases_[i]->UnshuffleTests();
4959 test_case_indices_[i] = static_cast<int>(i);
5267 if (lines[i].empty())
5269 if (!ParseGoogleTestFlag(lines[i].c_str()))