[PATCH] D126922: Add documentation of new sanitizer-specific GV attributes.
Mitch Phillips via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 10 12:46:35 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG35b1a645892c: Add documentation of new sanitizer-specific GV attributes. (authored by hctim).
Changed prior to commit:
https://reviews.llvm.org/D126922?vs=433890&id=436017#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126922/new/
https://reviews.llvm.org/D126922
Files:
llvm/docs/LangRef.rst
Index: llvm/docs/LangRef.rst
===================================================================
--- llvm/docs/LangRef.rst
+++ llvm/docs/LangRef.rst
@@ -746,6 +746,8 @@
<global | constant> <Type> [<InitializerConstant>]
[, section "name"] [, partition "name"]
[, comdat [($name)]] [, align <Alignment>]
+ [, no_sanitize] [, no_sanitize_address]
+ [, no_sanitize_hwaddress] [, sanitize_address_dyninit]
(, !name !N)*
For example, the following defines a global in a numbered address space
@@ -2321,6 +2323,25 @@
Unlike :ref:`function attributes <fnattrs>`, attributes on a global variable
are grouped into a single :ref:`attribute group <attrgrp>`.
+``no_sanitize``
+ This attribute indicates that the global variable should not have any
+ sanitizers applied to it, either because it was in the sanitizer ignore
+ list, or it was annotated with
+ `__attribute__((disable_sanitizer_instrumentation))`.
+``no_sanitize_address``
+ This attribute indicates that the global variable should not have
+ AddressSanitizer instrumentation applied to it, because it was annotated
+ with `__attribute__((no_sanitize("address")))`.
+``no_sanitize_hwaddress``
+ This attribute indicates that the global variable should not have
+ HWAddressSanitizer instrumentation applied to it, because it was annotated
+ with `__attribute__((no_sanitize("hwaddress")))`.
+``sanitize_address_dyninit``
+ This attribute indicates that the global variable, when instrumented with
+ AddressSanitizer, should be checked for ODR violations. This attribute is
+ applied to global variables that are dynamically initialized according to
+ C++ rules.
+
.. _opbundles:
Operand Bundles
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126922.436017.patch
Type: text/x-patch
Size: 1851 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220610/b37f3bcb/attachment.bin>
More information about the llvm-commits
mailing list