| /llvm-project-15.0.7/compiler-rt/lib/tsan/tests/unit/ |
| H A D | tsan_vector_clock_test.cpp | 25 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 D | tsan_shadow_test.cpp | 18 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 D | tsan_defs.h | 62 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 D | tsan_vector_clock.h | 24 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 D | tsan_shadow.h | 32 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 D | tsan_vector_clock.cpp | 20 const uptr kVectorClockSize = kThreadSlotCount * sizeof(Epoch) / sizeof(m128); 89 Epoch tmp = dst->clk_[i]; in ReleaseStoreAcquire()
|
| H A D | tsan_rtl.h | 135 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 D | tsan_rtl_report.cpp | 357 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 D | tsan_rtl_mutex.cpp | 505 Epoch epoch = EpochInc(thr->fast_state.epoch()); in IncrementEpoch()
|
| H A D | tsan_rtl.cpp | 299 Epoch epoch = EpochInc(slot->epoch()); in SlotAttachAndLock()
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/ |
| H A D | tsan_vector_clock.h | 24 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 D | tsan_defs.h | 62 enum class Epoch : u16 {}; enum 64 constexpr Epoch kEpochZero = static_cast<Epoch>(0); 65 constexpr Epoch kEpochOver = static_cast<Epoch>(1 << kEpochBits);
|
| H A D | tsan_vector_clock.cpp | 20 const uptr kVectorClockSize = kThreadSlotCount * sizeof(Epoch) / sizeof(m128); 89 Epoch tmp = dst->clk_[i]; in ReleaseStoreAcquire()
|
| H A D | tsan_rtl_report.cpp | 460 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 D | tsan_rtl.h | 217 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 D | EpochTracker.h | 37 uint64_t Epoch = 0; variable 44 void incrementEpoch() { ++Epoch; } in incrementEpoch() 66 : EpochAddress(&Parent->Epoch), EpochAtCreation(Parent->Epoch) {} in HandleBase()
|
| H A D | DenseMap.h | 467 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 D | SmallPtrSet.h | 279 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 D | FuzzerIOPosix.cpp | 55 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 D | FuzzerIO.cpp | 101 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 D | FuzzerIOWindows.cpp | 113 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 D | FuzzerIO.h | 35 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 D | modules.m | 28 …nce-per-build-session' requires '-fbuild-session-timestamp=<seconds since Epoch>' or '-fbuild-sess…
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | Path.cpp | 1708 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 D | DiagnosticDriverKinds.td | 472 "'-fbuild-session-timestamp=<seconds since Epoch>' or '-fbuild-session-file=<file>'">;
|