search for: 991fd06f

Displaying 3 results from an estimated 3 matches for "991fd06f".

2011 Dec 12
0
[LLVMdev] GetElementPtr
On Mon, Dec 12, 2011 at 3:54 PM, Ryan Taylor <ryta1203 at gmail.com> wrote: > For the gep: > > %idx1 = getelementptr i32* %MyVar, i32 0 > > i32* is the type that MyVar is pointing to and i32 is the type of the offset > value, or what? If it's the type of offset value, then > the size of the pointer shouldn't be less than i32, correct? > > > The index is
2011 Dec 12
2
[LLVMdev] GetElementPtr
For the gep: %idx1 = getelementptr i32* %MyVar, i32 0 i32* is the type that MyVar is pointing to and i32 is the type of the offset value, or what? If it's the type of offset value, then the size of the pointer shouldn't be less than i32, correct? The index is 0, so in this example, the address computation is idx1 = &MyVar+0. What I want to know is the size in bits of the values
2011 Dec 13
6
[LLVMdev] GetElementPtr
...lso 32? > > LLVM will sign-extend or truncate the index to the size of the > pointer; the pointer type could have any width. > > -Eli > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111212/991fd06f/attachment.html>