diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-28 00:31:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-28 00:31:12 +0000 |
commit | 50d07d0772b3c8cd0d340c4740c0f2a0795768cf (patch) | |
tree | 14a041c3f26c48bdefd99659ba7a69cd0b0d54cc /docs | |
parent | 72413b248c891f656bd07cdc7eb3c9fa3c65d3e8 (diff) | |
download | external_llvm-50d07d0772b3c8cd0d340c4740c0f2a0795768cf.zip external_llvm-50d07d0772b3c8cd0d340c4740c0f2a0795768cf.tar.gz external_llvm-50d07d0772b3c8cd0d340c4740c0f2a0795768cf.tar.bz2 |
further clarify alignment of globals, fix instcombine
to not increase the alignment of globals with an assigned
alignment and section.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102476 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r-- | docs/LangRef.html | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html index 05637ab..02b249b 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -855,10 +855,11 @@ define i32 @main() { <i>; i32()* </i> of 2. If not present, or if the alignment is set to zero, the alignment of the global is set by the target to whatever it feels convenient. If an explicit alignment is specified, the global is forced to have exactly that - alignment. Targets are not allowed to over-align the global in cases where - it is observable: for example, overaligning a global is observable if it has - an assigned section and higher alignment could cause holes between - consequtive globals.</p> + alignment. Targets and optimizers are not allowed to over-align the global + if the global has an assigned section. In this case, the extra alignment + could be observable: for example, code could assume that the globals are + densely packed in their section and try to iterate over them as an array, + alignment padding would break this iteration.</p> <p>For example, the following defines a global in a numbered address space with an initializer, section, and alignment:</p> |