This is an archive of the discontinued LLVM Phabricator instance.

thread_safety and uninitialized_checks attributes
ClosedPublic

Authored by kcc on Feb 8 2013, 1:05 AM.

Details

Reviewers
void
Summary

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.

Diff Detail

Event Timeline

void accepted this revision.Feb 8 2013, 4:25 PM

This looks good. Thanks!

Eugene.Zelenko closed this revision.Oct 5 2016, 4:29 PM
Eugene.Zelenko added a subscriber: Eugene.Zelenko.

Committed in rL174864.