Home
last modified time | relevance | path

Searched refs:Distance (Results 1 – 25 of 44) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSampleProfileInference.cpp236 Node.Distance = INF; in findAugmentingPath()
244 Nodes[Source].Distance = 0; in findAugmentingPath()
264 if (!Params.EvenFlowDistribution && Nodes[Target].Distance == 0) in findAugmentingPath()
266 if (Nodes[Src].Distance > Nodes[Target].Distance) in findAugmentingPath()
274 int64_t NewDistance = Nodes[Src].Distance + Edge.Cost; in findAugmentingPath()
275 if (Nodes[Dst].Distance > NewDistance) { in findAugmentingPath()
277 Nodes[Dst].Distance = NewDistance; in findAugmentingPath()
290 return Nodes[Target].Distance != INF; in findAugmentingPath()
508 if (Nodes[Src].Distance > Nodes[Target].Distance) in identifyShortestEdges()
515 Nodes[Dst].Distance <= Nodes[Target].Distance && in identifyShortestEdges()
[all …]
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DMarshallers.cpp29 unsigned Distance = Item.edit_distance(Search); in getBestGuess() local
30 if (Distance < MaxEditDistance) { in getBestGuess()
31 MaxEditDistance = Distance; in getBestGuess()
50 unsigned Distance = NoPrefix.edit_distance(Search); in getBestGuess() local
51 if (Distance < MaxEditDistance) { in getBestGuess()
52 MaxEditDistance = Distance; in getBestGuess()
H A DVariantValue.cpp49 unsigned Distance; in isConvertibleTo() local
50 if (!NodeKind.isBaseOf(To.NodeKind, &Distance)) in isConvertibleTo()
54 *Specificity = 100 - Distance; in isConvertibleTo()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonBranchRelaxation.cpp155 unsigned Distance = 0; in isJumpOutOfRange() local
174 Distance = std::abs((long long)InstOffset - BlockToInstOffset[TBB]) in isJumpOutOfRange()
176 return !HII->isJumpWithinBranchRange(*FirstTerm, Distance); in isJumpOutOfRange()
187 Distance = std::abs((long long)InstOffset - BlockToInstOffset[FBB]) in isJumpOutOfRange()
189 return !HII->isJumpWithinBranchRange(*SecondTerm, Distance); in isJumpOutOfRange()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DUnicodeNameToCodepoint.cpp428 auto Insert = [&](const Node &Node, uint32_t Distance, in nearestMatchesForCodepointName()
430 if (Distance > LargestEditDistance) { in nearestMatchesForCodepointName()
433 LargestEditDistance = Distance; in nearestMatchesForCodepointName()
445 Matches, Distance, in nearestMatchesForCodepointName()
446 [&](const MatchForCodepointName &a, std::size_t Distance) { in nearestMatchesForCodepointName()
447 if (Distance == a.Distance) in nearestMatchesForCodepointName()
449 return a.Distance < Distance; in nearestMatchesForCodepointName() argument
454 MatchForCodepointName M{GetName(), Distance, Valu in nearestMatchesForCodepointName()
432 __anonef2277cc0302(const Node &Node, uint32_t Distance, char32_t Value) nearestMatchesForCodepointName() argument
[all...]
H A DYAMLParser.cpp388 /// Skip \a Distance UTF-8 code units. Updates \a Cur and \a Column.
389 void skip(uint32_t Distance);
1048 void Scanner::skip(uint32_t Distance) { in isBlankOrBreak()
1049 Current += Distance; in isBlankOrBreak()
1050 Column += Distance; in isBlankOrBreak()
1039 skip(uint32_t Distance) skip() argument
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTTypeTraits.cpp65 bool ASTNodeKind::isBaseOf(ASTNodeKind Other, unsigned *Distance) const { in isBaseOf()
66 return isBaseOf(KindId, Other.KindId, Distance); in isBaseOf()
79 unsigned *Distance) { in isBaseOf() argument
86 if (Distance) in isBaseOf()
87 *Distance = Dist; in isBaseOf()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_stacktrace.cpp159 static uptr Distance(uptr a, uptr b) { return a < b ? b - a : a - b; } in Distance() function
164 if (Distance(trace[i], pc) < Distance(trace[best], pc)) best = i; in LocatePcInTrace()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DDependenceAnalysis.cpp321 if (DV[Level - 1].Distance != nullptr) in normalize()
322 DV[Level - 1].Distance = in normalize()
323 SE->getNegativeSCEV(DV[Level - 1].Distance); in normalize()
343 return DV[Level - 1].Distance; in getDistance()
401 assert((Kind == Line || Kind == Distance) && in getA()
410 assert((Kind == Line || Kind == Distance) && in getB()
419 assert((Kind == Line || Kind == Distance) && in getC()
428 assert(Kind == Distance && "Kind should be Distance"); in getD()
435 assert((Kind == Distance || Kind == Line || Kind == Point) && in getAssociatedLoop()
459 Kind = Distance; in setDistance()
[all …]
H A DLoopAccessAnalysis.cpp1749 bool MemoryDepChecker::couldPreventStoreLoadForward(uint64_t Distance, in couldPreventStoreLoadForward() argument
1773 if (Distance % VF && Distance / VF < NumItersForStoreLoadThroughMemory) { in couldPreventStoreLoadForward()
1781 dbgs() << "LAA: Distance " << Distance in couldPreventStoreLoadForward()
1867 static bool areStridedAccessesIndependent(uint64_t Distance, uint64_t Stride, in areStridedAccessesIndependent() argument
1871 assert(Distance > 0 && "The distance must be non-zero"); in areStridedAccessesIndependent()
1874 if (Distance % TypeByteSize) in areStridedAccessesIndependent()
1877 uint64_t ScaledDist = Distance / TypeByteSize; in areStridedAccessesIndependent()
2050 int64_t Distance = Val.getSExtValue(); in isDependent() local
2054 if (std::abs(Distance) > 0 && CommonStride && *CommonStride > 1 && in isDependent()
2056 areStridedAccessesIndependent(std::abs(Distance), *CommonStride, in isDependent()
H A DLoopCacheAnalysis.cpp245 const SCEV *Distance = D->getDistance(Level); in hasTemporalReuse() local
246 const SCEVConstant *SCEVConst = dyn_cast_or_null<SCEVConstant>(Distance); in hasTemporalReuse()
/freebsd/contrib/llvm-project/libcxx/include/
H A Diterator172 template<class Category, class T, class Distance = ptrdiff_t,
177 typedef Distance difference_type;
191 template <class InputIterator, class Distance> // constexpr in C++17
192 constexpr void advance(InputIterator& i, Distance n);
515 template <class T, class charT = char, class traits = char_traits<charT>, class Distance = ptrdiff_…
517 : public iterator<input_iterator_tag, T, Distance, const T*, const T&> // until C++17
522 typedef Distance difference_type;
543 template <class T, class charT, class traits, class Distance>
544 bool operator==(const istream_iterator<T,charT,traits,Distance>& x,
545 const istream_iterator<T,charT,traits,Distance>& y);
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DDependenceAnalysis.h100 const SCEV *Distance = nullptr; // NULL implies no distance available. member
401 /// 3) Distance - The value d of the dependence distance;
407 enum ConstraintKind { Empty, Point, Distance, Line, Any } Kind; enumerator
421 /// isDistance - Return true if the constraint is of kind Distance.
422 bool isDistance() const { return Kind == Distance; } in isDistance()
425 /// Since Distance's can also be represented as Lines, we also return
426 /// true if the constraint is of kind Distance.
427 bool isLine() const { return Kind == Line || Kind == Distance; } in isLine()
466 /// setDistance - Change a constraint to Distance.
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMIRCanonicalizerPass.cpp206 unsigned Distance = ~0U; in rescheduleCanonically() local
221 if (Delta < Distance) { in rescheduleCanonically()
222 Distance = Delta; in rescheduleCanonically()
H A DRegAllocFast.cpp109 unsigned Distance = 1; in getIndex() local
115 ++Distance; in getIndex()
119 ++Distance; in getIndex()
152 Step = (NumAvailableIndexes + 1) / (Distance + 1); in getIndex()
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DDiagnosticIDs.cpp727 unsigned Distance = O.getName().edit_distance(Group, true, BestDistance); in getNearestOption() local
728 if (Distance > BestDistance) in getNearestOption()
736 if (Distance == BestDistance) { in getNearestOption()
739 } else if (Distance < BestDistance) { in getNearestOption()
742 BestDistance = Distance; in getNearestOption()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DUnicode.h81 uint32_t Distance = 0; member
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUIGroupLP.cpp1180 unsigned Distance = 1; member in __anon5d856e630111::MFMAExpInterleaveOpt::IsSuccOfPrevNthGroup
1190 if ((unsigned)PipeSG.getSGID() == SGID - Distance) in apply()
1208 IsSuccOfPrevNthGroup(unsigned Distance, const SIInstrInfo *TII, in IsSuccOfPrevNthGroup() argument
1210 : InstructionRule(TII, SGID, NeedsCache), Distance(Distance) {} in IsSuccOfPrevNthGroup()
1217 unsigned Distance = 1; member in __anon5d856e630111::MFMAExpInterleaveOpt::IsReachableFromPrevNthGroup
1227 if ((unsigned)PipeSG.getSGID() == SGID - Distance) in apply()
1244 IsReachableFromPrevNthGroup(unsigned Distance, const SIInstrInfo *TII, in IsReachableFromPrevNthGroup() argument
1246 : InstructionRule(TII, SGID, NeedsCache), Distance(Distance) {} in IsReachableFromPrevNthGroup()
2000 unsigned Distance = 1; member in __anon5d856e630111::MFMASmallGemmSingleWaveOpt::SharesPredWithPrevNthGroup
2012 if ((unsigned)PipeSG.getSGID() == SGID - Distance) { in apply()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DLiteralSupport.cpp564 unsigned Distance = 0; in DiagnoseInvalidUnicodeCharacterName() local
570 if (Distance == 0) in DiagnoseInvalidUnicodeCharacterName()
571 Distance = Match.Distance; in DiagnoseInvalidUnicodeCharacterName()
572 if (std::max(Distance, Match.Distance) - in DiagnoseInvalidUnicodeCharacterName()
573 std::min(Distance, Match.Distance) > in DiagnoseInvalidUnicodeCharacterName()
576 Distance = Match.Distance; in DiagnoseInvalidUnicodeCharacterName()
H A DTokenLexer.cpp1001 auto Distance = Loc.getRawEncoding() - Last.getRawEncoding(); in updateConsecutiveMacroArgTokens() local
1003 return Distance <= MaxDistance; in updateConsecutiveMacroArgTokens()
/freebsd/sys/contrib/device-tree/Bindings/
H A Dproperty-units.txt22 Distance
/freebsd/contrib/llvm-project/llvm/lib/Option/
H A DOptTable.cpp320 unsigned Distance = StringRef(Candidate).edit_distance( in internalFindNearest() local
330 ++Distance; in internalFindNearest()
332 if (Distance < BestDistance) { in internalFindNearest()
333 BestDistance = Distance; in internalFindNearest()
/freebsd/sys/contrib/device-tree/Bindings/iio/light/
H A Dcm3605.txt2 Ambient Light and Short Distance Proximity Sensor
/freebsd/contrib/googletest/docs/reference/
H A Dactions.md58 double Distance(Unused, double x, double y) { return sqrt(x*x + y*y); }
60 EXPECT_CALL(mock, Foo("Hi", _, _)).WillOnce(Invoke(Distance));
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCWin64EH.cpp312 uint32_t Distance = (uint32_t)*MaybeDistance; in checkARM64Instructions() local
330 if (Distance != InstructionBytes) { in checkARM64Instructions()
333 Twine(Distance) + in checkARM64Instructions()
1571 uint32_t Distance = (uint32_t)*MaybeDistance; in checkARMInstructions()
1576 if (Distance != InstructionBytes) {
1579 Twine(Distance) + in isARMTerminator()
1562 uint32_t Distance = (uint32_t)*MaybeDistance; checkARMInstructions() local

12