Home
last modified time | relevance | path

Searched refs:StartIdx (Results 1 – 25 of 42) sorted by relevance

12

/llvm-project-15.0.7/llvm/unittests/Support/
H A DSuffixTreeTest.cpp32 EXPECT_EQ(SimpleRepetitionData[StartIdx], 1u); in TEST()
33 EXPECT_EQ(SimpleRepetitionData[StartIdx + 1], 2u); in TEST()
59 for (unsigned StartIdx : RS.StartIndices) { in TEST() local
60 IsExpectedIndex = (StartIdx == 0u || StartIdx == 3u); in TEST()
67 for (unsigned StartIdx : RS.StartIndices) { in TEST() local
68 IsExpectedIndex = (StartIdx == 1u || StartIdx == 4u); in TEST()
94 std::advance(RRDIt, StartIdx); in TEST()
130 for (unsigned StartIdx : RS.StartIndices) { in TEST() local
131 IsExpectedIndex = (StartIdx == 0u || StartIdx == 3u); in TEST()
134 std::advance(RRDIt, StartIdx); in TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/Support/
H A DSuffixTree.cpp42 unsigned StartIdx, unsigned Edge) { in insertLeaf() argument
44 assert(StartIdx <= LeafEndIdx && "String can't start after it ends!"); in insertLeaf()
47 SuffixTreeNode(StartIdx, &LeafEndIdx, nullptr); in insertLeaf()
54 unsigned StartIdx, in insertInternalNode() argument
57 assert(StartIdx <= EndIdx && "String can't start after it ends!"); in insertInternalNode()
58 assert(!(!Parent && StartIdx != EmptyIdx) && in insertInternalNode()
63 new (NodeAllocator.Allocate()) SuffixTreeNode(StartIdx, E, Root); in insertInternalNode()
147 if (Str[NextNode->StartIdx + Active.Len] == LastChar) { in extend()
175 insertInternalNode(Active.Node, NextNode->StartIdx, in extend()
184 NextNode->StartIdx += Active.Len; in extend()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DSuffixTree.h50 unsigned StartIdx = EmptyIdx; member
93 bool isRoot() const { return StartIdx == EmptyIdx; } in isRoot()
106 return *EndIdx - StartIdx + 1; in size()
109 SuffixTreeNode(unsigned StartIdx, unsigned *EndIdx, SuffixTreeNode *Link) in SuffixTreeNode()
110 : StartIdx(StartIdx), EndIdx(EndIdx), Link(Link) {} in SuffixTreeNode()
197 SuffixTreeNode *insertLeaf(SuffixTreeNode &Parent, unsigned StartIdx,
208 SuffixTreeNode *insertInternalNode(SuffixTreeNode *Parent, unsigned StartIdx,
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DRegisterBankInfo.cpp662 int StartIdx = OpToNewVRegIdx[OpIdx]; in getVRegsMem() local
664 if (StartIdx == OperandsMapper::DontKnowIdx) { in getVRegsMem()
668 StartIdx = NewVRegs.size(); in getVRegsMem()
669 OpToNewVRegIdx[OpIdx] = StartIdx; in getVRegsMem()
674 getNewVRegsEnd(StartIdx, NumPartialVal); in getVRegsMem()
676 return make_range(&NewVRegs[StartIdx], End); in getVRegsMem()
687 assert((NewVRegs.size() == StartIdx + NumVal || in getNewVRegsEnd()
733 int StartIdx = OpToNewVRegIdx[OpIdx]; in getVRegs() local
735 if (StartIdx == OperandsMapper::DontKnowIdx) in getVRegs()
741 getNewVRegsEnd(StartIdx, PartMapSize); in getVRegs()
[all …]
H A DLiveInterval.cpp120 VNInfo *extendInBlock(SlotIndex StartIdx, SlotIndex Use) { in extendInBlock() argument
128 if (I->end <= StartIdx) in extendInBlock()
136 SlotIndex StartIdx, SlotIndex Use) { in extendInBlock() argument
142 return std::make_pair(nullptr, LR->isUndefIn(Undefs, StartIdx, BeforeUse)); in extendInBlock()
144 if (I->end <= StartIdx) in extendInBlock()
550 SlotIndex StartIdx, SlotIndex Kill) { in extendInBlock() argument
553 return CalcLiveRangeUtilSet(this).extendInBlock(Undefs, StartIdx, Kill); in extendInBlock()
555 return CalcLiveRangeUtilVector(this).extendInBlock(Undefs, StartIdx, Kill); in extendInBlock()
558 VNInfo *LiveRange::extendInBlock(SlotIndex StartIdx, SlotIndex Kill) { in extendInBlock() argument
561 return CalcLiveRangeUtilSet(this).extendInBlock(StartIdx, Kill); in extendInBlock()
[all …]
H A DMachineOutliner.cpp539 for (const unsigned &StartIdx : RS.StartIndices) { in findCandidates() local
540 unsigned EndIdx = StartIdx + StringLen - 1; in findCandidates()
562 if (llvm::all_of(CandidatesForRepeatedSeq, [&StartIdx, in findCandidates()
564 return (EndIdx < C.getStartIdx() || StartIdx > C.getEndIdx()); in findCandidates()
570 MachineBasicBlock::iterator StartIt = Mapper.InstrList[StartIdx]; in findCandidates()
574 CandidatesForRepeatedSeq.emplace_back(StartIdx, StringLen, StartIt, in findCandidates()
H A DStackMaps.cpp77 unsigned PatchPointOpers::getNextScratchIdx(unsigned StartIdx) const { in getNextScratchIdx()
78 if (!StartIdx) in getNextScratchIdx()
79 StartIdx = getVarIdx(); in getNextScratchIdx()
82 unsigned ScratchIdx = StartIdx, e = MI->getNumOperands(); in getNextScratchIdx()
559 const unsigned StartIdx = opers.getVarIdx(); in recordStatepoint() local
560 recordStackMapOpers(L, MI, opers.getID(), MI.operands_begin() + StartIdx, in recordStatepoint()
H A DTargetInstrInfo.cpp496 unsigned StartIdx = 0; in foldPatchpoint() local
499 std::tie(NumDefs, StartIdx) = TII.getPatchpointUnfoldableRange(MI); in foldPatchpoint()
509 } else if (Op < StartIdx) { in foldPatchpoint()
521 for (unsigned i = 0; i < StartIdx; ++i) in foldPatchpoint()
525 for (unsigned i = StartIdx, e = MI.getNumOperands(); i < e; ++i) { in foldPatchpoint()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DMachineOutliner.h40 unsigned StartIdx = 0;
123 unsigned getStartIdx() const { return StartIdx; } in getStartIdx()
126 unsigned getEndIdx() const { return StartIdx + Len - 1; } in getEndIdx()
196 Candidate(unsigned StartIdx, unsigned Len, in Candidate()
200 : StartIdx(StartIdx), Len(Len), FirstInst(FirstInst), LastInst(LastInst), in Candidate()
H A DRegisterBankInfo.h52 unsigned StartIdx; member
65 PartialMapping(unsigned StartIdx, unsigned Length, in PartialMapping()
67 : StartIdx(StartIdx), Length(Length), RegBank(&RegBank) {} in PartialMapping()
71 unsigned getHighBitIdx() const { return StartIdx + Length - 1; } in getHighBitIdx()
314 getNewVRegsEnd(unsigned StartIdx, unsigned NumVal) const;
315 SmallVectorImpl<Register>::iterator getNewVRegsEnd(unsigned StartIdx,
462 const PartialMapping &getPartialMapping(unsigned StartIdx, unsigned Length,
470 const ValueMapping &getValueMapping(unsigned StartIdx, unsigned Length,
H A DCallingConvLower.h386 for (unsigned StartIdx = 0; StartIdx <= Regs.size() - RegsRequired; in AllocateRegBlock() local
387 ++StartIdx) { in AllocateRegBlock()
391 if (isAllocated(Regs[StartIdx + BlockIdx])) { in AllocateRegBlock()
399 MarkAllocated(Regs[StartIdx + BlockIdx]); in AllocateRegBlock()
401 return Regs[StartIdx]; in AllocateRegBlock()
H A DStackMaps.h140 unsigned getNextScratchIdx(unsigned StartIdx = 0) const;
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64ExpandImm.cpp155 int StartIdx = NotSet; in trySequenceOfOnes() local
164 StartIdx = Idx; in trySequenceOfOnes()
170 if (StartIdx == NotSet || EndIdx == NotSet) in trySequenceOfOnes()
181 if (StartIdx > EndIdx) { in trySequenceOfOnes()
182 std::swap(StartIdx, EndIdx); in trySequenceOfOnes()
197 if ((Idx < StartIdx || EndIdx < Idx) && Chunk != Outside) { in trySequenceOfOnes()
208 } else if (Idx > StartIdx && Idx < EndIdx && Chunk != Inside) { in trySequenceOfOnes()
H A DAArch64GenRegisterBankInfo.def15 /* StartIdx, Length, RegBank */
130 return Map.StartIdx == ValStartIdx && Map.Length == ValLength &&
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DIRSimilarityIdentifier.cpp407 IRSimilarityCandidate::IRSimilarityCandidate(unsigned StartIdx, unsigned Len, in IRSimilarityCandidate() argument
410 : StartIdx(StartIdx), Len(Len) { in IRSimilarityCandidate()
414 assert(StartIdx + Len > StartIdx && in IRSimilarityCandidate()
438 for (unsigned Loc = StartIdx; Loc < StartIdx + Len; Loc++, ID++) { in IRSimilarityCandidate()
853 return X.StartIdx <= Y.getEndIdx() && Y.StartIdx >= X.StartIdx; in overlap()
926 for (const unsigned &StartIdx : RS.StartIndices) { in createCandidatesFromSuffixTree() local
927 unsigned EndIdx = StartIdx + StringLen - 1; in createCandidatesFromSuffixTree()
931 for (unsigned CurrIdx = StartIdx; CurrIdx <= EndIdx; CurrIdx++) { in createCandidatesFromSuffixTree()
948 std::advance(StartIt, StartIdx); in createCandidatesFromSuffixTree()
952 CandsForRepSubstring.emplace_back(StartIdx, StringLen, *StartIt, *EndIt); in createCandidatesFromSuffixTree()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DIRSimilarityIdentifier.h651 unsigned StartIdx = 0;
682 IRSimilarityCandidate(unsigned StartIdx, unsigned Len,
864 unsigned getStartIdx() const { return StartIdx; } in getStartIdx()
867 unsigned getEndIdx() const { return StartIdx + Len - 1; } in getEndIdx()
/llvm-project-15.0.7/llvm/utils/TableGen/
H A DDAGISelMatcherEmitter.cpp88 unsigned StartIdx, raw_ostream &OS);
377 unsigned StartIdx = CurrentIdx; in EmitMatcher() local
415 return CurrentIdx - StartIdx + 1; in EmitMatcher()
507 unsigned StartIdx = CurrentIdx; in EmitMatcher() local
569 return CurrentIdx - StartIdx + 1; in EmitMatcher()
H A DCodeGenSchedule.cpp1343 bool IsRead, unsigned StartIdx);
1582 const SmallVectorImpl<unsigned> &RWSeq, bool IsRead, unsigned StartIdx) { in substituteVariantOperand() argument
1590 for (unsigned TransIdx = StartIdx, TransEnd = TransVec.size(); in substituteVariantOperand()
1622 unsigned StartIdx = TransVec.size(); in substituteVariants() local
1631 TransVec.begin() + StartIdx, E = TransVec.end(); I != E; ++I) { in substituteVariants()
1635 substituteVariantOperand(WriteSequence, /*IsRead=*/false, StartIdx); in substituteVariants()
1641 TransVec.begin() + StartIdx, E = TransVec.end(); I != E; ++I) { in substituteVariants()
1644 Subst |= substituteVariantOperand(ReadSequence, /*IsRead=*/true, StartIdx); in substituteVariants()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86GenRegisterBankInfo.def15 /* StartIdx, Length, RegBank */
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCISelDAGToDAG.cpp1394 unsigned StartIdx, EndIdx; member
1761 if (BitGroups[0].StartIdx == 0 && in collectBitGroups()
1819 if (BG.StartIdx <= BG.EndIdx) { in assignRepl32BitGroups()
1859 if (BG.StartIdx < 32 && BG.EndIdx < 32) { in assignRepl32BitGroups()
1902 if (I->StartIdx == 32 && I->EndIdx == 63) { in assignRepl32BitGroups()
1923 IP->StartIdx = 31; in assignRepl32BitGroups()
2134 getI32Imm(Bits.size() - BG.StartIdx - 1, dl) }; in Select32()
2140 getI32Imm(Bits.size() - BG.StartIdx - 1, dl) }; in Select32()
2338 if (BG.StartIdx < 32 && BG.EndIdx < 32 && BG.StartIdx <= BG.EndIdx && in SelectAndParts64()
2356 if (BG.StartIdx <= BG.EndIdx) { in SelectAndParts64()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DSIOptimizeExecMaskingPreRA.cpp350 SlotIndex StartIdx = LIS->getInstructionIndex(SaveExecMI); in optimizeElseBranch() local
354 if (RegUnit.find(StartIdx) != std::prev(RegUnit.find(EndIdx))) in optimizeElseBranch()
H A DAMDGPUGenRegisterBankInfo.def46 // StartIdx, Length, RegBank
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DInlineAsmLowering.cpp359 unsigned StartIdx = Inst->getNumOperands(); in lowerInlineAsm() local
437 unsigned InstFlagIdx = StartIdx; in lowerInlineAsm()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DIROutliner.cpp2358 unsigned StartIdx = IRSC->getStartIdx(); in isCompatibleWithAlreadyOutlinedCode() local
2363 for (unsigned Idx = StartIdx; Idx <= EndIdx; Idx++) in isCompatibleWithAlreadyOutlinedCode()
2416 unsigned StartIdx = IRSC.getStartIdx(); in pruneIncompatibleRegions() local
2419 for (unsigned Idx = StartIdx; Idx <= EndIdx; Idx++) in pruneIncompatibleRegions()
2446 if (CurrentEndIdx != 0 && StartIdx <= CurrentEndIdx) in pruneIncompatibleRegions()
2951 unsigned StartIdx = OS->Candidate->getStartIdx(); in doOutline() local
2953 for (unsigned Idx = StartIdx; Idx <= EndIdx; Idx++) in doOutline()
/llvm-project-15.0.7/llvm/lib/Demangle/
H A DRustDemangle.cpp1067 static void removeNullBytes(OutputBuffer &Output, size_t StartIdx) { in removeNullBytes() argument
1069 char *Start = Buffer + StartIdx; in removeNullBytes()

12