| /llvm-project-15.0.7/libcxx/test/libcxx/fuzzing/ |
| H A D | random.pass.cpp | 35 template <class Dist> 37 using ParamT = typename Dist::param_type; 38 using ResultT = typename Dist::result_type; 91 using ParamT = typename Dist::param_type; 92 using ResultT = typename Dist::result_type; 107 using ParamT = typename Dist::param_type; 108 using ResultT = typename Dist::result_type; 123 using ParamT = typename Dist::param_type; 138 using Dist = std::bernoulli_distribution; typedef 139 using ParamT = Dist::param_type; [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | TwoAddressInstructionPass.cpp | 153 unsigned Dist); 248 unsigned LastUse = Dist; in noUseAfterLastDef() 262 return !(LastUse > LastDef && LastUse < Dist); in noUseAfterLastDef() 589 if (!noUseAfterLastDef(RegC, Dist, LastDefC)) in isProfitableToCommute() 595 if (!noUseAfterLastDef(RegB, Dist, LastDefB)) in isProfitableToCommute() 711 Dist--; in convertInstTo3Addr() 1184 Dist)) { in tryInstructionCommute() 1398 Dist--; in tryInstructionTransform() 1520 DistanceMap[MI] = ++Dist; in processTiedPairs() 1721 unsigned Dist = 0; in runOnMachineFunction() local [all …]
|
| H A D | LiveVariables.cpp | 199 unsigned Dist = DistanceMap[Def]; in FindLastPartialDef() local 200 if (Dist > LastDefDist) { in FindLastPartialDef() 203 LastDefDist = Dist; in FindLastPartialDef() 293 unsigned Dist = DistanceMap[Def]; in FindLastRefOrPartRef() local 294 if (Dist > LastPartDefDist) in FindLastRefOrPartRef() 295 LastPartDefDist = Dist; in FindLastRefOrPartRef() 299 LastRefOrPartRefDist = Dist; in FindLastRefOrPartRef() 343 if (Dist > LastPartDefDist) { in HandlePhysRegKill() 344 LastPartDefDist = Dist; in HandlePhysRegKill() 355 LastRefOrPartRefDist = Dist; in HandlePhysRegKill() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | BlockFrequencyInfoImpl.cpp | 128 Dist.normalize(); in DitheringDistributer() 129 RemWeight = Dist.Total; in DitheringDistributer() 340 Dist.addBackedge(Resolved, Weight); in addToDist() 346 Dist.addExit(Resolved, Weight); in addToDist() 369 Dist.addLocal(Resolved, Weight); in addToDist() 453 DitheringDistributer D(Dist, Mass); in distributeMass() 455 for (const Weight &W : Dist.Weights) { in distributeMass() 845 Distribution Dist; in adjustLoopHeaderMass() local 860 DitheringDistributer D(Dist, LoopMass); in adjustLoopHeaderMass() 864 for (const Weight &W : Dist.Weights) { in adjustLoopHeaderMass() [all …]
|
| H A D | LoopAccessAnalysis.cpp | 1484 int Dist = Val / Size; in getPointersDiff() local 1488 if (!StrictCheck || Dist * Size == Val) in getPointersDiff() 1489 return Dist; in getPointersDiff() 1710 const SCEV *CastedDist = &Dist; in isSafeDependenceDistance() 1712 uint64_t DistTypeSizeBits = DL.getTypeSizeInBits(Dist.getType()); in isSafeDependenceDistance() 1719 CastedProduct = SE.getZeroExtendExpr(Product, Dist.getType()); in isSafeDependenceDistance() 1721 CastedDist = SE.getNoopOrSignExtend(&Dist, Product->getType()); in isSafeDependenceDistance() 1816 const SCEV *Dist = PSE.getSE()->getMinusSCEV(Sink, Src); in isDependent() local 1821 << *InstMap[BIdx] << ": " << *Dist << "\n"); in isDependent() 1836 const SCEVConstant *C = dyn_cast<SCEVConstant>(Dist); in isDependent() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/support/ |
| H A D | TraceTests.cpp | 148 trace::Metric Dist = {"dist", trace::Metric::Distribution, "lbl"}; member in clang::clangd::__anon739450bb0111::CSVMetricsTracerTest 166 Dist.record(1, "x"); in TEST_F() 168 Dist.record(2, "y"); in TEST_F() 178 Dist.record(1, ","); in TEST_F() 179 Dist.record(1, "a\"b"); in TEST_F() 180 Dist.record(1, "a\nb"); in TEST_F()
|
| /llvm-project-15.0.7/bolt/lib/Passes/ |
| H A D | CacheMetrics.cpp | 233 const uint64_t Dist = DstAddr - (SrcAddr + SrcSize); in extTSPScore() local 234 if (Dist <= opts::ForwardDistance) { in extTSPScore() 235 double Prob = 1.0 - static_cast<double>(Dist) / opts::ForwardDistance; in extTSPScore() 241 const uint64_t Dist = SrcAddr + SrcSize - DstAddr; in extTSPScore() local 242 if (Dist <= opts::BackwardDistance) { in extTSPScore() 243 double Prob = 1.0 - static_cast<double>(Dist) / opts::BackwardDistance; in extTSPScore()
|
| H A D | ReorderFunctions.cpp | 180 uint64_t Dist = 0; in reorder() local 199 Dist += Arc.weight() * D; in reorder() 211 TotalDistance += Dist; in reorder() 216 TotalSize, Calls ? Dist / Calls : 0) in reorder()
|
| H A D | ExtTSPReorderAlgorithm.cpp | 99 const uint64_t Dist = DstAddr - (SrcAddr + SrcSize); in extTSPScore() local 100 if (Dist <= opts::ForwardDistance) { in extTSPScore() 101 double Prob = 1.0 - static_cast<double>(Dist) / opts::ForwardDistance; in extTSPScore() 107 const uint64_t Dist = SrcAddr + SrcSize - DstAddr; in extTSPScore() local 108 if (Dist <= opts::BackwardDistance) { in extTSPScore() 109 double Prob = 1.0 - static_cast<double>(Dist) / opts::BackwardDistance; in extTSPScore()
|
| H A D | HFSortPlus.cpp | 338 uint64_t Dist = SrcAddr >= DstAddr ? SrcAddr - DstAddr : DstAddr - SrcAddr; in expectedCalls() local 339 if (Dist >= opts::ITLBPageSize) in expectedCalls() 342 double D = double(Dist) / double(opts::ITLBPageSize); in expectedCalls()
|
| H A D | SplitFunctions.cpp | 139 std::uniform_int_distribution<DiffT> Dist(MinimumSplit, in partition() local 141 const DiffT NumColdBlocks = Dist(*Gen); in partition()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | SuspiciousCallArgumentCheck.cpp | 208 double Dist = Arg.edit_distance(Param); in applyLevenshteinHeuristic() local 209 Dist = (1.0 - Dist / LongerLength) * 100.0; in applyLevenshteinHeuristic() 210 return Dist > Threshold; in applyLevenshteinHeuristic() 258 double Dist = ((MatchD / ArgLen) + (MatchD / ParamLen) + in applyJaroWinklerHeuristic() local 270 Dist = (Dist + (L * 0.1 * (1.0 - Dist))) * 100.0; in applyJaroWinklerHeuristic() 271 return Dist > Threshold; in applyJaroWinklerHeuristic()
|
| /llvm-project-15.0.7/libc/benchmarks/automemcpy/unittests/ |
| H A D | ResultAnalyzerTest.cpp | 84 static constexpr DistributionId Dist = {{"A"}}; in TEST() local 86 Sample{{Foo1, Dist}, SampleType::ITERATION, 1}, in TEST() 87 Sample{{Foo2, Dist}, SampleType::ITERATION, 2}, in TEST() 88 Sample{{Foo3, Dist}, SampleType::ITERATION, 3}}; in TEST()
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | BitTracker.h | 75 UseQueueType() : Uses(Dist) {} in UseQueueType() 95 Dist.clear(); in reset() 99 Cmp(DenseMap<const MachineInstr*,unsigned> &Map) : Dist(Map) {} in Cmp() 101 DenseMap<const MachineInstr*,unsigned> &Dist; member 105 DenseMap<const MachineInstr*,unsigned> Dist; member
|
| H A D | HexagonHardwareLoops.cpp | 782 int64_t Dist = EndV - StartV; in computeCount() local 783 if (Dist == 0) in computeCount() 786 bool Exact = (Dist % IVBump) == 0; in computeCount() 791 if ((Dist < 0) ^ (IVBump < 0)) in computeCount() 798 Dist = Dist > 0 ? Dist+1 : Dist-1; in computeCount() 804 if ((CmpLess && Dist < 0) || (CmpGreater && Dist > 0)) in computeCount() 808 int64_t Dist1 = (IVBump > 0) ? (Dist + (IVBump - 1)) / IVBump in computeCount() 809 : (-Dist + (-IVBump - 1)) / (-IVBump); in computeCount()
|
| H A D | BitTracker.cpp | 782 auto F = Dist.find(MI); in operator ()() 783 if (F != Dist.end()) in operator ()() 788 Dist.insert(std::make_pair(MI, D)); in operator ()()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86OptimizeLEAs.cpp | 272 int64_t &AddrDispShift, int &Dist); 343 MachineInstr *&BestLEA, int64_t &AddrDispShift, int &Dist) { in chooseBestLEA() argument 385 Dist = DistTemp; in chooseBestLEA() 529 int Dist; in removeRedundantAddrCalc() local 530 if (!chooseBestLEA(Insns->second, MI, DefMI, AddrDispShift, Dist)) in removeRedundantAddrCalc() 539 if (Dist < 0) { in removeRedundantAddrCalc()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ASTTypeTraits.cpp | 66 unsigned Dist = 0; in isBaseOf() local 69 ++Dist; in isBaseOf() 72 *Distance = Dist; in isBaseOf()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | BlockFrequencyInfoImpl.h | 446 Distribution &Dist); 484 Distribution &Dist); 499 void distributeIrrLoopHeaderMass(Distribution &Dist); 1263 Distribution Dist; 1287 Dist.addLocal(HeaderNode, HeaderWeightValue); 1306 Dist.addLocal(HeaderNode, MinWeight); 1308 distributeIrrLoopHeaderMass(Dist); 1699 Distribution Dist; 1702 if (!addLoopSuccessorsToDist(OuterLoop, *Loop, Dist)) 1711 Dist, OuterLoop, Node, getNode(*SI), [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | CodeLayout.cpp | 109 const auto Dist = DstAddr - (SrcAddr + SrcSize); in extTSPScore() local 110 if (Dist <= ForwardDistance) { in extTSPScore() 111 double Prob = 1.0 - static_cast<double>(Dist) / ForwardDistance; in extTSPScore() 117 const auto Dist = SrcAddr + SrcSize - DstAddr; in extTSPScore() local 118 if (Dist <= BackwardDistance) { in extTSPScore() 119 double Prob = 1.0 - static_cast<double>(Dist) / BackwardDistance; in extTSPScore()
|
| /llvm-project-15.0.7/llvm/tools/verify-uselistorder/ |
| H A D | verify-uselistorder.cpp | 403 std::uniform_int_distribution<short> Dist(10, 99); in shuffleValueUseLists() local 409 auto I = Dist(Gen); in shuffleValueUseLists()
|
| /llvm-project-15.0.7/clang/lib/Driver/ToolChains/ |
| H A D | Cuda.cpp | 168 Distro Dist(FS, llvm::Triple(llvm::sys::getProcessTriple())); in CudaInstallationDetector() local 169 if (Dist.IsDebian() || Dist.IsUbuntu()) in CudaInstallationDetector()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | LoopLoadElimination.cpp | 122 auto *Dist = cast<SCEVConstant>( in isDependenceDistanceOfOne() local 124 const APInt &Val = Dist->getAPInt(); in isDependenceDistanceOfOne()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | SILoadStoreOptimizer.cpp | 2077 int64_t Dist = MAddr.Offset - MAddrNext.Offset; in promoteConstantOffsetToImm() local 2080 AM.BaseOffs = Dist; in promoteConstantOffsetToImm() 2082 (uint32_t)std::abs(Dist) > MaxDist) { in promoteConstantOffsetToImm() 2083 MaxDist = std::abs(Dist); in promoteConstantOffsetToImm()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/ |
| H A D | LoadStoreVectorizer.cpp | 376 const SCEV *Dist = SE.getMinusSCEV(PtrSCEVB, PtrSCEVA); in areConsecutivePointers() local 377 if (C == Dist) in areConsecutivePointers()
|