summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-06 21:04:43 +0000
committerChris Lattner <sabre@nondot.org>2008-01-06 21:04:43 +0000
commita31d1d7aea6db0f72b9dfb14fbf4f56c0dcaba84 (patch)
tree4751450ab29e8fdd6f3c7f2fcad42f77c38f415f
parent4b2cbcf4c275379f8c1b68f792db29cc7b7925ad (diff)
downloadllvm-a31d1d7aea6db0f72b9dfb14fbf4f56c0dcaba84.tar.gz
llvm-a31d1d7aea6db0f72b9dfb14fbf4f56c0dcaba84.tar.bz2
llvm-a31d1d7aea6db0f72b9dfb14fbf4f56c0dcaba84.tar.xz
improve description of alignment, patch by Alain Frisch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45662 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--docs/LangRef.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html
index 1e45e63178..4491afb834 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -2843,6 +2843,16 @@ marked as <tt>volatile</tt>, then the optimizer is not allowed to modify
the number or order of execution of this <tt>load</tt> with other
volatile <tt>load</tt> and <tt><a href="#i_store">store</a></tt>
instructions. </p>
+<p>
+The optional "align" argument specifies the alignment of the operation
+(that is, the alignment of the memory address). A value of 0 or an
+omitted "align" argument means that the operation has the preferential
+alignment for the target. It is the responsibility of the code emitter
+to ensure that the alignment information is correct. Overestimating
+the alignment results in an undefined behavior. Underestimating the
+alignment may produce less efficient code. An alignment of 1 is always
+safe.
+</p>
<h5>Semantics:</h5>
<p>The location of memory pointed to is loaded.</p>
<h5>Examples:</h5>
@@ -2870,6 +2880,16 @@ operand. If the <tt>store</tt> is marked as <tt>volatile</tt>, then the
optimizer is not allowed to modify the number or order of execution of
this <tt>store</tt> with other volatile <tt>load</tt> and <tt><a
href="#i_store">store</a></tt> instructions.</p>
+<p>
+The optional "align" argument specifies the alignment of the operation
+(that is, the alignment of the memory address). A value of 0 or an
+omitted "align" argument means that the operation has the preferential
+alignment for the target. It is the responsibility of the code emitter
+to ensure that the alignment information is correct. Overestimating
+the alignment results in an undefined behavior. Underestimating the
+alignment may produce less efficient code. An alignment of 1 is always
+safe.
+</p>
<h5>Semantics:</h5>
<p>The contents of memory are updated to contain '<tt>&lt;value&gt;</tt>'
at the location specified by the '<tt>&lt;pointer&gt;</tt>' operand.</p>