SIL: Add SIL builtin for Thread Sanitizer inout accesses

...and IRGen it into a call to __tsan_write1 in compiler-rt. This is
preparatory work for a later patch that will add an experimental
option to treat Swift inout accesses as TSan writes.
This commit is contained in:
Devin Coughlin
2017-03-05 19:42:56 -08:00
parent 7af65d9e09
commit 6ac36df1e7
10 changed files with 90 additions and 2 deletions

View File

@@ -751,6 +751,8 @@ CONSTANT_OWNERSHIP_BUILTIN(Trivial, Assign)
CONSTANT_OWNERSHIP_BUILTIN(Trivial, Init)
CONSTANT_OWNERSHIP_BUILTIN(Trivial, AtomicStore)
CONSTANT_OWNERSHIP_BUILTIN(Trivial, Once)
CONSTANT_OWNERSHIP_BUILTIN(Trivial, TSanInoutAccess)
#undef CONSTANT_OWNERSHIP_BUILTIN
// Check all of these...