From: Sanjiv Gupta Date: Fri, 24 Apr 2009 16:38:13 +0000 (+0000) Subject: Fixed spaces and the getelementpointer example with i16 type indices. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=16ffa807fc93eee79f1775cffe94cef174755455;p=oota-llvm.git Fixed spaces and the getelementpointer example with i16 type indices. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69971 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/LangRef.html b/docs/LangRef.html index 587f981665f..276c2e93969 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -3629,8 +3629,8 @@ the pointer before continuing calculation.

The type of each index argument depends on the type it is indexing into. When indexing into a (packed) structure, only i32 integer constants 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.

For example, let's consider a C code fragment and how it gets @@ -3719,7 +3719,7 @@ FAQ.

; yields i8*:eptr %eptr = getelementptr [12 x i8]* %aptr, i64 0, i32 1 ; yields i16*:iptr - %iptr = getelementptr [10 x i16]* @arr, i16 0, i16 0 + %iptr = getelementptr [10 x i32]* @arr, i16 0, i16 0