aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2013-02-11 08:13:54 +0000
committerKostya Serebryany <kcc@google.com>2013-02-11 08:13:54 +0000
commitab39afa9d9b99c61842c8e3d0eb706bd16efdcf3 (patch)
tree35b53df2aaa398d54deefbc9ff458c3ca93ebb10 /include
parentf64c889cc94417322b0ff8ad1c61939183bf3c38 (diff)
downloadexternal_llvm-ab39afa9d9b99c61842c8e3d0eb706bd16efdcf3.zip
external_llvm-ab39afa9d9b99c61842c8e3d0eb706bd16efdcf3.tar.gz
external_llvm-ab39afa9d9b99c61842c8e3d0eb706bd16efdcf3.tar.bz2
[tsan/msan] adding thread_safety and uninitialized_checks attributes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174864 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/IR/Attributes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h
index 2a0363c..d4836ee 100644
--- a/include/llvm/IR/Attributes.h
+++ b/include/llvm/IR/Attributes.h
@@ -95,6 +95,8 @@ public:
StackProtectReq, ///< Stack protection required.
StackProtectStrong, ///< Strong Stack protection.
StructRet, ///< Hidden pointer to structure to return
+ ThreadSafety, ///< Thread safety checking is on.
+ UninitializedChecks, ///< Checking for uses of uninitialized memory is on.
UWTable, ///< Function must be in a unwind table
ZExt, ///< Zero extended before/after call
@@ -507,6 +509,8 @@ public:
.removeAttribute(Attribute::NonLazyBind)
.removeAttribute(Attribute::ReturnsTwice)
.removeAttribute(Attribute::AddressSafety)
+ .removeAttribute(Attribute::ThreadSafety)
+ .removeAttribute(Attribute::UninitializedChecks)
.removeAttribute(Attribute::MinSize)
.removeAttribute(Attribute::NoDuplicate);
}