search for: next_elt

Displaying 4 results from an estimated 4 matches for "next_elt".

Did you mean: next_ebr
2015 Feb 07
3
[LLVMdev] Moving towards a singular pointer type
...uld keep GEP essentially the same, but disassociate the type being GEPd over from the type of the operands. So, assuming the new ptr type is spelled "ptr", we could use this syntax: %inner.ptr = getelementptr ptr, ptr %x, i32 1 Or if I was adding 1 to a "struct A*" value in C: %next_elt = getelementptr %struct.A, ptr %x, i32 1 Ditto for all other instructions that care about pointee types, like load and store: %v = load i32, ptr %p ; loads already know (and store!) their loaded type internally store i32 %v, ptr %p ; no need to duplicate that %p points to, we have the type on %v...
2015 Feb 09
5
[LLVMdev] Moving towards a singular pointer type
...ally the same, but disassociate the type being GEPd over from the type of the operands. So, assuming the new ptr type is spelled "ptr", we could use this syntax: > %inner.ptr = getelementptr ptr, ptr %x, i32 1 > > Or if I was adding 1 to a "struct A*" value in C: > %next_elt = getelementptr %struct.A, ptr %x, i32 1 > > Ditto for all other instructions that care about pointee types, like load and store: > %v = load i32, ptr %p ; loads already know (and store!) their loaded type internally > store i32 %v, ptr %p ; no need to duplicate that %p points to, we h...
2015 Feb 10
0
[LLVMdev] Moving towards a singular pointer type
...he >> type being GEPd over from the type of the operands. So, assuming the new >> ptr type is spelled "ptr", we could use this syntax: >> %inner.ptr = getelementptr ptr, ptr %x, i32 1 >> >> Or if I was adding 1 to a "struct A*" value in C: >> %next_elt = getelementptr %struct.A, ptr %x, i32 1 >> >> Ditto for all other instructions that care about pointee types, like load >> and store: >> %v = load i32, ptr %p ; loads already know (and store!) their loaded type >> internally >> store i32 %v, ptr %p ; no need to...
2015 Feb 06
14
[LLVMdev] Moving towards a singular pointer type
It's an idea been thrown around in a few different threads (including Rafael's recent http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20141201/247285.html and Chandler's http://llvm.org/viewvc/llvm-project?rev=226781&view=rev ) so I'm putting up my hand to volunteer to do the work & interested in getting a bit more feedback, thoughts on best approaches, timing,