/freebsd-current/contrib/googletest/googletest/samples/ |
H A D | sample4.cc | 37 int Counter::Increment() { return counter_++; } 41 int Counter::Decrement() { 50 void Counter::Print() const { printf("%d", counter_); }
|
H A D | sample4.h | 35 class Counter { class 41 Counter() : counter_(0) {} function in class:Counter
|
H A D | sample4_unittest.cc | 37 TEST(Counter, Increment) { 38 Counter c;
|
/freebsd-current/contrib/wpa/src/eapol_auth/ |
H A D | eapol_auth_sm_i.h | 21 typedef unsigned int Counter; typedef 80 Counter authEntersConnecting; 81 Counter authEapLogoffsWhileConnecting; 82 Counter authEntersAuthenticating; 83 Counter authAuthSuccessesWhileAuthenticating; 84 Counter authAuthTimeoutsWhileAuthenticating; 85 Counter authAuthFailWhileAuthenticating; 86 Counter authAuthEapStartsWhileAuthenticating; 87 Counter authAuthEapLogoffWhileAuthenticating; 88 Counter authAuthReauthsWhileAuthenticate [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | condition_variable_linux.cpp | 25 const u32 V = atomic_load_relaxed(&Counter); 26 atomic_store_relaxed(&Counter, V + 1); 29 // `Counter` to futex waiting queue `M` so that the awoken threads won't be 32 syscall(SYS_futex, reinterpret_cast<uptr>(&Counter), FUTEX_WAKE_PRIVATE, 40 const u32 V = atomic_load_relaxed(&Counter) + 1; 41 atomic_store_relaxed(&Counter, V); 45 syscall(SYS_futex, reinterpret_cast<uptr>(&Counter), FUTEX_WAIT_PRIVATE, V,
|
H A D | condition_variable_linux.h | 31 atomic_u32 Counter = {}; member in class:scudo::ConditionVariableLinux
|
/freebsd-current/contrib/llvm-project/llvm/lib/ProfileData/Coverage/ |
H A D | CoverageMappingWriter.cpp | 92 void mark(Counter C) { 101 void gatherUsed(Counter C) { 115 Counter adjust(Counter C) const { 117 C = Counter::getExpression(AdjustedExpressionIDs[C.getExpressionID()]); 128 /// Counter::Zero(0) - A Counter with kind Counter::Zero 129 /// Counter::CounterValueReference(1) - A counter with kind 130 /// Counter [all...] |
H A D | CoverageMapping.cpp | 50 Counter CounterExpressionBuilder::get(const CounterExpression &E) { 53 return Counter::getExpression(It->second); 57 return Counter::getExpression(I); 60 void CounterExpressionBuilder::extractTerms(Counter C, int Factor, 63 case Counter::Zero: 65 case Counter::CounterValueReference: 68 case Counter::Expression: 77 Counter CounterExpressionBuilder::simplify(Counter ExpressionTree) { 85 return Counter [all...] |
H A D | CoverageMappingReader.cpp | 191 Error RawCoverageMappingReader::decodeCounter(unsigned Value, Counter &C) { 192 auto Tag = Value & Counter::EncodingTagMask; 194 case Counter::Zero: 195 C = Counter::getZero(); 197 case Counter::CounterValueReference: 198 C = Counter::getCounter(Value >> Counter::EncodingTagBits); 203 Tag -= Counter::Expression; 207 auto ID = Value >> Counter::EncodingTagBits; 212 C = Counter [all...] |
/freebsd-current/contrib/llvm-project/llvm/lib/Support/ |
H A D | DebugCounter.cpp | 113 CounterInfo &Counter = Counters[CounterID]; local 114 Counter.Skip = CounterVal; 115 Counter.IsSet = true; 126 CounterInfo &Counter = Counters[CounterID]; local 127 Counter.StopAfter = CounterVal; 128 Counter.IsSet = true;
|
/freebsd-current/contrib/llvm-project/llvm/tools/llvm-remarkutil/ |
H A D | RemarkCounter.h | 110 struct Counter { struct in namespace:llvm::remarks 112 Counter() = default; 113 Counter(enum GroupBy GroupBy) : Group(GroupBy) {} function in struct:llvm::remarks::Counter 124 virtual ~Counter() = default; 145 struct ArgumentCounter : Counter { 198 struct RemarkCounter : Counter { 200 RemarkCounter(GroupBy Group) : Counter(Group) {}
|
H A D | RemarkCounter.cpp | 168 std::optional<std::string> Counter::getGroupByKey(const Remark &Remark) { 280 Error useCollectRemark(StringRef Buffer, Counter &Counter, Filters &Filter) { argument 290 Counter.collect(Remark); 293 if (auto E = Counter.print(OutputFileName))
|
/freebsd-current/contrib/llvm-project/llvm/include/llvm/ProfileData/Coverage/ |
H A D | CoverageMapping.h | 103 /// A Counter is an abstract value that describes how to compute the 105 struct Counter { struct in namespace:llvm::coverage 118 Counter(CounterKind Kind, unsigned ID) : Kind(Kind), ID(ID) {} function in struct:llvm::coverage::Counter 121 Counter() = default; 133 friend bool operator==(const Counter &LHS, const Counter &RHS) { 137 friend bool operator!=(const Counter &LHS, const Counter &RHS) { 141 friend bool operator<(const Counter &LHS, const Counter [all...] |
/freebsd-current/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CoverageMappingGen.cpp | 103 /// Primary Counter that is also used for Branch Regions for "True" branches. 104 Counter Count; 106 /// Secondary Counter used for Branch Regions for "False" branches. 107 std::optional<Counter> FalseCount; 127 SourceMappingRegion(Counter Count, std::optional<SourceLocation> LocStart, 133 SourceMappingRegion(Counter Count, std::optional<Counter> FalseCount, 148 const Counter &getCounter() const { return Count; } 150 const Counter &getFalseCounter() const { 155 void setCounter(Counter [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
H A D | FuzzerTracePC.h | 173 std::unordered_map<uintptr_t, uintptr_t> ObservedFuncs; // PC => Counter. 211 // Given a non-zero Counter returns a number in the range [0,7]. 213 unsigned CounterToFeature(T Counter) { argument 217 // Counter bucket: [1] [2] [3] [4-7] [8-15] [16-31] [32-127] [128+] 225 assert(Counter); 227 /**/ if (Counter >= 128) Bit = 7; 228 else if (Counter >= 32) Bit = 6; 229 else if (Counter >= 16) Bit = 5; 230 else if (Counter >= 8) Bit = 4; 231 else if (Counter > [all...] |
/freebsd-current/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | CallingConvEmitter.cpp | 26 unsigned Counter = 0u; member in class:__anon3128::CallingConvEmitter 87 Counter = 0; 169 O << IndentStr << "static const MCPhysReg RegList" << ++Counter local 183 << Counter << ")) {\n"; local 224 unsigned RegListNumber = ++Counter; 225 unsigned ShadowRegListNumber = ++Counter; 255 O << IndentStr << "int64_t Offset" << ++Counter local 274 << Counter << ", LocVT, LocInfo));\n"; local 281 unsigned ShadowRegListNumber = ++Counter; 291 O << IndentStr << "int64_t Offset" << ++Counter 295 << Counter << ", LocVT, LocInfo));\\n"; local [all...] |
H A D | ExegesisEmitter.cpp | 66 const llvm::StringRef Counter = PfmCounterDef->getValueAsString("Counter"); 67 if (!Counter.empty()) 68 PfmCounterNameTable.emplace(Counter, 0); 123 Def.getValueAsDef("CycleCounter")->getValueAsString("Counter"); 125 Def.getValueAsDef("UopsCounter")->getValueAsString("Counter"); 141 getPfmCounterId(ValidationCounter->getValueAsString("Counter"))}); 157 // Cycle Counter. 164 // Uops Counter. 211 << getPfmCounterId(ICDef->getValueAsString("Counter")) << "], \"" [all...] |
/freebsd-current/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | WorkList.cpp | 210 unsigned long Counter = 0; member in class:__anon897::UnexploredFirstPriorityQueue 234 queue.push(std::make_pair(U, std::make_pair(-NumVisited, ++Counter))); 266 unsigned long Counter = 0; member in class:__anon898::UnexploredFirstPriorityLocationQueue 286 queue.push(std::make_pair(U, std::make_pair(-NumVisited, ++Counter)));
|
/freebsd-current/contrib/llvm-project/clang/lib/Tooling/ |
H A D | AllTUsExecution.cpp | 109 unsigned Counter = 0; local 112 return ++Counter;
|
/freebsd-current/contrib/llvm-project/llvm/lib/Target/DirectX/ |
H A D | DXILResource.cpp | 31 uint32_t Counter = 0; 33 Data.push_back(T(Counter++, FrontendResource(cast<MDNode>(Res)))); 42 uint32_t Counter = 0; 45 ConstantBuffer(Counter++, FrontendResource(cast<MDNode>(Res))));
|
/freebsd-current/contrib/ee/ |
H A D | new_curse.c | 1161 int Counter; local 1167 Counter = 0; 1195 Spoint->element->value = Key_vals[Counter]; 1217 Spoint->element->value = Key_vals[Counter]; 1229 Counter++; 1266 int Counter; local 1273 Counter = 1; 1276 Counter++; 1279 if (Counter == 1) /* no data */ 1281 String = Temp = malloc(Counter); [all...] |
/freebsd-current/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | LexicalScopes.cpp | 240 unsigned Counter = 0; local 249 ChildScope->setDFSIn(++Counter); 252 WS->setDFSOut(++Counter);
|
H A D | MIRVRegNamerUtils.cpp | 44 const unsigned Counter = ++VRegNameCollisionMap[Reg.getName()]; 45 return Reg.getName() + "__" + std::to_string(Counter);
|
/freebsd-current/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | CallPrinter.cpp | 191 uint64_t Counter = getNumOfCalls(*Caller, *Callee); 193 1 + 2 * (double(Counter) / CGInfo->getMaxFreq()); 194 std::string Attrs = "label=\"" + std::to_string(Counter) +
|
/freebsd-current/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
H A D | Layer.cpp | 88 size_t Counter = 0; 93 << "$." << M.getModuleIdentifier() << ".__inits." << Counter++;
|