llvm-project/llvm/test/Instrumentation/ThreadSanitizer
Konstantin Zhuravlyov bb80d3e1d3 Enhance synchscope representation
OpenCL 2.0 introduces the notion of memory scopes in atomic operations to
  global and local memory. These scopes restrict how synchronization is
  achieved, which can result in improved performance.

  This change extends existing notion of synchronization scopes in LLVM to
  support arbitrary scopes expressed as target-specific strings, in addition to
  the already defined scopes (single thread, system).

  The LLVM IR and MIR syntax for expressing synchronization scopes has changed
  to use *syncscope("<scope>")*, where <scope> can be "singlethread" (this
  replaces *singlethread* keyword), or a target-specific name. As before, if
  the scope is not specified, it defaults to CrossThread/System scope.

  Implementation details:
    - Mapping from synchronization scope name/string to synchronization scope id
      is stored in LLVM context;
    - CrossThread/System and SingleThread scopes are pre-defined to efficiently
      check for known scopes without comparing strings;
    - Synchronization scope names are stored in SYNC_SCOPE_NAMES_BLOCK in
      the bitcode.

Differential Revision: https://reviews.llvm.org/D21723

llvm-svn: 307722
2017-07-11 22:23:00 +00:00
..
atomic-non-integer.ll [tsan] Cast floating-point types correctly when instrumenting atomic accesses, LLVM part 2016-11-07 19:09:56 +00:00
atomic.ll Enhance synchscope representation 2017-07-11 22:23:00 +00:00
capture.ll
do-not-instrument-memory-access.ll [tsan] Don't instrument __llvm_gcov_global_state_pred or __llvm_gcda* 2016-07-19 20:16:08 +00:00
eh.ll [tsan] Add support for C++ exceptions into TSan (call __tsan_func_exit during unwinding), LLVM part 2016-11-14 21:41:13 +00:00
no_sanitize_thread.ll [tsan] Add support for C++ exceptions into TSan (call __tsan_func_exit during unwinding), LLVM part 2016-11-14 21:41:13 +00:00
read_before_write.ll
read_from_global.ll [Verifier] Add verification for TBAA metadata 2016-12-11 20:07:15 +00:00
sanitize-thread-no-checking.ll [tsan] Add support for C++ exceptions into TSan (call __tsan_func_exit during unwinding), LLVM part 2016-11-14 21:41:13 +00:00
str-nobuiltin.ll [tsan] Add support for C++ exceptions into TSan (call __tsan_func_exit during unwinding), LLVM part 2016-11-14 21:41:13 +00:00
tsan-vs-gvn.ll
tsan_address_space_attr.ll
tsan_basic.ll ThreadSanitizer: don't track swifterror memory addresses 2017-02-15 18:57:06 +00:00
unaligned.ll
vptr_read.ll [Verifier] Add verification for TBAA metadata 2016-12-11 20:07:15 +00:00
vptr_update.ll [Verifier] Add verification for TBAA metadata 2016-12-11 20:07:15 +00:00