/external/llvm-project/compiler-rt/lib/scudo/standalone/tests/ |
D | release_test.cpp | 39 const scudo::uptr NumCounters = in TEST() local 41 scudo::PackedCounterArray Counters(1U, NumCounters, in TEST() 44 for (scudo::uptr C = 1; C < NumCounters - 1; C++) { in TEST() 49 EXPECT_EQ(0UL, Counters.get(0U, NumCounters - 1)); in TEST() 50 Counters.inc(0U, NumCounters - 1); in TEST() 52 Counters.incRange(0u, 0U, NumCounters - 1); in TEST() 53 for (scudo::uptr C = 0; C < NumCounters; C++) in TEST()
|
/external/scudo/standalone/tests/ |
D | release_test.cpp | 39 const scudo::uptr NumCounters = in TEST() local 41 scudo::PackedCounterArray Counters(1U, NumCounters, in TEST() 44 for (scudo::uptr C = 1; C < NumCounters - 1; C++) { in TEST() 49 EXPECT_EQ(0UL, Counters.get(0U, NumCounters - 1)); in TEST() 50 Counters.inc(0U, NumCounters - 1); in TEST() 52 Counters.incRange(0u, 0U, NumCounters - 1); in TEST() 53 for (scudo::uptr C = 0; C < NumCounters; C++) in TEST()
|
/external/scudo/standalone/ |
D | release.h | 56 : Regions(NumberOfRegions), NumCounters(CountersPerRegion) { in PackedCounterArray() 58 DCHECK_GT(NumCounters, 0); in PackedCounterArray() 75 roundUpTo(NumCounters, static_cast<uptr>(1U) << PackingRatioLog) >> in PackedCounterArray() 100 uptr getCount() const { return NumCounters; } in getCount() 104 DCHECK_LT(I, NumCounters); in get() 121 const uptr Top = Min(To + 1, NumCounters); in incRange() 132 const uptr NumCounters; variable
|
/external/llvm-project/compiler-rt/lib/scudo/standalone/ |
D | release.h | 54 : Regions(NumberOfRegions), NumCounters(CountersPerRegion) { in PackedCounterArray() 56 CHECK_GT(NumCounters, 0); in PackedCounterArray() 73 roundUpTo(NumCounters, static_cast<uptr>(1U) << PackingRatioLog) >> in PackedCounterArray() 96 uptr getCount() const { return NumCounters; } in getCount() 100 DCHECK_LT(I, NumCounters); in get() 117 const uptr Top = Min(To + 1, NumCounters); in incRange() 128 const uptr NumCounters; variable
|
/external/compiler-rt/lib/profile/ |
D | InstrProfilingMerge.c | 76 SrcData->NumCounters != DstData->NumCounters) in __llvm_profile_check_compatibility() 111 NC = SrcData->NumCounters; in __llvm_profile_merge_from_buffer()
|
D | InstrProfilingPlatformOther.c | 46 CountersLast = (uint64_t *)Data->CounterPtr + Data->NumCounters; in __llvm_profile_register_function() 55 CountersLast, (uint64_t *)Data->CounterPtr + Data->NumCounters); in __llvm_profile_register_function()
|
D | InstrProfData.inc | 90 INSTR_PROF_DATA(const uint32_t, llvm::Type::getInt32Ty(Ctx), NumCounters, \ 91 ConstantInt::get(llvm::Type::getInt32Ty(Ctx), NumCounters))
|
/external/llvm-project/compiler-rt/lib/profile/ |
D | InstrProfilingMerge.c | 76 SrcData->NumCounters != DstData->NumCounters) in __llvm_profile_check_compatibility() 111 NC = SrcData->NumCounters; in __llvm_profile_merge_from_buffer()
|
D | InstrProfilingPlatformOther.c | 49 CountersLast = (uint64_t *)Data->CounterPtr + Data->NumCounters; in __llvm_profile_register_function() 58 CountersLast, (uint64_t *)Data->CounterPtr + Data->NumCounters); in __llvm_profile_register_function()
|
/external/mesa3d/src/mesa/main/ |
D | performance_monitor.c | 89 BITSET_WORDS(g->NumCounters)); in new_performance_monitor() 141 if (id >= group_obj->NumCounters) in get_counter() 190 *numCounters = group_obj->NumCounters; in _mesa_GetPerfMonitorCountersAMD() 194 unsigned n = MIN2(group_obj->NumCounters, (GLuint) countersSize); in _mesa_GetPerfMonitorCountersAMD() 467 if (counterList[i] >= group_obj->NumCounters) { in _mesa_SelectPerfMonitorCountersAMD() 566 BITSET_FOREACH_SET(counter, m->ActiveCounters[group], g->NumCounters) { in perf_monitor_result_size()
|
/external/llvm/lib/ProfileData/ |
D | InstrProfReader.cpp | 223 uint64_t NumCounters; in readNextRecord() local 226 if ((Line++)->getAsInteger(10, NumCounters)) in readNextRecord() 228 if (NumCounters == 0) in readNextRecord() 233 Record.Counts.reserve(NumCounters); in readNextRecord() 234 for (uint64_t I = 0; I < NumCounters; ++I) { in readNextRecord() 371 uint32_t NumCounters = swap(Data->NumCounters); in readRawCounts() local 373 if (NumCounters == 0) in readRawCounts() 376 auto RawCounts = makeArrayRef(getCounter(CounterPtr), NumCounters); in readRawCounts()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/ |
D | InstrProfReader.cpp | 267 uint64_t NumCounters; in readNextRecord() local 270 if ((Line++)->getAsInteger(10, NumCounters)) in readNextRecord() 272 if (NumCounters == 0) in readNextRecord() 277 Record.Counts.reserve(NumCounters); in readNextRecord() 278 for (uint64_t I = 0; I < NumCounters; ++I) { in readNextRecord() 415 uint32_t NumCounters = swap(Data->NumCounters); in readRawCounts() local 417 if (NumCounters == 0) in readRawCounts() 425 if (NumCounters > MaxNumCounters) in readRawCounts() 429 (CounterOffset + NumCounters) > MaxNumCounters) in readRawCounts() 432 auto RawCounts = makeArrayRef(getCounter(CounterOffset), NumCounters); in readRawCounts()
|
/external/llvm-project/llvm/lib/ProfileData/ |
D | InstrProfReader.cpp | 274 uint64_t NumCounters; in readNextRecord() local 277 if ((Line++)->getAsInteger(10, NumCounters)) in readNextRecord() 279 if (NumCounters == 0) in readNextRecord() 284 Record.Counts.reserve(NumCounters); in readNextRecord() 285 for (uint64_t I = 0; I < NumCounters; ++I) { in readNextRecord() 422 uint32_t NumCounters = swap(Data->NumCounters); in readRawCounts() local 424 if (NumCounters == 0) in readRawCounts() 432 if (MaxNumCounters < 0 || NumCounters > (uint32_t)MaxNumCounters) in readRawCounts() 436 ((uint32_t)CounterOffset + NumCounters) > (uint32_t)MaxNumCounters) in readRawCounts() 439 auto RawCounts = makeArrayRef(getCounter(CounterOffset), NumCounters); in readRawCounts()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | InstrProfiling.cpp | 346 uint64_t NumCounters = Inc->getNumCounters()->getZExtValue(); in getOrCreateRegionCounters() local 348 ArrayType *CounterTy = ArrayType::get(Type::getInt64Ty(Ctx), NumCounters); in getOrCreateRegionCounters() 449 uint64_t NumCounters = TotalNS * NumCountersPerValueSite; in emitVNodes() local 458 if (NumCounters < INSTR_PROF_MIN_VAL_COUNTS) in emitVNodes() 459 NumCounters = std::max(INSTR_PROF_MIN_VAL_COUNTS, (int)NumCounters * 2); in emitVNodes() 468 ArrayType *VNodesTy = ArrayType::get(VNodeTy, NumCounters); in emitVNodes()
|
D | PGOInstrumentation.cpp | 346 unsigned NumCounters = 0; in instrumentOneFunc() local 350 NumCounters++; in instrumentOneFunc() 366 Builder.getInt64(FuncInfo.FunctionHash), Builder.getInt32(NumCounters), in instrumentOneFunc()
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_cb_perfmon.c | 92 BITSET_FOREACH_SET(cid, m->ActiveCounters[gid], g->NumCounters) { in init_perf_monitor() 391 struct gl_perf_monitor_counter *c = &counters[g->NumCounters]; in st_InitPerfMonitorGroups() 392 struct st_perf_monitor_counter *stc = &stcounters[g->NumCounters]; in st_InitPerfMonitorGroups() 434 g->NumCounters++; in st_InitPerfMonitorGroups()
|
/external/llvm-project/llvm/lib/Transforms/Instrumentation/ |
D | InstrProfiling.cpp | 838 uint64_t NumCounters = Inc->getNumCounters()->getZExtValue(); in getOrCreateRegionCounters() local 840 ArrayType *CounterTy = ArrayType::get(Type::getInt64Ty(Ctx), NumCounters); in getOrCreateRegionCounters() 944 uint64_t NumCounters = TotalNS * NumCountersPerValueSite; in emitVNodes() local 953 if (NumCounters < INSTR_PROF_MIN_VAL_COUNTS) in emitVNodes() 954 NumCounters = std::max(INSTR_PROF_MIN_VAL_COUNTS, (int)NumCounters * 2); in emitVNodes() 963 ArrayType *VNodesTy = ArrayType::get(VNodeTy, NumCounters); in emitVNodes()
|
D | PGOInstrumentation.cpp | 880 unsigned NumCounters = in instrumentOneFunc() local 892 Builder.getInt64(FuncInfo.FunctionHash), Builder.getInt32(NumCounters), in instrumentOneFunc() 897 FuncInfo.SIVisitor.instrumentSelects(F, &I, NumCounters, FuncInfo.FuncNameVar, in instrumentOneFunc() 899 assert(I == NumCounters); in instrumentOneFunc() 1147 unsigned NumCounters = in setInstrumentedCounts() local 1151 if (NumCounters != CountFromProfile.size()) { in setInstrumentedCounts()
|
D | GCOVProfiling.cpp | 1288 auto *NumCounters = Builder.CreateLoad( in insertCounterWriteout() local 1299 Builder.CreateICmpSLT(Builder.getInt32(0), NumCounters); in insertCounterWriteout() 1342 auto *CounterLoopCond = Builder.CreateICmpSLT(NextJV, NumCounters); in insertCounterWriteout()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/ |
D | InstrProfiling.cpp | 777 uint64_t NumCounters = Inc->getNumCounters()->getZExtValue(); in getOrCreateRegionCounters() local 779 ArrayType *CounterTy = ArrayType::get(Type::getInt64Ty(Ctx), NumCounters); in getOrCreateRegionCounters() 883 uint64_t NumCounters = TotalNS * NumCountersPerValueSite; in emitVNodes() local 892 if (NumCounters < INSTR_PROF_MIN_VAL_COUNTS) in emitVNodes() 893 NumCounters = std::max(INSTR_PROF_MIN_VAL_COUNTS, (int)NumCounters * 2); in emitVNodes() 902 ArrayType *VNodesTy = ArrayType::get(VNodeTy, NumCounters); in emitVNodes()
|
D | PGOInstrumentation.cpp | 816 unsigned NumCounters = in instrumentOneFunc() local 828 Builder.getInt64(FuncInfo.FunctionHash), Builder.getInt32(NumCounters), in instrumentOneFunc() 833 FuncInfo.SIVisitor.instrumentSelects(F, &I, NumCounters, FuncInfo.FuncNameVar, in instrumentOneFunc() 835 assert(I == NumCounters); in instrumentOneFunc() 1069 unsigned NumCounters = in setInstrumentedCounts() local 1073 if (NumCounters != CountFromProfile.size()) { in setInstrumentedCounts()
|
D | GCOVProfiling.cpp | 1119 auto *NumCounters = in insertCounterWriteout() local 1129 Builder.CreateICmpSLT(Builder.getInt32(0), NumCounters); in insertCounterWriteout() 1174 auto *CounterLoopCond = Builder.CreateICmpSLT(NextJV, NumCounters); in insertCounterWriteout()
|
/external/llvm/lib/Fuzzer/ |
D | FuzzerLoop.cpp | 70 size_t NumCounters = EF->__sanitizer_get_number_of_counters(); in Prepare() local 71 C->CounterBitmap.resize(NumCounters); in Prepare()
|
/external/llvm/include/llvm/ProfileData/ |
D | InstrProfData.inc | 90 INSTR_PROF_DATA(const uint32_t, llvm::Type::getInt32Ty(Ctx), NumCounters, \ 91 ConstantInt::get(llvm::Type::getInt32Ty(Ctx), NumCounters))
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ProfileData/ |
D | InstrProfData.inc | 89 INSTR_PROF_DATA(const uint32_t, llvm::Type::getInt32Ty(Ctx), NumCounters, \ 90 ConstantInt::get(llvm::Type::getInt32Ty(Ctx), NumCounters))
|