Home
last modified time | relevance | path

Searched refs:Counters (Results 1 – 25 of 40) sorted by relevance

12

/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerDataFlowTrace.h56 const auto &Counters = It->second; in GetCounter() local
57 if (BasicBlockId < Counters.size()) in GetCounter()
58 return Counters[BasicBlockId]; in GetCounter()
65 const auto &Counters = It->second; in GetNumberOfBlocks() local
66 return static_cast<uint32_t>(Counters.size()); in GetNumberOfBlocks()
72 const auto &Counters = It->second; in GetNumberOfCoveredBlocks() local
74 for (auto Cnt: Counters) in GetNumberOfCoveredBlocks()
86 uint32_t NumberOfCoveredBlocks(const CoverageVector &Counters) const { in NumberOfCoveredBlocks() argument
88 for (auto Cnt : Counters) in NumberOfCoveredBlocks()
94 uint32_t NumberOfUncoveredBlocks(const CoverageVector &Counters) const { in NumberOfUncoveredBlocks() argument
[all …]
H A DFuzzerDataFlowTrace.cpp69 auto &Counters = in AppendCoverage() local
75 if (Counters.size() != NumBlocks) return false; // wrong number of blocks. in AppendCoverage()
77 Counters[0]++; in AppendCoverage()
79 Counters[BB]++; in AppendCoverage()
93 auto Counters = It.second; in FunctionWeights() local
99 Weight /= SmallestNonZeroCounter(Counters); in FunctionWeights()
101 Weight *= NumberOfUncoveredBlocks(Counters) + 1; in FunctionWeights()
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DPGOCtxProfWriter.cpp59 DescribeRecord(PGOCtxProfileRecords::Counters, "Counters"); in PGOCtxProfileWriter()
64 DescribeRecord(PGOCtxProfileRecords::Counters, "Counters"); in PGOCtxProfileWriter()
69 DescribeRecord(PGOCtxProfileRecords::Counters, "Counters"); in PGOCtxProfileWriter()
78 void PGOCtxProfileWriter::writeCounters(ArrayRef<uint64_t> Counters) { in writeCounters() argument
80 Writer.EmitVBR(PGOCtxProfileRecords::Counters, VBREncodingBits); in writeCounters()
81 Writer.EmitVBR(Counters.size(), VBREncodingBits); in writeCounters()
82 for (uint64_t C : Counters) in writeCounters()
174 std::vector<uint64_t> Counters; member
198 auto AllocSize = ctx_profile::ContextNode::getAllocSize(DC.Counters.size(), in createNode()
202 auto *Ret = new (Mem) ctx_profile::ContextNode(DC.Guid, DC.Counters.size(), in createNode()
[all …]
H A DPGOCtxProfReader.cpp39 SmallVectorImpl<uint64_t> &&Counters) { in getOrEmplace() argument
41 Callsites[Index].insert({G, PGOCtxProfContext(G, std::move(Counters))}); in getOrEmplace()
97 std::optional<SmallVector<uint64_t, 16>> Counters; in readProfile() local
109 return Guid.has_value() && Counters.has_value() && in readProfile()
137 case PGOCtxProfileRecords::Counters: in readProfile()
138 Counters = std::move(RecordValues); in readProfile()
139 if (Counters->empty()) in readProfile()
165 PGOCtxProfContext Ret(*Guid, std::move(*Counters), TotalEntryCount, in readProfile()
308 const SmallVectorImpl<uint64_t> &Counters, in toYaml() argument
330 for (size_t I = 0U, E = Counters.size(); I < E; ++I) {
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DPGOCtxProfReader.h101 SmallVector<uint64_t, 16> Counters; variable
107 GlobalValue::GUID G, SmallVectorImpl<uint64_t> &&Counters,
110 : GUID(G), Counters(std::move(Counters)), RootEntryCount(RootEntryCount), in GUID()
117 SmallVectorImpl<uint64_t> &&Counters);
130 const SmallVectorImpl<uint64_t> &counters() const { return Counters; } in counters()
131 SmallVectorImpl<uint64_t> &counters() { return Counters; } in counters()
139 assert(!Counters.empty() && in getEntrycount()
142 return Counters[0]; in getEntrycount()
159 void resizeCounters(uint32_t Size) { Counters.resize(Size); } in resizeCounters()
H A DPGOCtxProfWriter.h28 Counters, enumerator
87 void writeCounters(ArrayRef<uint64_t> Counters);
H A DInstrProfWriter.h159 const InstrProfRecord &Counters,
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DDebugCounter.h98 return instance().Counters[ID].IsSet; in isCounterSet()
109 auto Result = Us.Counters.find(ID); in getCounterState()
110 assert(Result != Us.Counters.end() && "Asking about a non-set counter"); in getCounterState()
117 auto &Counter = Us.Counters[ID]; in setCounterState()
139 return std::make_pair(RegisteredCounters[ID], Counters.lookup(ID).Desc); in getCounterInfo()
168 auto &C = Counters[Result]; in addCounter()
182 DenseMap<unsigned, CounterInfo> Counters; variable
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DCtxProfAnalysis.cpp195 ArrayRef<uint64_t> Counters; member in llvm::ProfileAnnotatorImpl
271 assert(Index < Counters.size()); in allNonColdSelectsHaveProfile()
272 if (Counters[Index] == 0) in allNonColdSelectsHaveProfile()
312 ProfileAnnotatorImpl(const Function &F, ArrayRef<uint64_t> Counters) in ProfileAnnotatorImpl() argument
313 : F(F), Counters(Counters) { in ProfileAnnotatorImpl()
315 assert(!Counters.empty()); in ProfileAnnotatorImpl()
322 assert(Index < Counters.size() && in ProfileAnnotatorImpl()
327 Count = Counters[Ins->getIndex()->getZExtValue()]; in ProfileAnnotatorImpl()
387 assert(Index < PImpl->Counters.size() && in getSelectInstrProfile()
393 TrueCount = PImpl->Counters[Index]; in getSelectInstrProfile()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DDebugCounter.cpp202 CounterInfo &Counter = Counters[CounterID]; in push_back()
216 const CounterInfo &C = Us.Counters[CounterID]; in print()
226 auto Result = Us.Counters.find(CounterName); in shouldExecuteImpl()
227 if (Result != Us.Counters.end()) { in shouldExecuteImpl()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmtOpenMP.cpp315 Dir->setCounters(Exprs.Counters); in Create()
358 Dir->setCounters(Exprs.Counters); in Create()
534 Dir->setCounters(Exprs.Counters); in Create()
681 Dir->setCounters(Exprs.Counters); in Create()
726 Dir->setCounters(Exprs.Counters); in Create()
1075 Dir->setCounters(Exprs.Counters); in Create()
1179 Dir->setCounters(Exprs.Counters); in Create()
1224 Dir->setCounters(Exprs.Counters); in Create()
1267 Dir->setCounters(Exprs.Counters); in Create()
1312 Dir->setCounters(Exprs.Counters); in Create()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/ctx_profile/
H A DCtxInstrProfiling.cpp291 uint32_t Counters, uint32_t Callsites) in tryStartContextGivenRoot() argument
297 setupContext(Root, Guid, Counters, Callsites); in tryStartContextGivenRoot()
409 uint32_t Counters, in __llvm_ctx_profile_start_context() argument
413 return tryStartContextGivenRoot(Root, Guid, Counters, Callsites); in __llvm_ctx_profile_start_context()
H A DCtxInstrProfiling.h202 uint32_t Counters, uint32_t Callsites);
/freebsd/sys/contrib/device-tree/Bindings/arc/
H A Darchs-pct.txt1 * ARC HS Performance Counters
H A Dpct.txt1 * ARC Performance Counters
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsPfmCounters.td1 //===-- MipsPfmCounters.td - Mips Hardware Counters --------*- tablegen -*-===//
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCPfmCounters.td1 //===-- PPCPfmCounters.td - PPC Hardware Counters ----------*- tablegen -*-===//
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64PfmCounters.td1 //===-- AArch64PfmCounters.td - AArch64 Hardware Counters --*- tablegen -*-===//
H A DAArch64.td182 // Pfm Counters
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVPfmCounters.td1 //===---- RISCVPfmCounters.td - RISC-V Hardware Counters ---*- tablegen -*-===//
H A DRISCV.td77 // Pfm Counters
/freebsd/contrib/llvm-project/llvm/include/llvm/Target/
H A DTargetPfmCounters.td1 //===- TargetPfmCounters.td - Target Pfm Counters -*- tablegen ----------*-===//
76 ProcPfmCounters Counters = counters;
/freebsd/packages/pmc/
H A Dpmc.ucl4 The Performance Counters Library (libpmc, -lpmc) provides a programming
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86PfmCounters.td1 //===-- X86PfmCounters.td - X86 Hardware Counters ----------*- tablegen -*-===//
20 // Intel X86 Counters.
259 // AMD X86 Counters.
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DGCOVProfiling.cpp892 GlobalVariable *Counters = new GlobalVariable( in emitProfileNotes() local
897 Counters->setSection("__llvm_gcov_ctr_section"); in emitProfileNotes()
898 CountersBySP.emplace_back(Counters, SP); in emitProfileNotes()
904 Counters->getValueType(), Counters, 0, I); in emitProfileNotes()

12