[llvm-commits] [llvm] r70134 - in /llvm/trunk: docs/LangRef.html lib/VMCore/Type.cpp test/Assembler/getelementptr_struct.ll

Duncan Sands baldrick at free.fr
Sun Apr 26 11:28:05 PDT 2009


Hi Sanjiv,

>  <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
> +integers of any width 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>

the bit about 16-bit values being extended to 32 bit etc sounds odd now.

Ciao,

Duncan.



More information about the llvm-commits mailing list