[PATCH] thread_safety and uninitialized_checks attributes

Kostya Serebryany kcc at google.com
Fri Feb 8 01:05:01 PST 2013


Hi void,

Adding two new function attributes: thread_safety and uninitialized_checks. 
They will be used by tsan/msan the same way as
address_safety attribute is used by asan.

Also fix Bitcode/Reader/BitcodeReader (and Writer)
to allow attributes above 1ULL<<36

See http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130204/164388.html for the discussion. 

With later patches I will add the corresponding user attribute __attribute__(uninitialized_checks). 
There is already an existing attribute __attribute__(no_thread_safety_analysis)

Naming is hard. I'd be glad to hear a better alternative for the "uninitialized_checks" attribute name. 


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

Files:
  utils/llvm.grm
  utils/vim/llvm.vim
  lib/AsmParser/LLParser.cpp
  lib/AsmParser/LLLexer.cpp
  lib/AsmParser/LLToken.h
  lib/Bitcode/Writer/BitcodeWriter.cpp
  lib/Bitcode/Reader/BitcodeReader.cpp
  lib/IR/Verifier.cpp
  lib/IR/Attributes.cpp
  test/Bitcode/attributes.ll
  include/llvm/IR/Attributes.h
  docs/LangRef.rst
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D383.1.patch
Type: text/x-patch
Size: 7790 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130208/4d437f99/attachment.bin>


More information about the llvm-commits mailing list