Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DSuffixTreeNode.h43 unsigned StartIdx = EmptyIdx; member
68 SuffixTreeNode(NodeKind Kind, unsigned StartIdx) in SuffixTreeNode()
69 : Kind(Kind), StartIdx(StartIdx) {} in SuffixTreeNode()
129 SuffixTreeInternalNode(unsigned StartIdx, unsigned EndIdx, in SuffixTreeInternalNode()
131 : SuffixTreeNode(NodeKind::ST_Internal, StartIdx), EndIdx(EndIdx), in SuffixTreeInternalNode()
165 SuffixTreeLeafNode(unsigned StartIdx, unsigned *EndIdx) in SuffixTreeLeafNode()
166 : SuffixTreeNode(NodeKind::ST_Leaf, StartIdx), EndIdx(EndIdx) {} in SuffixTreeLeafNode()
H A DSuffixTree.h93 SuffixTreeNode *insertLeaf(SuffixTreeInternalNode &Parent, unsigned StartIdx,
105 unsigned StartIdx, unsigned EndIdx,
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DRegisterBankInfo.cpp679 int StartIdx = OpToNewVRegIdx[OpIdx]; in getVRegsMem() local
681 if (StartIdx == OperandsMapper::DontKnowIdx) { in getVRegsMem()
685 StartIdx = NewVRegs.size(); in getVRegsMem()
686 OpToNewVRegIdx[OpIdx] = StartIdx; in getVRegsMem()
691 getNewVRegsEnd(StartIdx, NumPartialVal); in getVRegsMem()
693 return make_range(&NewVRegs[StartIdx], End); in getVRegsMem()
704 assert((NewVRegs.size() == StartIdx + NumVal || in getNewVRegsEnd()
750 int StartIdx = OpToNewVRegIdx[OpIdx]; in getVRegs() local
752 if (StartIdx == OperandsMapper::DontKnowIdx) in getVRegs()
758 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.cpp596 for (const unsigned &StartIdx : RS.StartIndices) { in findCandidates() local
618 unsigned EndIdx = StartIdx + StringLen - 1; in findCandidates()
620 CandidatesForRepeatedSeq, [StartIdx, EndIdx](const Candidate &C) { in findCandidates()
621 return EndIdx >= C.getStartIdx() && StartIdx <= C.getEndIdx(); in findCandidates()
626 LLVM_DEBUG(dbgs() << " .. DISCARD candidate @ [" << StartIdx in findCandidates()
639 MachineBasicBlock::iterator StartIt = Mapper.InstrList[StartIdx]; in findCandidates()
642 CandidatesForRepeatedSeq.emplace_back(StartIdx, StringLen, StartIt, EndIt, 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()
573 const unsigned StartIdx = opers.getVarIdx(); in recordStatepoint() local
574 recordStackMapOpers(L, MI, opers.getID(), MI.operands_begin() + StartIdx, in recordStatepoint()
H A DTargetInstrInfo.cpp506 unsigned StartIdx = 0; in foldPatchpoint() local
509 std::tie(NumDefs, StartIdx) = TII.getPatchpointUnfoldableRange(MI); in foldPatchpoint()
519 } else if (Op < StartIdx) { in foldPatchpoint()
531 for (unsigned i = 0; i < StartIdx; ++i) in foldPatchpoint()
535 for (unsigned i = StartIdx, e = MI.getNumOperands(); i < e; ++i) { in foldPatchpoint()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DSuffixTree.cpp52 unsigned StartIdx, unsigned Edge) { in insertLeaf() argument
53 assert(StartIdx <= LeafEndIdx && "String can't start after it ends!"); in insertLeaf()
55 SuffixTreeLeafNode(StartIdx, &LeafEndIdx); in insertLeaf()
62 unsigned StartIdx, unsigned EndIdx, in insertInternalNode() argument
64 assert(StartIdx <= EndIdx && "String can't start after it ends!"); in insertInternalNode()
65 assert(!(!Parent && StartIdx != SuffixTreeNode::EmptyIdx) && in insertInternalNode()
68 SuffixTreeInternalNode(StartIdx, EndIdx, Root); in insertInternalNode()
275 for (unsigned StartIdx : RepeatedSubstringStarts) in advance() local
276 RS.StartIndices.push_back(StartIdx); in advance()
H A DSuffixTreeNode.cpp19 unsigned SuffixTreeNode::getStartIdx() const { return StartIdx; } in getStartIdx()
20 void SuffixTreeNode::incrementStartIdx(unsigned Inc) { StartIdx += Inc; } in incrementStartIdx()
/freebsd/contrib/llvm-project/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()
199 Candidate(unsigned StartIdx, unsigned Len, in Candidate()
203 : StartIdx(StartIdx), Len(Len), FirstInst(FirstInst), LastInst(LastInst), in Candidate()
H A DRegisterBankInfo.h53 unsigned StartIdx; member
66 constexpr PartialMapping(unsigned StartIdx, unsigned Length, in PartialMapping()
68 : StartIdx(StartIdx), Length(Length), RegBank(&RegBank) {} in PartialMapping()
72 unsigned getHighBitIdx() const { return StartIdx + Length - 1; } in getHighBitIdx()
316 getNewVRegsEnd(unsigned StartIdx, unsigned NumVal) const;
317 SmallVectorImpl<Register>::iterator getNewVRegsEnd(unsigned StartIdx,
471 const PartialMapping &getPartialMapping(unsigned StartIdx, unsigned Length,
479 const ValueMapping &getValueMapping(unsigned StartIdx, unsigned Length,
H A DCallingConvLower.h367 for (unsigned StartIdx = 0; StartIdx <= Regs.size() - RegsRequired; in AllocateRegBlock() local
368 ++StartIdx) { in AllocateRegBlock()
372 if (isAllocated(Regs[StartIdx + BlockIdx])) { in AllocateRegBlock()
380 MarkAllocated(Regs[StartIdx + BlockIdx]); in AllocateRegBlock()
382 return Regs[StartIdx]; in AllocateRegBlock()
H A DStackMaps.h140 unsigned getNextScratchIdx(unsigned StartIdx = 0) const;
/freebsd/contrib/llvm-project/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 DAArch64LoopIdiomTransform.cpp259 Value *StartIdx = nullptr; in recognizeByteCompare() local
262 StartIdx = PN->getIncomingValue(0); in recognizeByteCompare()
265 StartIdx = PN->getIncomingValue(1); in recognizeByteCompare()
385 transformByteCompare(GEPA, GEPB, PN, MaxLen, Index, StartIdx, /*IncIdx=*/true, in recognizeByteCompare()
H A DAArch64GenRegisterBankInfo.def15 /* StartIdx, Length, RegBank */
130 return Map.StartIdx == ValStartIdx && Map.Length == ValLength &&
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DIRSimilarityIdentifier.cpp427 IRSimilarityCandidate::IRSimilarityCandidate(unsigned StartIdx, unsigned Len, in IRSimilarityCandidate() argument
430 : StartIdx(StartIdx), Len(Len) { in IRSimilarityCandidate()
434 assert(StartIdx + Len > StartIdx && in IRSimilarityCandidate()
458 for (unsigned Loc = StartIdx; Loc < StartIdx + Len; Loc++, ID++) { in IRSimilarityCandidate()
906 return X.StartIdx <= Y.getEndIdx() && Y.StartIdx >= X.StartIdx; in overlap()
979 for (const unsigned &StartIdx : RS.StartIndices) { in createCandidatesFromSuffixTree() local
980 unsigned EndIdx = StartIdx + StringLen - 1; in createCandidatesFromSuffixTree()
984 for (unsigned CurrIdx = StartIdx; CurrIdx <= EndIdx; CurrIdx++) { in createCandidatesFromSuffixTree()
1001 std::advance(StartIt, StartIdx); in createCandidatesFromSuffixTree()
1005 CandsForRepSubstring.emplace_back(StartIdx, StringLen, *StartIt, *EndIt); in createCandidatesFromSuffixTree()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DIRSimilarityIdentifier.h657 unsigned StartIdx = 0;
688 IRSimilarityCandidate(unsigned StartIdx, unsigned Len,
931 unsigned getStartIdx() const { return StartIdx; } in getStartIdx()
934 unsigned getEndIdx() const { return StartIdx + Len - 1; } in getEndIdx()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DDAGISelMatcherEmitter.cpp171 unsigned StartIdx, raw_ostream &OS);
430 unsigned StartIdx = CurrentIdx; in EmitMatcher() local
468 return CurrentIdx - StartIdx + 1; in EmitMatcher()
583 unsigned StartIdx = CurrentIdx; in EmitMatcher() local
645 return CurrentIdx - StartIdx + 1; in EmitMatcher()
H A DCodeGenSchedule.cpp1360 bool IsRead, unsigned StartIdx);
1599 const SmallVectorImpl<unsigned> &RWSeq, bool IsRead, unsigned StartIdx) { in substituteVariantOperand() argument
1607 for (unsigned TransIdx = StartIdx, TransEnd = TransVec.size(); in substituteVariantOperand()
1639 unsigned StartIdx = TransVec.size(); in substituteVariants() local
1648 TransVec.begin() + StartIdx, E = TransVec.end(); I != E; ++I) { in substituteVariants()
1652 substituteVariantOperand(WriteSequence, /*IsRead=*/false, StartIdx); in substituteVariants()
1658 TransVec.begin() + StartIdx, E = TransVec.end(); I != E; ++I) { in substituteVariants()
1661 Subst |= substituteVariantOperand(ReadSequence, /*IsRead=*/true, StartIdx); in substituteVariants()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86GenRegisterBankInfo.def15 /* StartIdx, Length, RegBank */
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelDAGToDAG.cpp1560 unsigned StartIdx, EndIdx; member
1938 if (BitGroups[0].StartIdx == 0 && in collectBitGroups()
1996 if (BG.StartIdx <= BG.EndIdx) { in assignRepl32BitGroups()
2036 if (BG.StartIdx < 32 && BG.EndIdx < 32) { in assignRepl32BitGroups()
2079 if (I->StartIdx == 32 && I->EndIdx == 63) { in assignRepl32BitGroups()
2100 IP->StartIdx = 31; in assignRepl32BitGroups()
2311 getI32Imm(Bits.size() - BG.StartIdx - 1, dl) }; in Select32()
2317 getI32Imm(Bits.size() - BG.StartIdx - 1, dl) }; in Select32()
2515 if (BG.StartIdx < 32 && BG.EndIdx < 32 && BG.StartIdx <= BG.EndIdx && in SelectAndParts64()
2533 if (BG.StartIdx <= BG.EndIdx) { in SelectAndParts64()
[all …]
H A DPPCGenRegisterBankInfo.def16 /* StartIdx, Length, RegBank */
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIOptimizeExecMaskingPreRA.cpp321 SlotIndex StartIdx = LIS->getInstructionIndex(SaveExecMI); in optimizeElseBranch() local
325 if (RegUnit.find(StartIdx) != std::prev(RegUnit.find(EndIdx))) in optimizeElseBranch()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DInlineAsmLowering.cpp305 unsigned StartIdx = Inst->getNumOperands(); in lowerInlineAsm() local
385 unsigned InstFlagIdx = StartIdx; in lowerInlineAsm()

123