summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-12-04 21:29:24 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-12-04 21:29:24 +0000
commit85f5b5b9dcb16ddbb94b64bef02694872b02dc75 (patch)
tree881cf333ed9db5a71bcef90b2ee6d61c7efe8954 /docs
parent12d38bfca012f20781db894244ef4a6a1216961f (diff)
downloadllvm-85f5b5b9dcb16ddbb94b64bef02694872b02dc75.tar.gz
llvm-85f5b5b9dcb16ddbb94b64bef02694872b02dc75.tar.bz2
llvm-85f5b5b9dcb16ddbb94b64bef02694872b02dc75.tar.xz
We only support 32-bit or 64-bit sequential type indices for GEP. Document
it as so. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32197 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/LangRef.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html
index 7cbcef5b5c..1ca56a18a4 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -2492,14 +2492,14 @@ subelement of an aggregate data structure.</p>
<h5>Arguments:</h5>
-<p>This instruction takes a list of integer constants that indicate what
+<p>This instruction takes a list of integer operands that indicate what
elements of the aggregate object to index to. The actual types of the arguments
provided depend on the type of the first pointer argument. The
'<tt>getelementptr</tt>' instruction is used to index down through the type
levels of a structure or to a specific index in an array. When indexing into a
structure, only <tt>uint</tt> integer constants are allowed. When indexing
-into an array or pointer, integers of any size are allowed, and will be sign
-extended to 64-bit values.</p>
+into an array or pointer, only integers of 32 or 64 bits are allowed, and will
+be sign extended to 64-bit values.</p>
<p>For example, let's consider a C code fragment and how it gets
compiled to LLVM:</p>
@@ -2540,7 +2540,7 @@ compiled to LLVM:</p>
<p>The index types specified for the '<tt>getelementptr</tt>' instruction depend
on the pointer type that is being indexed into. <a href="#t_pointer">Pointer</a>
-and <a href="#t_array">array</a> types can use any
+and <a href="#t_array">array</a> types can use a 32-bit or 64-bit
<a href="#t_integer">integer</a> type but the value will always be sign extended
to 64-bits. <a href="#t_struct">Structure</a> types, require <tt>uint</tt>
<b>constants</b>.</p>