search for: b9f1ebbc

Displaying 2 results from an estimated 2 matches for "b9f1ebbc".

2011 Dec 13
0
[LLVMdev] GetElementPtr
On Dec 12, 2011, at 5:15 PM, John Criswell wrote: > On 12/12/11 7:00 PM, Ryan Taylor wrote: >> >> So in this example: >> >> %idx = getelementptr { float*, i32 }* %MyStruct, i64 0, i32 1 >> >> Why is it picking i64 for the index but i32 for the offset? > > I believe pointers and arrays are indexed using i64 (or some integer size matching the pointer
2011 Dec 13
6
[LLVMdev] GetElementPtr
By LLVM do you mean the backend? I'm not using the backend, so is that i32 on the 0 index the type of the index value or the type of the value to which exists at that index? it seems the pointer itself has no width, it's arbitrary and is handled in the lowering and is target dependent on the bus width. Basically, when I am computing offset I need to know the sizes for add. The size of