tsan: move AccessType to tsan_defs.h
authorDmitry Vyukov <dvyukov@google.com>
Wed, 4 Aug 2021 15:00:24 +0000 (17:00 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Wed, 4 Aug 2021 16:03:56 +0000 (18:03 +0200)
commitc2598be8bcf2cf27391b9e77f9b509e24788e7a1
treeb2c5ab2ce070341ea7ec2a663680f838bce5b287
parent2ddaffdc74ec4e17d2df93729a2f20ec773f08f5
tsan: move AccessType to tsan_defs.h

It will be needed in more functions like ReportRace
(the plan is to pass it through MemoryAccess to ReportRace)
and this move will allow to split the huge tsan_rtl.h into parts
(e.g. move FastState/Shadow definitions to a separate header).

Depends on D107465.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D107466
compiler-rt/lib/tsan/rtl/tsan_defs.h
compiler-rt/lib/tsan/rtl/tsan_rtl.h