aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-02-24 13:46:15 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-02-24 13:46:15 +0000
commit48814290e71b9230abe48a289f5780b2228be1c9 (patch)
tree2b20c64ee972249da9fa9c9e56ea30dc8dc868a1 /docs
parent52143b197dab8d4fd9f79b9a9ef5ef066d4e5f91 (diff)
downloadclang_35a-48814290e71b9230abe48a289f5780b2228be1c9.tar.gz
Clarifying the wording for the noduplicate attribute.
Patch by Marcello Maggioni! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202035 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/AttributeReference.rst18
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/AttributeReference.rst b/docs/AttributeReference.rst
index 1f3af06ae3..c488eeac91 100644
--- a/docs/AttributeReference.rst
+++ b/docs/AttributeReference.rst
@@ -385,13 +385,12 @@ noduplicate (clang::noduplicate)
"X","X","",""
The ``noduplicate`` attribute can be placed on function declarations to control
-whether function calls to this function can be duplicated
-or not as a result of optimizations. This is required for the implementation
-of functions with certain special requirements, like the OpenCL "barrier",
-function that, depending on the hardware, might require to be run concurrently
-by all the threads that are currently executing in lockstep on the hardware.
-For example this attribute applied on the function "nodupfunc"
-avoids that this code:
+whether function calls to this function can be duplicated or not as a result of
+optimizations. This is required for the implementation of functions with
+certain special requirements, like the OpenCL "barrier" function, that might
+need to be run concurrently by all the threads that are executing in lockstep
+on the hardware. For example this attribute applied on the function
+"nodupfunc" in the code below avoids that:
.. code-block:: c
@@ -408,7 +407,7 @@ avoids that this code:
bar();
}
-gets possibly modified by some optimization into code similar to this:
+gets possibly modified by some optimizations into code similar to this:
.. code-block:: c
@@ -420,7 +419,8 @@ gets possibly modified by some optimization into code similar to this:
bar();
}
-where the barrier call is duplicated and sunk into the two branches of the condition.
+where the call to "nodupfunc" is duplicated and sunk into the two branches
+of the condition.
no_sanitize_address (no_address_safety_analysis, gnu::no_address_safety_analysis, gnu::no_sanitize_address)