diff options
author | Chris Apple <cja-private@pm.me> | 2024-08-08 06:41:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-08 15:41:06 +0200 |
commit | b143b2483fc5d7e73763ff9292dec6479552de9e (patch) | |
tree | 94ce5588954a15997f49296afe2e77ecaf3e0554 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | fd7d7882e7fa5a38d4bfde426120d4663718beb4 (diff) | |
download | llvm-b143b2483fc5d7e73763ff9292dec6479552de9e.zip llvm-b143b2483fc5d7e73763ff9292dec6479552de9e.tar.gz llvm-b143b2483fc5d7e73763ff9292dec6479552de9e.tar.bz2 |
[LLVM][rtsan] Add sanitize_realtime attribute for the realtime sanitizer (#100596)
Add a new "sanitize_realtime" attribute, which will correspond to the
nonblocking function effect in clang. This is used in the realtime
sanitizer transform.
Please see the [reviewer support
document](https://github.com/realtime-sanitizer/radsan/blob/doc/review-support/doc/review.md)
for what our next steps are. The original discourse thread can be found
[here](https://discourse.llvm.org/t/rfc-nolock-and-noalloc-attributes/76837)
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index fd4ae109..d4dbab0 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -2141,6 +2141,8 @@ static Attribute::AttrKind getAttrFromCode(uint64_t Code) { return Attribute::SanitizeMemory; case bitc::ATTR_KIND_SANITIZE_NUMERICAL_STABILITY: return Attribute::SanitizeNumericalStability; + case bitc::ATTR_KIND_SANITIZE_REALTIME: + return Attribute::SanitizeRealtime; case bitc::ATTR_KIND_SPECULATIVE_LOAD_HARDENING: return Attribute::SpeculativeLoadHardening; case bitc::ATTR_KIND_SWIFT_ERROR: |