| /llvm-project-15.0.7/llvm/lib/Support/BLAKE3/ |
| H A D | blake3_portable.c | 10 state[a] = state[a] + state[b] + x; in g() 11 state[d] = rotr32(state[d] ^ state[a], 16); in g() 12 state[c] = state[c] + state[d]; in g() 13 state[b] = rotr32(state[b] ^ state[c], 12); in g() 14 state[a] = state[a] + state[b] + y; in g() 15 state[d] = rotr32(state[d] ^ state[a], 8); in g() 16 state[c] = state[c] + state[d]; in g() 17 state[b] = rotr32(state[b] ^ state[c], 7); in g() 90 cv[0] = state[0] ^ state[8]; in blake3_compress_in_place_portable() 91 cv[1] = state[1] ^ state[9]; in blake3_compress_in_place_portable() [all …]
|
| /llvm-project-15.0.7/third-party/benchmark/bindings/python/google_benchmark/ |
| H A D | example.py | 31 def empty(state): argument 32 while state: 38 while state: 44 while state: 64 while state: 77 while state: 99 while state: 106 while state: 114 while state: 121 while state: [all …]
|
| /llvm-project-15.0.7/third-party/benchmark/test/ |
| H A D | basic_test.cc | 7 for (auto _ : state) { in BM_empty() 15 for (auto _ : state) { in BM_spin_empty() 28 for (auto _ : state) { in BM_spin_pause_before() 38 for (auto _ : state) { in BM_spin_pause_during() 39 state.PauseTiming(); in BM_spin_pause_during() 43 state.ResumeTiming(); in BM_spin_pause_during() 53 for (auto _ : state) { in BM_pause_during() 54 state.PauseTiming(); in BM_pause_during() 55 state.ResumeTiming(); in BM_pause_during() 64 for (auto _ : state) { in BM_spin_pause_after() [all …]
|
| H A D | skip_with_error_test.cc | 90 for (auto _ : state) { in BM_error_before_running_range_for() 100 if (state.range(0) == 1 && state.thread_index() <= (state.threads() / 2)) { in BM_error_during_running() 105 state.PauseTiming(); in BM_error_during_running() 106 state.ResumeTiming(); in BM_error_during_running() 124 for (auto It = state.begin(), End = state.end(); It != End; ++It) { in BM_error_during_running_ranged_for() 143 for (auto _ : state) { in BM_error_after_running() 146 if (state.thread_index() <= (state.threads() / 2)) in BM_error_after_running() 158 if (state.range(0) == 1 && state.thread_index() <= (state.threads() / 2)) { in BM_error_while_paused() 161 state.PauseTiming(); in BM_error_while_paused() 164 state.PauseTiming(); in BM_error_while_paused() [all …]
|
| H A D | benchmark_test.cc | 67 for (auto _ : state) pi = CalculatePi(static_cast<int>(state.range(0))); in BM_CalculatePiRange() 76 for (auto _ : state) { in BM_CalculatePi() 86 for (auto _ : state) { in BM_SetInsert() 87 state.PauseTiming(); in BM_SetInsert() 89 state.ResumeTiming(); in BM_SetInsert() 92 state.SetItemsProcessed(state.iterations() * state.range(1)); in BM_SetInsert() 93 state.SetBytesProcessed(state.iterations() * state.range(1) * sizeof(int)); in BM_SetInsert() 105 for (auto _ : state) { in BM_Sequential() 109 const int64_t items_processed = state.iterations() * state.range(0); in BM_Sequential() 135 for (auto _ : state) { in BM_SetupTeardown() [all …]
|
| H A D | user_counters_test.cc | 26 for (auto _ : state) { in BM_Counters_Simple() 28 state.counters["foo"] = 1; in BM_Counters_Simple() 29 state.counters["bar"] = 2 * static_cast<double>(state.iterations()); in BM_Counters_Simple() 68 for (auto _ : state) { in BM_Counters_WithBytesAndItemsPSec() 119 for (auto _ : state) { in BM_Counters_Rate() 162 for (auto _ : state) { in BM_Invert() 203 for (auto _ : state) { in BM_Counters_InvertedRate() 249 for (auto _ : state) { in BM_Counters_Threads() 289 for (auto _ : state) { in BM_Counters_AvgThreads() 331 for (auto _ : state) { in BM_Counters_AvgThreadsRate() [all …]
|
| H A D | cxx03_test.cc | 15 void BM_empty(benchmark::State& state) { in BM_empty() argument 16 while (state.KeepRunning()) { in BM_empty() 26 assert((state.range(0) == 1 && state.range(1) == 2) || in BM_old_arg_range_interface() 27 (state.range(0) == 5 && state.range(1) == 6)); in BM_old_arg_range_interface() 28 while (state.KeepRunning()) { in BM_old_arg_range_interface() 35 BM_empty(state); in BM_template2() 41 BM_empty(state); in BM_template1() 50 BM_empty(state); in BENCHMARK_TEMPLATE_F() 53 BM_empty(state); in BENCHMARK_TEMPLATE1_F() 57 BM_empty(state); in BM_counters() [all …]
|
| H A D | reporter_output_test.cc | 68 for (auto _ : state) { in BM_basic() 94 for (auto _ : state) { in BM_bytes_per_second() 125 for (auto _ : state) { in BM_items_per_second() 156 for (auto _ : state) { in BM_label() 185 for (auto _ : state) { in BM_time_label_nanosecond() 208 for (auto _ : state) { in BM_time_label_microsecond() 231 for (auto _ : state) { in BM_time_label_millisecond() 254 for (auto _ : state) { in BM_time_label_second() 281 for (auto _ : state) { in BM_error() 305 for (auto _ : state) { in BM_no_arg_name() [all …]
|
| H A D | diagnostics_test.cc | 28 void try_invalid_pause_resume(benchmark::State& state) { in try_invalid_pause_resume() argument 32 state.PauseTiming(); in try_invalid_pause_resume() 37 state.ResumeTiming(); in try_invalid_pause_resume() 42 (void)state; // avoid unused warning in try_invalid_pause_resume() 46 void BM_diagnostic_test(benchmark::State& state) { in BM_diagnostic_test() argument 49 if (called_once == false) try_invalid_pause_resume(state); in BM_diagnostic_test() 51 for (auto _ : state) { in BM_diagnostic_test() 52 benchmark::DoNotOptimize(state.iterations()); in BM_diagnostic_test() 55 if (called_once == false) try_invalid_pause_resume(state); in BM_diagnostic_test() 66 while (state.KeepRunning()) { in BM_diagnostic_test_keep_running() [all …]
|
| H A D | multiple_ranges_test.cc | 31 void SetUp(const ::benchmark::State& state) BENCHMARK_OVERRIDE { in SetUp() argument 32 std::vector<int64_t> ranges = {state.range(0), state.range(1), in SetUp() 33 state.range(2)}; in SetUp() 67 BENCHMARK_DEFINE_F(MultipleRangesFixture, Empty)(benchmark::State& state) { in BENCHMARK_DEFINE_F() 68 for (auto _ : state) { in BENCHMARK_DEFINE_F() 69 int64_t product = state.range(0) * state.range(1) * state.range(2); in BENCHMARK_DEFINE_F() 81 void BM_CheckDefaultArgument(benchmark::State& state) { in BM_CheckDefaultArgument() argument 83 assert(state.range() == state.range(0)); in BM_CheckDefaultArgument() 84 assert(state.range() != state.range(1)); in BM_CheckDefaultArgument() 85 for (auto _ : state) { in BM_CheckDefaultArgument()
|
| /llvm-project-15.0.7/flang/lib/Parser/ |
| H A D | token-parsers.h | 83 if (!state.inFixedForm()) { in MissingSpace() 84 state.Nonstandard( in MissingSpace() 100 MissingSpace(state); in Parse() 128 space.Parse(state); in Parse() 227 state.Say(CharBlock{at, state.GetLocation()}, in Parse() 290 space.Parse(state); in Parse() 421 ParseState &state) { in SignedInteger() argument 450 return SignedInteger(digitString64.Parse(state), *sign, negate, state); in Parse() 490 DigitStringIgnoreSpaces{}.Parse(state), at, false /*positive*/, state); in Parse() 504 DigitStringIgnoreSpaces{}.Parse(state), at, negate, state); in Parse() [all …]
|
| H A D | basic-parsers.h | 55 state.Say(text_); in Parse() 187 state.PopContext(); in Parse() 234 state.Say(text_); in Parse() 323 state = backtrack; in ParseRest() 365 if (!state.anyDeferredMessages() && !state.anyErrorRecovery()) { in Parse() 370 state = backtrack; in Parse() 393 CHECK(state.anyDeferredMessages() || state.messages().AnyFatalError()); in Parse() 480 parser_.Parse(state) && state.GetLocation() > at; in Parse() 792 .Parse(state); in Parse() 859 state.Nonstandard( in Parse() [all …]
|
| H A D | user-state.cpp | 18 if (auto *ustate{state.userState()}) { in Parse() 25 ParseState &state) { in Parse() argument 27 auto result{parser.Parse(state)}; in Parse() 29 if (auto *ustate{state.userState()}) { in Parse() 40 if (auto enddo{parser.Parse(state)}) { in Parse() 53 if (auto *ustate{state.userState()}) { in Parse() 60 if (auto ustate{state.userState()}) { in Parse() 73 if (const auto *ustate{state.userState()}) { in Parse() 83 ParseState &state) { in Parse() argument 87 if (auto *ustate{state.userState()}) { in Parse() [all …]
|
| /llvm-project-15.0.7/lldb/third_party/Python/module/pexpect-4.6/pexpect/ |
| H A D | ANSI.py | 203 self.state = FSM.FSM ('INIT',[self]) 204 self.state.set_default_transition (DoLog, 'INIT') 205 self.state.add_transition_any ('INIT', DoEmit, 'INIT') 206 self.state.add_transition ('\x1b', 'INIT', None, 'ESC') 207 self.state.add_transition_any ('ESC', DoLog, 'INIT') 208 self.state.add_transition ('(', 'ESC', None, 'G0SCS') 209 self.state.add_transition (')', 'ESC', None, 'G1SCS') 220 self.state.add_transition ('[', 'ESC', None, 'ELB') 226 self.state.add_transition ('A', 'ELB', DoUpOne, 'INIT') 231 self.state.add_transition ('?', 'ELB', None, 'MODECRAP') [all …]
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | ExprEngineC.cpp | 101 state = state->BindExpr(B, LCtx, Result); in VisitBinaryOperator() 185 state = state->BindExpr(B, LCtx, Result); in VisitBinaryOperator() 276 state = state->BindExpr(CastE, LCtx, V); in handleLValueBitCast() 346 state = state->BindExpr(CastE, LCtx, V); in VisitCast() 423 state = state->BindExpr(CastE, LCtx, V); in VisitCast() 463 state = state->BindExpr(CastE, LCtx, in VisitCast() 503 state = state->BindExpr(CastE, LCtx, V); in VisitCast() 509 state = state->BindExpr(CastE, LCtx, V); in VisitCast() 1032 state = state->BindExpr( in VisitUnaryOperator() 1037 state = state->BindExpr(U, LCtx, in VisitUnaryOperator() [all …]
|
| /llvm-project-15.0.7/lldb/unittests/Utility/ |
| H A D | SubsystemRAIITest.cpp | 28 static SystemState state; member 30 assert(state == SystemState::Start); in Initialize() 31 state = SystemState::Initialized; in Initialize() 34 assert(state == SystemState::Initialized); in Terminate() 35 state = SystemState::Terminated; in Terminate() 40 SystemState TestSubsystem::state = SystemState::Start; member in TestSubsystem 56 static SystemState state; member 59 assert(state == SystemState::Start); in Initialize() 60 state = SystemState::Initialized; in Initialize() 67 assert(state == SystemState::Initialized); in Terminate() [all …]
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | CStringChecker.cpp | 1222 state = checkNonNull(C, state, Dest, destVal); in evalCopyCommon() 1231 state = checkNonNull(C, state, Source, srcVal); in evalCopyCommon() 1267 state = state->BindExpr(CE, LCtx, destVal); in evalCopyCommon() 1460 state = checkNonNull(C, state, Arg, ArgVal); in evalstrLengthCommon() 1541 state = state->BindExpr(CE, LCtx, result); in evalstrLengthCommon() 1620 state = checkNonNull(C, state, Dst, DstVal); in evalStrcpyCommon() 1627 state = checkNonNull(C, state, srcExpr, srcVal); in evalStrcpyCommon() 1983 state = state->BindExpr(CE, LCtx, Result); in evalStrcpyCommon() 2018 state = checkNonNull(C, state, Left, LeftVal); in evalStrcmpCommon() 2132 state = state->BindExpr(CE, LCtx, resultVal); in evalStrcmpCommon() [all …]
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/ |
| H A D | RetainCountChecker.cpp | 136 state = removeRefBinding(state, sym); in VisitSymbol() 238 state = updateSymbol(state, sym, *T, in processObjCLiterals() 252 state = setRefBinding(state, sym, in processObjCLiterals() 464 state = removeRefBinding(state, Sym); in processSummaryOfInlined() 482 state = removeRefBinding(state, Sym); in processSummaryOfInlined() 1024 state = setRefBinding(state, Sym, X); in processReturn() 1111 state = setRefBinding(state, Sym, in checkReturnWithRetEffect() 1179 state = state->set<RefBindings>(B); in evalAssume() 1202 state = removeRefBinding(state, sym); in checkRegionChanges() 1263 state = setRefBinding(state, Sym, V); in handleAutoreleaseCounts() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Affine/Transforms/ |
| H A D | SuperVectorize.cpp | 1048 state.builder.getAffineDimExpr(0) - state.builder.getAffineDimExpr(1); in createMask() 1065 state.vecLoopToMask[vecForOp] = mask; in createMask() 1383 createMask(vecForOp, state); in vectorizeAffineForOp() 1415 state.registerOpVectorReplacement(op, vecOp); in widenOp() 1438 state.builder.setInsertionPoint(newYieldOp); in vectorizeAffineYieldOp() 1480 return vectorizeAffineLoad(loadOp, state); in vectorizeOneOperation() 1484 return vectorizeAffineForOp(forOp, state); in vectorizeOneOperation() 1488 return vectorizeConstant(constant, state); in vectorizeOneOperation() 1494 return widenOp(op, state); in vectorizeOneOperation() 1536 state.strategy = &strategy; in vectorizeLoopNest() [all …]
|
| /llvm-project-15.0.7/mlir/test/lib/Analysis/ |
| H A D | TestDataFlowFramework.cpp | 31 if (state) in print() 32 os << *state; in print() 42 return join(*rhs.state); in join() 46 state = value; in join() 49 uint64_t before = *state; in join() 50 state = before ^ value; in join() 56 if (state == rhs.state) in set() 58 state = rhs.state; in set() 67 Optional<uint64_t> state; member in __anon09f8d1fb0111::FooState 159 result |= state->join(value); in visitOperation() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_mutex.h | 169 u64 state = atomic_load_relaxed(&state_); in Lock() local 183 new_state = state | kWriterSpinWait; in Lock() 207 DCHECK_NE(state & kWriterSpinWait, 0); in Lock() 218 &state_, &state, state | kWriterLock, memory_order_acquire))) { in TryLock() 232 DCHECK_NE(state & kWriterLock, 0); in Unlock() 233 DCHECK_EQ(state & kReaderLockMask, 0); in Unlock() 234 new_state = state & ~kWriterLock; in Unlock() 267 new_state = state | kReaderSpinWait; in ReadLock() 296 DCHECK_NE(state & kReaderLockMask, 0); in ReadUnlock() 297 DCHECK_EQ(state & kWriterLock, 0); in ReadUnlock() [all …]
|
| /llvm-project-15.0.7/clang/tools/scan-build-py/lib/libscanbuild/ |
| H A D | shell.py | 25 state = 0 30 state = 1 32 state = 0 33 elif state == 0 and current == '"': 34 state = 2 35 elif state == 2 and current == '"': 36 state = 0 37 elif state == 0 and current == "'": 38 state = 3 40 state = 0 [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Bufferization/Transforms/ |
| H A D | OneShotAnalysis.cpp | 333 if (!state.bufferizesToMemoryWrite(opOperand)) in isInplaceMemoryWrite() 430 if (isMemoryWrite(uWrite->get(), state)) in hasReadAfterWriteInterference() 599 if (state.bufferizesToMemoryRead(use)) in getAliasingReads() 665 if (!state.isWritable(nextVal)) in hasPrecedingAliasingNonWritableTensor() 675 state.getAliasingOpOperand(opResult); in hasPrecedingAliasingNonWritableTensor() 806 if (state.isInPlace(*opOperand)) in equivalenceAnalysis() 826 equivalenceAnalysis(ops, aliasInfo, state); in equivalenceAnalysis() 960 equivalenceAnalysis(op, aliasInfo, state); in analyzeOp() 970 state.gatherYieldedTensors(op); in analyzeOp() 971 state.gatherUndefinedTensorUses(op); in analyzeOp() [all …]
|
| /llvm-project-15.0.7/mlir/test/lib/Dialect/Transform/ |
| H A D | TestTransformDialectExtension.cpp | 59 state.addAttribute("message", message); in parse() 172 for (Operation *payload : state.getPayloadOps(getOperand())) { in apply() 174 assert(state.getHandleForPayloadOp(payload) == getOperand() && in apply() 198 state.removeExtension<TestTransformStateExtension>(); in apply() 231 for (Operation *op : state.getPayloadOps(getTarget())) in apply() 241 transform::TransformState &state) { in applyToOne() argument 250 transform::TransformState &state) { in applyToOne() argument 262 transform::TransformState &state) { in applyToOne() argument 272 transform::TransformState &state) { in applyToOne() argument 282 transform::TransformState &state) { in applyToOne() argument [all …]
|
| /llvm-project-15.0.7/openmp/libomptarget/DeviceRTL/include/ |
| H A D | State.h | 47 namespace state { 180 case state::VK_Level: in lookup32() 327 inline state::Value<uint32_t, state::VK_RunSchedChunk> RunSchedChunk; 330 inline state::Value<uint32_t, state::VK_ParallelTeamSize> ParallelTeamSize; 333 inline state::Value<uint32_t, state::VK_HasThreadState> HasThreadState; 336 inline state::PtrValue<ParallelRegionFnTy, state::VK_ParallelRegionFn> 348 inline state::Value<uint32_t, state::VK_NThreads> NThreads; 351 inline state::Value<uint32_t, state::VK_Level> Level; 357 inline state::Value<uint32_t, state::VK_ActiveLevel> ActiveLevel; 360 inline state::Value<uint32_t, state::VK_MaxActiveLevels> MaxActiveLevels; [all …]
|