[PATCH] Unify clang/llvm attributes for asan/tsan/msan (LLVM part)

Kostya Serebryany kcc at google.com
Fri Feb 22 05:03:37 PST 2013


Hi chandlerc, samsonov,

These are two related changes (one in llvm, one in clang).
LLVM: 
 -  rename address_safety => sanitize_address (the enum value is the same, so we preserve binary compatibility with old bitcode)
 - rename thread_safety => sanitize_thread
 - rename no_uninitialized_checks -> sanitize_memory

CLANG: 
  - add __attribute__((no_sanitize_address)) as a synonym for __attribute__((no_address_safety_analysis))
  - add __attribute__((no_sanitize_thread))
  - add __attribute__((no_sanitize_memory)) 

for S in address thread memory
   If -fsanitize=S is present and __attribute__((no_sanitize_S)) is not
       set llvm attribute sanitize_S

http://llvm-reviews.chandlerc.com/D450

Files:
  test/Instrumentation/AddressSanitizer/different_scale_and_offset.ll
  test/Instrumentation/AddressSanitizer/instrument_initializer_metadata.ll
  test/Instrumentation/AddressSanitizer/X86/bug_11395.ll
  test/Instrumentation/AddressSanitizer/basic.ll
  test/Instrumentation/AddressSanitizer/test64.ll
  test/Instrumentation/AddressSanitizer/lifetime.ll
  test/Instrumentation/AddressSanitizer/instrument-no-return.ll
  test/Instrumentation/AddressSanitizer/asan-vs-gvn.ll
  test/Instrumentation/AddressSanitizer/do-not-instrument-internal-globals.ll
  test/Instrumentation/AddressSanitizer/instrument_load_then_store.ll
  test/Instrumentation/AddressSanitizer/debug_info.ll
  test/Instrumentation/ThreadSanitizer/tsan-vs-gvn.ll
  test/CodeGen/X86/crash.ll
  test/Bitcode/attributes.ll
  include/llvm/IR/Attributes.h
  docs/LangRef.rst
  utils/vim/llvm.vim
  utils/llvm.grm
  lib/Analysis/MemoryDependenceAnalysis.cpp
  lib/AsmParser/LLLexer.cpp
  lib/AsmParser/LLToken.h
  lib/AsmParser/LLParser.cpp
  lib/Transforms/Instrumentation/AddressSanitizer.cpp
  lib/IR/Verifier.cpp
  lib/IR/Attributes.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D450.1.patch
Type: text/x-patch
Size: 28820 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130222/cd460125/attachment.bin>


More information about the cfe-commits mailing list