This is an archive of the discontinued LLVM Phabricator instance.

tsan: move shadow declaration into a separate header file (NFC)
ClosedPublic

Authored by dvyukov on Sep 22 2021, 10:30 AM.

Details

Summary

tsan_rtl.h is very huge and contains too many things.
Move FastState and Shadow types into a new tsan_shadow.h file.
This also allows to use FastState/Shadow in other header files
without creating circular dependencies (which most likely will
happen today).

Diff Detail

Event Timeline

dvyukov created this revision.Sep 22 2021, 10:30 AM
dvyukov requested review of this revision.Sep 22 2021, 10:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 22 2021, 10:30 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
melver accepted this revision.Sep 23 2021, 1:38 AM
melver added inline comments.
compiler-rt/lib/tsan/rtl/tsan_shadow.h
80

I think this expects tsan_trace.h to be included?

This revision is now accepted and ready to land.Sep 23 2021, 1:38 AM
dvyukov updated this revision to Diff 374480.Sep 23 2021, 2:04 AM

include tsan_trace.h

dvyukov marked an inline comment as done.Sep 23 2021, 2:04 AM
This revision was landed with ongoing or failed builds.Sep 23 2021, 2:04 AM
This revision was automatically updated to reflect the committed changes.