search for: nxmth

Displaying 1 result from an estimated 1 matches for "nxmth".

Did you mean: nfeth
2009 Sep 28
1
[LLVMdev] Appending linkage
.... Calculating the array size would be a simple matter of subtracting the pointer to the end from the pointer to the beginning. However, this does not work. The GEP always behaves as if it were operating on the array before appending - so the GEP gives you back a pointer to the Mth element, not the NxMth element. Note that I also tried just GEP (1), which gives a similar result, although I would expect it not to work at all, since pointers are only supposed to be dereferenced with an index of 0. When I look at the generated bitcode, I see that the appended array does indeed have a type of [(N*M) x...