[PATCH] D26177: [tsan] Add support for C++ exceptions into TSan (call __tsan_func_exit during unwinding)

Kuba Brecka via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 10 16:38:32 PST 2016


kubabrecka updated this revision to Diff 77571.
kubabrecka added a comment.

Updating patch:

- added a switch to turn this off
- added a testcase for the IR transformations and for the switch
- added two testcase for setjmp/longjmp
- changed EscapeEnumerator to have an "HandleExceptions" argument (default true)
- changed EscapeEnumerator to not insert EH landingpads when the function itself is nounwind


https://reviews.llvm.org/D26177

Files:
  include/llvm/Analysis/EHPersonalities.h
  include/llvm/Transforms/Utils/EscapeEnumerator.h
  include/llvm/Transforms/Utils/Local.h
  lib/Analysis/EHPersonalities.cpp
  lib/CodeGen/ShadowStackGCLowering.cpp
  lib/Transforms/Instrumentation/ThreadSanitizer.cpp
  lib/Transforms/Utils/CMakeLists.txt
  lib/Transforms/Utils/EscapeEnumerator.cpp
  lib/Transforms/Utils/InlineFunction.cpp
  lib/Transforms/Utils/Local.cpp
  projects/compiler-rt/lib/tsan/rtl/tsan_rtl.cc
  projects/compiler-rt/test/tsan/exceptions.cc
  projects/compiler-rt/test/tsan/test.h
  test/Instrumentation/ThreadSanitizer/eh.ll
  test/Instrumentation/ThreadSanitizer/no_sanitize_thread.ll
  test/Instrumentation/ThreadSanitizer/str-nobuiltin.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26177.77571.patch
Type: text/x-patch
Size: 33958 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161111/18fd7d1e/attachment.bin>


More information about the llvm-commits mailing list