Displaying 3 results from an estimated 3 matches for "m_array".
Did you mean:
_array
2009 Dec 14
4
[LLVMdev] inttoptr weirdness
...e oddities. While I have no problems
generating IR, when I run it through the optimizer (opt -O3), it
generates what appears to be totally wrong code.
Here's my test case:
I have a global called *testObj*. It would look like this in C:
struct TestObjClass
{
int32 dummy1, dummy2;
int32* m_array;
}
extern TestObjClass* testObj;
and I'm trying to access:
testObj->m_array[1] = 10
Theoretically, this should be a load to get the pointer to testObj
(since it's a global), I should add 8 bytes, then do another load (to
load the address of the array), add 4 bytes to get the array[1]...
2007 Dec 22
1
Ajax.Updater and JavaScript functions
...ax.Updater again then the
javascript in the second call does not seem to "refresh" that in the
first call.
The Javascript has something along the lines of :
<script type="text/javascript">
splitInfo = function(splitNumber) {
var splitJSON = <? echo json_encode($m_array); ?>;
var latlng1 = new GLatLng(splitJSON.data[splitNumber].start_lat,
splitJSON.data[splitNumber].start_lon);
var latlng2 = new GLatLng(splitJSON.data[splitNumber].fin_lat,
splitJSON.data[splitNumber].fin_lon);
addSplitMarker(latlng1,latlng2);
}
</script>
As you can see th...
2009 Dec 14
0
[LLVMdev] inttoptr weirdness
...ing IR, when I run it through the optimizer (opt -O3), it
> generates what appears to be totally wrong code.
>
> Here's my test case:
>
> I have a global called *testObj*. It would look like this in C:
>
> struct TestObjClass
> {
> int32 dummy1, dummy2;
> int32* m_array;
> }
>
> extern TestObjClass* testObj;
>
> and I'm trying to access:
>
> testObj->m_array[1] = 10
>
> Theoretically, this should be a load to get the pointer to testObj
> (since it's a global), I should add 8 bytes, then do another load (to
> load the add...