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/Writer/BitcodeWriter.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/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 52e15e6..33ec14b 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -843,6 +843,8 @@ static uint64_t getAttrKindEncoding(Attribute::AttrKind Kind) { return bitc::ATTR_KIND_SANITIZE_MEMORY; case Attribute::SanitizeNumericalStability: return bitc::ATTR_KIND_SANITIZE_NUMERICAL_STABILITY; + case Attribute::SanitizeRealtime: + return bitc::ATTR_KIND_SANITIZE_REALTIME; case Attribute::SpeculativeLoadHardening: return bitc::ATTR_KIND_SPECULATIVE_LOAD_HARDENING; case Attribute::SwiftError: |