From a31d1d7aea6db0f72b9dfb14fbf4f56c0dcaba84 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 6 Jan 2008 21:04:43 +0000 Subject: [PATCH] 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 --- docs/LangRef.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/LangRef.html b/docs/LangRef.html index 1e45e631787..4491afb834e 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -2843,6 +2843,16 @@ marked as volatile, then the optimizer is not allowed to modify the number or order of execution of this load with other volatile load and store instructions.

+

+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. +

Semantics:

The location of memory pointed to is loaded.

Examples:
@@ -2870,6 +2880,16 @@ operand. If the store is marked as volatile, then the optimizer is not allowed to modify the number or order of execution of this store with other volatile load and store instructions.

+

+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. +

Semantics:

The contents of memory are updated to contain '<value>' at the location specified by the '<pointer>' operand.