Home
last modified time | relevance | path

Searched refs:Probe (Results 1 – 25 of 27) sorted by relevance

12

/llvm-project-15.0.7/llvm/test/tools/llvm-profgen/
H A Dpseudoprobe-decoding.test6 ; CHECK: Pseudo Probe Desc:
18 ; CHECK: [Probe]: FUNC: bar Index: 1 Type: Block
19 ; CHECK-NEXT: [Probe]: FUNC: bar Index: 4 Type: Block
23 ; CHECK: [Probe]: FUNC: foo Index: 1 Type: Block
24 ; CHECK-NEXT: [Probe]: FUNC: foo Index: 2 Type: Block
27 ; CHECK: [Probe]: FUNC: foo Index: 5 Type: Block
29 ; CHECK: [Probe]: FUNC: foo Index: 6 Type: Block
30 ; CHECK-NEXT: [Probe]: FUNC: foo Index: 2 Type: Block
33 ; CHECK: [Probe]: FUNC: foo Index: 3 Type: Block
36 ; CHECK: [Probe]: FUNC: foo Index: 4 Type: Block
[all …]
H A Dfname-canonicalization.test31 ; Probe: clang -O3 -funique-internal-linkage-names -fuse-ld=lld -fpseudo-probe-for-profiling -fno…
/llvm-project-15.0.7/llvm/lib/IR/
H A DPseudoProbe.cpp32 PseudoProbe Probe; in extractProbeFromDiscriminator() local
33 Probe.Id = in extractProbeFromDiscriminator()
35 Probe.Type = in extractProbeFromDiscriminator()
37 Probe.Attr = in extractProbeFromDiscriminator()
39 Probe.Factor = in extractProbeFromDiscriminator()
42 return Probe; in extractProbeFromDiscriminator()
50 PseudoProbe Probe; in extractProbe() local
51 Probe.Id = II->getIndex()->getZExtValue(); in extractProbe()
52 Probe.Type = (uint32_t)PseudoProbeType::Block; in extractProbe()
54 Probe.Factor = II->getFactor()->getZExtValue() / in extractProbe()
[all …]
/llvm-project-15.0.7/llvm/lib/MC/
H A DMCPseudoProbe.cpp100 Top = InlineSite(Probe.getGuid(), 0); in addPseudoProbe()
121 Cur->Probes.push_back(Probe); in addPseudoProbe()
144 for (const auto &Probe : Probes) { in emit() local
145 Probe.emit(MCOS, LastProbe); in emit()
146 LastProbe = &Probe; in emit()
512 for (auto &Probe : It->second) { in printProbeForAddress() local
514 Probe.print(OS, GUID2FuncDescMap, true); in printProbeForAddress()
540 for (const auto &Probe : Probes) { in getCallProbeForAddr() local
541 if (Probe.isCall()) { in getCallProbeForAddr()
545 CallProbe = &Probe; in getCallProbeForAddr()
[all …]
H A DMCStreamer.cpp1115 MCPseudoProbe Probe(ProbeSym, Guid, Index, Type, Attr); in emitPseudoProbe() local
1119 getCurrentSectionOnly(), Probe, InlineStack); in emitPseudoProbe()
/llvm-project-15.0.7/llvm/lib/Support/
H A DFoldingSet.cpp241 void *Probe = OldBuckets[i]; in GrowBucketCount() local
242 if (!Probe) continue; in GrowBucketCount()
243 while (Node *NodeInBucket = GetNextPtr(Probe)) { in GrowBucketCount()
245 Probe = NodeInBucket->getNextInBucket(); in GrowBucketCount()
282 void *Probe = *Bucket; in FindNodeOrInsertPos() local
287 while (Node *NodeInBucket = GetNextPtr(Probe)) { in FindNodeOrInsertPos()
292 Probe = NodeInBucket->getNextInBucket(); in FindNodeOrInsertPos()
401 void *Probe = NodePtr->getNextInBucket(); in advance() local
403 if (FoldingSetNode *NextNodeInBucket = GetNextPtr(Probe)) in advance()
407 void **Bucket = GetBucketPtr(Probe); in advance()
/llvm-project-15.0.7/compiler-rt/lib/ubsan/
H A Dubsan_type_hash_itanium.cpp102 unsigned Probe = First; in getTypeCacheHashTableBucket() local
104 if (!__ubsan_vptr_hash_set[Probe] || __ubsan_vptr_hash_set[Probe] == V) in getTypeCacheHashTableBucket()
105 return &__ubsan_vptr_hash_set[Probe]; in getTypeCacheHashTableBucket()
106 Probe += ((V >> 16) & 65535) + 1; in getTypeCacheHashTableBucket()
107 if (Probe >= HashTableSize) in getTypeCacheHashTableBucket()
108 Probe -= HashTableSize; in getTypeCacheHashTableBucket()
/llvm-project-15.0.7/llvm/include/llvm/MC/
H A DMCPseudoProbe.h229 void addProbes(ProbeType Probe) { Probes.push_back(Probe); } in addProbes() argument
256 void addPseudoProbe(const MCPseudoProbe &Probe,
281 void addPseudoProbe(MCSection *Sec, const MCPseudoProbe &Probe, in addPseudoProbe() argument
283 MCProbeDivisions[Sec].addPseudoProbe(Probe, InlineStack); in addPseudoProbe()
388 const MCDecodedPseudoProbe *Probe,
403 getInlinerDescForProbe(const MCDecodedPseudoProbe *Probe) const;
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DSampleProfileProbe.cpp140 if (Optional<PseudoProbe> Probe = extractProbe(I)) { in collectProbeFactors() local
142 ProbeFactors[{Probe->Id, Hash}] += Probe->Factor; in collectProbeFactors()
340 auto *Probe = Builder.CreateCall(ProbeFn, Args); in instrumentOneFunc() local
341 AssignDebugLoc(Probe); in instrumentOneFunc()
424 if (Optional<PseudoProbe> Probe = extractProbe(I)) { in runOnFunction() local
426 ProbeFactors[{Probe->Id, Hash}] += BBProfileCount(&Block); in runOnFunction()
434 if (Optional<PseudoProbe> Probe = extractProbe(I)) { in runOnFunction() local
436 float Sum = ProbeFactors[{Probe->Id, Hash}]; in runOnFunction()
H A DSampleProfile.cpp585 Optional<PseudoProbe> Probe = extractProbe(Inst); in getProbeWeight() local
588 if (!Probe) in getProbeWeight()
617 uint64_t Samples = R.get() * Probe->Factor; in getProbeWeight()
624 Remark << ore::NV("ProbeId", Probe->Id); in getProbeWeight()
626 Remark << ore::NV("Factor", Probe->Factor); in getProbeWeight()
738 Optional<PseudoProbe> Probe = extractProbe(Inst); in findFunctionSamples() local
739 if (!Probe) in findFunctionSamples()
1254 setProbeDistributionFactor(*I, Probe->Factor * in tryInlineCandidate()
1278 if (Optional<PseudoProbe> Probe = extractProbe(*CB)) in getInlineCandidate() local
1279 Factor = Probe->Factor; in getInlineCandidate()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-profgen/
H A DProfileGenerator.cpp553 const MCDecodedPseudoProbe *Probe = PI.first; in populateBodySamplesWithProbesForAllFunctions() local
556 Binary->getInlineContextForProbe(Probe, FrameVec, true); in populateBodySamplesWithProbesForAllFunctions()
559 FunctionProfile.addBodySamplesForProbe(Probe->getIndex(), Count); in populateBodySamplesWithProbesForAllFunctions()
560 if (Probe->isEntry()) in populateBodySamplesWithProbesForAllFunctions()
1073 for (const auto &Probe : It->second) { in extractProbesFromRange() local
1074 ProbeCounter[&Probe] += Count; in extractProbesFromRange()
1136 const MCDecodedPseudoProbe *Probe = PI.first; in populateBodySamplesWithProbes() local
1140 if (!Probe->isBlock() || Count == 0) in populateBodySamplesWithProbes()
1144 getContextNodeForLeafProbe(ContextStack, Probe); in populateBodySamplesWithProbes()
1152 if (Probe->isEntry()) { in populateBodySamplesWithProbes()
[all …]
H A DProfiledBinary.h534 void getInlineContextForProbe(const MCDecodedPseudoProbe *Probe,
538 ProbeDecoder.getInlineContextForProbe(Probe, ProbeInlineContext,
559 getInlinerDescForProbe(const MCDecodedPseudoProbe *Probe) { in getInlinerDescForProbe() argument
560 return ProbeDecoder.getInlinerDescForProbe(Probe); in getInlinerDescForProbe()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86DynAllocaExpander.cpp44 enum Lowering { TouchAndSub, Sub, Probe }; enumerator
101 return Probe; in getLowering()
169 case Probe: in computeLowerings()
251 case Probe: in lower()
/llvm-project-15.0.7/llvm/test/Transforms/SampleProfile/
H A Dpseudo-probe-update-2.ll20 ;; Probe 7 has two copies, since they don't share the same inline context, they are not
24 ;; Similar to Probe 7, one copy of Probe 8 doesn't have inline context.
H A Dpseudo-probe-verify.ll5 ; VERIFY: *** Pseudo Probe Verification After LoopFullUnrollPass ***
7 ; VERIFY-DAG: Probe 6 previous factor 1.00 current factor 5.00
8 ; VERIFY-DAG: Probe 4 previous factor 1.00 current factor 5.00
/llvm-project-15.0.7/bolt/lib/Rewrite/
H A DRewriteInstance.cpp3237 Probe.setAddress(INT64_MAX); in updatePseudoProbes()
3253 Probe.setAddress(INT64_MAX); in updatePseudoProbes()
3260 if (Probe->isBlock()) { in updatePseudoProbes()
3262 } else if (Probe->isCall()) { in updatePseudoProbes()
3271 Probe->setAddress(INT64_MAX); in updatePseudoProbes()
3278 AP.second.push_back(*Probe); in updatePseudoProbes()
3284 Probe = std::next(Probe); in updatePseudoProbes()
3313 if (Probe.isBlock() && Probe.getAddress() != INT64_MAX) in updatePseudoProbes()
3424 if (Probe->getAddress() == INT64_MAX) in encodePseudoProbes()
3435 EmitDecodedPseudoProbe(Probe); in encodePseudoProbes()
[all …]
/llvm-project-15.0.7/flang/include/flang/Evaluate/
H A Dintrinsics.h102 std::optional<SpecificCall> Probe( in ENUM_CLASS()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DFoldingSet.h743 void *Probe = static_cast<FoldingSetNode*>(Ptr)->getNextInBucket(); in advance() local
744 uintptr_t x = reinterpret_cast<uintptr_t>(Probe) & ~0x1; in advance()
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A DO0-pipeline.ll77 ; CHECK-NEXT: Pseudo Probe Inserter
H A Dopt-pipeline.ll210 ; CHECK-NEXT: Pseudo Probe Inserter
/llvm-project-15.0.7/llvm/test/CodeGen/SystemZ/
H A Dstack-clash-dynamic-alloca.ll46 ; Probe size should be modulo stack alignment.
H A Dstack-clash-protection.ll141 ; Probe size should be modulo stack alignment.
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dshape.cpp865 auto specific{context_->intrinsics().Probe( in operator ()()
876 auto specific{context_->intrinsics().Probe( in operator ()()
/llvm-project-15.0.7/flang/unittests/Evaluate/
H A Dintrinsics.cpp109 std::optional<SpecificCall> si{table.Probe(call, args, context)}; in DoCall()
/llvm-project-15.0.7/llvm/docs/
H A DExtensions.rst565 Stack Probe Emission
606 Stack Probe Emission

12