[PATCH] D17833: [tsan] Add support for pointer typed atomic stores, loads, and cmpxchg

Anna Zaks via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 2 15:30:54 PST 2016


zaks.anna created this revision.
zaks.anna added reviewers: kcc, dvyukov.
zaks.anna added a subscriber: llvm-commits.

TSan instrumentation functions for atomic stores, loads, and cmpxchg work on integer value types. This patch adds casts before calling TSan instrumentation functions in cases where the value is a pointer.

http://reviews.llvm.org/D17833

Files:
  lib/Transforms/Instrumentation/ThreadSanitizer.cpp
  test/Instrumentation/ThreadSanitizer/atomic.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17833.49681.patch
Type: text/x-patch
Size: 6087 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160302/d46ffc97/attachment.bin>


More information about the llvm-commits mailing list