Changes in directory llvm/docs:
LangRef.html updated: 1.176 -> 1.177 --- Log message: We only support 32-bit or 64-bit sequential type indices for GEP. Document it as so. --- Diffs of the changes: (+5 -5) LangRef.html | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) Index: llvm/docs/LangRef.html diff -u llvm/docs/LangRef.html:1.176 llvm/docs/LangRef.html:1.177 --- llvm/docs/LangRef.html:1.176 Mon Dec 4 13:23:19 2006 +++ llvm/docs/LangRef.html Mon Dec 4 15:29:24 2006 @@ -2492,14 +2492,14 @@ <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 @@ <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> @@ -4433,7 +4433,7 @@ <a href="mailto:[EMAIL PROTECTED]">Chris Lattner</a><br> <a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2006/12/04 19:23:19 $ + Last modified: $Date: 2006/12/04 21:29:24 $ </address> </body> </html> _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits