| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | deleter_types.h | 36 Deleter(Deleter&& r) : state_(r.state_) {r.state_ = 0;} in Deleter() 39 state_ = r.state_; 47 ~Deleter() {assert(state_ >= 0); state_ = -1;} in ~Deleter() 75 Deleter(Deleter&& r) : state_(r.state_) {r.state_ = 0;} in Deleter() 78 state_ = r.state_; 85 ~Deleter() {assert(state_ >= 0); state_ = -1;} in ~Deleter() 108 state_ = other.state_; 138 state_ = other.state_; 307 state_ = other.state_; 331 state_ = other.state_; [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_mutex.h | 26 atomic_store(&state_, 0, memory_order_relaxed); in Init() 40 atomic_store(&state_, 0, memory_order_release); in Unlock() 44 CHECK_EQ(atomic_load(&state_, memory_order_relaxed), 1); in CheckLocked() 48 atomic_uint8_t state_; 76 atomic_uint32_t state_ = {0}; 169 u64 state = atomic_load_relaxed(&state_); in Lock() 212 u64 state = atomic_load_relaxed(&state_); in TryLock() 230 u64 state = atomic_load_relaxed(&state_); in Unlock() 256 u64 state = atomic_load_relaxed(&state_); in ReadLock() 294 u64 state = atomic_load_relaxed(&state_); in ReadUnlock() [all …]
|
| H A D | sanitizer_stackdepot.cpp | 119 State state_ SANITIZER_GUARDED_BY(mutex_) = State::NotStarted; 132 if (state_ == State::NotStarted) { in NewWorkNotify() 141 state_ = thread_ ? State::Started : State::Failed; in NewWorkNotify() 143 if (state_ == State::Started) { in NewWorkNotify() 161 if (state_ != State::Started) in Stop() 163 state_ = State::Stopped; in Stop() 175 if (state_ != State::Started) in LockAndStop() 183 state_ = State::NotStarted; in LockAndStop()
|
| H A D | sanitizer_mutex.cpp | 25 if (atomic_load(&state_, memory_order_relaxed) == 0 && in LockSlow() 26 atomic_exchange(&state_, 1, memory_order_acquire) == 0) in LockSlow() 32 u32 count = atomic_load(&state_, memory_order_relaxed); in Wait() 35 FutexWait(&state_, 0); in Wait() 36 count = atomic_load(&state_, memory_order_relaxed); in Wait() 39 if (atomic_compare_exchange_weak(&state_, &count, count - 1, in Wait() 47 atomic_fetch_add(&state_, count, memory_order_release); in Post() 48 FutexWake(&state_, count); in Post()
|
| H A D | sanitizer_symbolizer_libbacktrace.cpp | 163 backtrace_pcinfo((backtrace_state *)state_, addr, SymbolizeCodePCInfoCallback, in SymbolizePC() 167 backtrace_syminfo((backtrace_state *)state_, addr, SymbolizeCodeCallback, in SymbolizePC() 173 backtrace_syminfo((backtrace_state *)state_, addr, SymbolizeDataCallback, in SymbolizeData() 185 (void)state_; in SymbolizePC()
|
| H A D | sanitizer_symbolizer_libbacktrace.h | 43 explicit LibbacktraceSymbolizer(void *state) : state_(state) {} in LibbacktraceSymbolizer() 45 void *state_; // Leaked. variable
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.modifiers/ |
| H A D | swap.pass.cpp | 22 int state_; member 24 TT() : state_(-1) { ++count; } in TT() 25 explicit TT(int i) : state_(i) { ++count; } in TT() 26 TT(const TT& a) : state_(a.state_) { ++count; } in TT() 28 state_ = a.state_; in operator =() 34 return x.state_ == y.state_; in operator ==() 46 (p + i)->state_ = new_value; in newValueInit()
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | rvalue-references.cpp | 42 int* state_; member in C 47 C(int state) : state_(new int(state)) { } in C() 50 state_ = a.state_; in C() 51 a.state_ = 0; in C() 55 delete state_; in ~C() 56 state_ = 0; in ~C()
|
| /llvm-project-15.0.7/compiler-rt/test/tsan/ |
| H A D | mutex_annotations.cpp | 12 ANNOTATE_RWLOCK_CREATE_STATIC(&state_); in Create() 14 ANNOTATE_RWLOCK_CREATE(&state_); in Create() 18 ANNOTATE_RWLOCK_DESTROY(&state_); in Destroy() 22 ANNOTATE_RWLOCK_ACQUIRED(&state_, true); in Lock() 26 ANNOTATE_RWLOCK_RELEASED(&state_, true); in Unlock() 30 long long state_; member in Mutex
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.special/ |
| H A D | swap.pass.cpp | 23 int state_; member 25 A() : state_(0) {++count;} in A() 26 explicit A(int i) : state_(i) {++count;} in A() 27 A(const A& a) : state_(a.state_) {++count;} in A() 28 A& operator=(const A& a) {state_ = a.state_; return *this;} in operator =() 32 {return x.state_ == y.state_;} in operator ==()
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.observers/ |
| H A D | op_subscript.runtime.pass.cpp | 21 int state_; member in A 25 A() : state_(++next_) {} in A() 26 int get() const { return state_; } in get() 28 friend bool operator==(const A& x, int y) { return x.state_ == y; } in operator ==() 31 state_ = i; in operator =()
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/optional/optional.object/optional.object.assign/ |
| H A D | optional_U.pass.cpp | 245 : state_(&s) in test() 247 *state_ = state_t::constructed; in test() 255 *state_ = state_t::inactive; in test() 256 state_ = other.state_; in test() 257 *state_ = state_t::move_assigned; in test() 258 other.state_ = nullptr; in test() 264 *state_ = state_t::inactive; in test() 265 state_ = other.state_; in test() 266 *state_ = state_t::copy_assigned; in test() 270 state_t* state_; in test() member in test::StateTracker
|
| H A D | nullopt_t.pass.cpp | 32 : state_(&s) in test() 36 TEST_CONSTEXPR_CXX20 ~StateTracker() { *state_ = State::destroyed; } in test() 38 State* state_; in test() member
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.dtor/ |
| H A D | null.pass.cpp | 21 int state_; member in Deleter 27 Deleter() : state_(0) {} in Deleter() 29 int state() const { return state_; } in state() 31 void operator()(void*) { ++state_; } in operator ()()
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.transform/ |
| H A D | ctor.default.pass.cpp | 32 int state_; member 33 constexpr DefaultConstructibleFunction() : state_(100) { } in DefaultConstructibleFunction() 34 constexpr int operator()(int i) const { return i + state_; } in operator ()()
|
| /llvm-project-15.0.7/libcxx/test/libcxx/iterators/ |
| H A D | contiguous_iterators.pass.cpp | 44 int *state_; member in my_input_iterator 66 int *state_; member in my_random_access_iterator 102 int *state_; member in my_contiguous_iterator
|
| /llvm-project-15.0.7/llvm/utils/unittest/googletest/include/gtest/internal/ |
| H A D | gtest-internal.h | 841 explicit Random(UInt32 seed) : state_(seed) {} in Random() 843 void Reseed(UInt32 seed) { state_ = seed; } in Reseed() 850 UInt32 state_;
|
| /llvm-project-15.0.7/flang/lib/Semantics/ |
| H A D | resolve-names.cpp | 361 return state_.derived.category; in GetDeclTypeSpecCategory() 368 State state_; member in Fortran::semantics::DeclTypeSpecVisitor 1768 return state_.declTypeSpec; in GetDeclTypeSpec() 1772 CHECK(!state_.expectDeclTypeSpec); in BeginDeclTypeSpec() 1773 CHECK(!state_.declTypeSpec); in BeginDeclTypeSpec() 1774 state_.expectDeclTypeSpec = true; in BeginDeclTypeSpec() 1777 CHECK(state_.expectDeclTypeSpec); in EndDeclTypeSpec() 1778 state_ = {}; in EndDeclTypeSpec() 1783 CHECK(state_.expectDeclTypeSpec); in SetDeclTypeSpecCategory() 1847 CHECK(state_.expectDeclTypeSpec); in SetDeclTypeSpec() [all …]
|
| /llvm-project-15.0.7/llvm/utils/unittest/googletest/src/ |
| H A D | gtest.cc | 336 state_ = static_cast<UInt32>(1103515245ULL*state_ + 12345U) % kMaxRange; in Generate() 347 return state_ % range; in Generate()
|