Home
last modified time | relevance | path

Searched refs:Epoch (Results 1 – 25 of 27) sorted by relevance

12

/llvm-project-15.0.7/compiler-rt/lib/tsan/tests/unit/
H A Dtsan_vector_clock_test.cpp25 vc->Set(static_cast<Sid>(i), static_cast<Epoch>(i)); in TEST()
27 ASSERT_EQ(vc->Get(static_cast<Sid>(i)), static_cast<Epoch>(i)); in TEST()
49 vc1->Set(static_cast<Sid>(i), static_cast<Epoch>(i)); in TEST()
50 vc2->Set(static_cast<Sid>(i), static_cast<Epoch>(kThreadSlotCount - i)); in TEST()
58 static_cast<Epoch>(kThreadSlotCount - i)); in TEST()
63 static_cast<Epoch>(kThreadSlotCount - i)); in TEST()
65 static_cast<Epoch>(kThreadSlotCount - i)); in TEST()
71 vc1->Set(static_cast<Sid>(i), static_cast<Epoch>(i)); in TEST()
76 Epoch expect = in TEST()
85 vc1->Set(static_cast<Sid>(i), static_cast<Epoch>(i)); in TEST()
[all …]
H A Dtsan_shadow_test.cpp18 void CheckShadow(const Shadow *s, Sid sid, Epoch epoch, uptr addr, uptr size, in CheckShadow()
33 Epoch epoch = static_cast<Epoch>(22); in TEST()
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/
H A Dtsan_defs.h62 enum class Epoch : u16 {}; enum
64 constexpr Epoch kEpochZero = static_cast<Epoch>(0);
65 constexpr Epoch kEpochOver = static_cast<Epoch>(1 << kEpochBits);
66 constexpr Epoch kEpochLast = static_cast<Epoch>((1 << kEpochBits) - 1);
68 inline Epoch EpochInc(Epoch epoch) { in EpochInc()
69 return static_cast<Epoch>(static_cast<u16>(epoch) + 1); in EpochInc()
72 inline bool EpochOverflow(Epoch epoch) { return epoch == kEpochOver; } in EpochOverflow()
H A Dtsan_vector_clock.h24 Epoch Get(Sid sid) const;
25 void Set(Sid sid, Epoch v);
37 Epoch clk_[kThreadSlotCount] VECTOR_ALIGNED;
40 ALWAYS_INLINE Epoch VectorClock::Get(Sid sid) const { in Get()
44 ALWAYS_INLINE void VectorClock::Set(Sid sid, Epoch v) { in Set()
H A Dtsan_shadow.h32 Epoch epoch() const { return static_cast<Epoch>(part_.epoch_); } in epoch()
34 void SetEpoch(Epoch epoch) { part_.epoch_ = static_cast<u16>(epoch); } in SetEpoch()
81 Epoch epoch() const { return static_cast<Epoch>(part_.epoch_); } in epoch()
140 static RawShadow FreedInfo(Sid sid, Epoch epoch) { in FreedInfo()
H A Dtsan_vector_clock.cpp20 const uptr kVectorClockSize = kThreadSlotCount * sizeof(Epoch) / sizeof(m128);
89 Epoch tmp = dst->clk_[i]; in ReleaseStoreAcquire()
H A Dtsan_rtl.h135 Epoch epoch;
146 Epoch epoch() const { in epoch()
147 return static_cast<Epoch>(atomic_load(&raw_epoch, memory_order_relaxed)); in epoch()
150 void SetEpoch(Epoch v) { in SetEpoch()
683 bool RestoreStack(EventType type, Sid sid, Epoch epoch, uptr addr, uptr size,
H A Dtsan_rtl_report.cpp357 Epoch epoch, Func f) { in TraceReplay()
360 Epoch ev_epoch = kEpochOver; in TraceReplay()
377 ev_epoch = static_cast<Epoch>(ev->epoch); in TraceReplay()
433 bool RestoreStack(EventType type, Sid sid, Epoch epoch, uptr addr, uptr size, in RestoreStack()
489 [&](Sid ev_sid, Epoch ev_epoch, Event *evp) { in RestoreStack()
H A Dtsan_rtl_mutex.cpp505 Epoch epoch = EpochInc(thr->fast_state.epoch()); in IncrementEpoch()
H A Dtsan_rtl.cpp299 Epoch epoch = EpochInc(slot->epoch()); in SlotAttachAndLock()
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/
H A Dtsan_vector_clock.h24 Epoch Get(Sid sid) const;
25 void Set(Sid sid, Epoch v);
37 Epoch clk_[kThreadSlotCount] VECTOR_ALIGNED;
40 ALWAYS_INLINE Epoch VectorClock::Get(Sid sid) const { in Get()
44 ALWAYS_INLINE void VectorClock::Set(Sid sid, Epoch v) { in Set()
H A Dtsan_defs.h62 enum class Epoch : u16 {}; enum
64 constexpr Epoch kEpochZero = static_cast<Epoch>(0);
65 constexpr Epoch kEpochOver = static_cast<Epoch>(1 << kEpochBits);
H A Dtsan_vector_clock.cpp20 const uptr kVectorClockSize = kThreadSlotCount * sizeof(Epoch) / sizeof(m128);
89 Epoch tmp = dst->clk_[i]; in ReleaseStoreAcquire()
H A Dtsan_rtl_report.cpp460 Epoch epoch, Func f) { in TraceReplay()
463 Epoch ev_epoch = kEpochOver; in TraceReplay()
479 ev_epoch = static_cast<Epoch>(ev->epoch); in TraceReplay()
535 bool RestoreStack(Tid tid, EventType type, Sid sid, Epoch epoch, uptr addr, in RestoreStack()
572 [&](Sid ev_sid, Epoch ev_epoch, Event *evp) { in RestoreStack()
H A Dtsan_rtl.h217 Epoch epoch;
672 bool RestoreStack(Tid tid, EventType type, Sid sid, Epoch epoch, uptr addr,
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DEpochTracker.h37 uint64_t Epoch = 0; variable
44 void incrementEpoch() { ++Epoch; } in incrementEpoch()
66 : EpochAddress(&Parent->Epoch), EpochAtCreation(Parent->Epoch) {} in HandleBase()
H A DDenseMap.h467 DebugEpochBase &Epoch,
471 return iterator(B, E, Epoch, NoAdvance);
473 return iterator(P, E, Epoch, NoAdvance);
477 const DebugEpochBase &Epoch,
481 return const_iterator(B, E, Epoch, NoAdvance);
483 return const_iterator(P, E, Epoch, NoAdvance);
1215 DenseMapIterator(pointer Pos, pointer E, const DebugEpochBase &Epoch,
1217 : DebugEpochBase::HandleBase(&Epoch), Ptr(Pos), End(E) {
H A DSmallPtrSet.h279 const DebugEpochBase &Epoch) in SmallPtrSetIterator() argument
280 : SmallPtrSetIteratorImpl(BP, E), DebugEpochBase::HandleBase(&Epoch) {} in SmallPtrSetIterator()
/llvm-project-15.0.7/compiler-rt/lib/fuzzer/
H A DFuzzerIOPosix.cpp55 void ListFilesInDirRecursive(const std::string &Dir, long *Epoch, in ListFilesInDirRecursive() argument
58 if (Epoch) in ListFilesInDirRecursive()
59 if (E && *Epoch >= E) return; in ListFilesInDirRecursive()
74 ListFilesInDirRecursive(Path, Epoch, V, false); in ListFilesInDirRecursive()
77 if (Epoch && TopDir) in ListFilesInDirRecursive()
78 *Epoch = E; in ListFilesInDirRecursive()
H A DFuzzerIO.cpp101 void ReadDirToVectorOfUnits(const char *Path, std::vector<Unit> *V, long *Epoch, in ReadDirToVectorOfUnits() argument
104 long E = Epoch ? *Epoch : 0; in ReadDirToVectorOfUnits()
106 ListFilesInDirRecursive(Path, Epoch, &Files, /*TopDir*/true); in ReadDirToVectorOfUnits()
110 if (Epoch && GetEpoch(X) < E) continue; in ReadDirToVectorOfUnits()
H A DFuzzerIOWindows.cpp113 void ListFilesInDirRecursive(const std::string &Dir, long *Epoch, in ListFilesInDirRecursive() argument
116 if (Epoch) in ListFilesInDirRecursive()
117 if (E && *Epoch >= E) return; in ListFilesInDirRecursive()
146 ListFilesInDirRecursive(FileName, Epoch, V, false); in ListFilesInDirRecursive()
158 if (Epoch && TopDir) in ListFilesInDirRecursive()
159 *Epoch = E; in ListFilesInDirRecursive()
H A DFuzzerIO.h35 void ReadDirToVectorOfUnits(const char *Path, std::vector<Unit> *V, long *Epoch,
72 void ListFilesInDirRecursive(const std::string &Dir, long *Epoch,
/llvm-project-15.0.7/clang/test/Driver/
H A Dmodules.m28 …nce-per-build-session' requires '-fbuild-session-timestamp=<seconds since Epoch>' or '-fbuild-sess…
/llvm-project-15.0.7/llvm/unittests/Support/
H A DPath.cpp1708 TimePoint<> Epoch(std::chrono::milliseconds(0)); in TEST_F() local
1709 ASSERT_NO_ERROR(fs::setLastAccessAndModificationTime(FileDescriptor, Epoch)); in TEST_F()
1720 ASSERT_NE(Epoch, FileAccessTime); in TEST_F()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DDiagnosticDriverKinds.td472 "'-fbuild-session-timestamp=<seconds since Epoch>' or '-fbuild-session-file=<file>'">;

12