[llvm-commits] [llvm] r69971 - /llvm/trunk/docs/LangRef.html
Sanjiv Gupta
sanjiv.gupta at microchip.com
Fri Apr 24 09:38:26 PDT 2009
Author: sgupta
Date: Fri Apr 24 11:38:13 2009
New Revision: 69971
URL: http://llvm.org/viewvc/llvm-project?rev=69971&view=rev
Log:
Fixed spaces and the getelementpointer example with i16 type indices.
Modified:
llvm/trunk/docs/LangRef.html
Modified: llvm/trunk/docs/LangRef.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LangRef.html?rev=69971&r1=69970&r2=69971&view=diff
==============================================================================
--- llvm/trunk/docs/LangRef.html (original)
+++ llvm/trunk/docs/LangRef.html Fri Apr 24 11:38:13 2009
@@ -3629,8 +3629,8 @@
<p>The type of each index argument depends on the type it is indexing into.
When indexing into a (packed) structure, only <tt>i32</tt> integer
<b>constants</b> are allowed. When indexing into an array, pointer or vector,
-only integers of 16, 32 or 64 bits are allowed (also non-constants).16-bit
-values will be sign extended to 32-bits if required, and 32-bit values
+only integers of 16, 32 or 64 bits are allowed (also non-constants). 16-bit
+values will be sign extended to 32-bits if required, and 32-bit values
will be sign extended to 64-bits if required.</p>
<p>For example, let's consider a C code fragment and how it gets
@@ -3719,7 +3719,7 @@
<i>; yields i8*:eptr</i>
%eptr = getelementptr [12 x i8]* %aptr, i64 0, i32 1
<i>; yields i16*:iptr</i>
- %iptr = getelementptr [10 x i16]* @arr, i16 0, i16 0
+ %iptr = getelementptr [10 x i32]* @arr, i16 0, i16 0
</pre>
</div>
More information about the llvm-commits
mailing list