Displaying 5 results from an estimated 5 matches for "pushi32".
2017 Jun 05
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
...et, so here is the last output
from --print-after-all for the function. The bizarre thing is that even
this looks correct: the debugInt is called first with @foo, then @foo+4,
and the stores seem to be going to the right addresses as well: @foo and
@foo+4!
BB#0: derived from LLVM BB %entry
PUSHi32 <ga:@foo>, %ESP<imp-def>, %ESP<imp-use>
CFI_INSTRUCTION <call frame instruction>
CALLpcrel32 <ga:@debugPointer>, <regmask %BH %BL %BP %BPL %BX %DI
%DIL %EBP %EBX %EDI %ESI %SI %SIL>, %ESP<imp-use>, %ESP<imp-def>,
%EAX<imp-def,dead&g...
2017 Jun 06
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
...for the function. The bizarre thing is that even
>> this looks correct: the debugInt is called first with @foo, then @foo+4,
>> and the stores seem to be going to the right addresses as well: @foo and
>> @foo+4!
>>
>> BB#0: derived from LLVM BB %entry
>> PUSHi32 <ga:@foo>, %ESP<imp-def>, %ESP<imp-use>
>> CFI_INSTRUCTION <call frame instruction>
>> CALLpcrel32 <ga:@debugPointer>, <regmask %BH %BL %BP %BPL %BX
>> %DI %DIL %EBP %EBX %EDI %ESI %SI %SIL>, %ESP<imp-use>, %ESP<imp-def&...
2017 Jun 04
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
Emitting calls to these functions (written in an .ll file linked in) works
fine, and does the right thing.
%Any = type { i8*, i32 }
define dllexport void @setGlobal(%Any* %ptr, %Any %value) {
store %Any %value, %Any* %ptr
ret void
}
define dllexport %Any @getGlobal(%Any* %ptr) {
%val = load %Any, %Any* %ptr
ret %Any %val
}
Trying to replace the setGlobal call with what should be
2017 Jun 06
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
...;>>> even this looks correct: the debugInt is called first with @foo, then
>>>> @foo+4, and the stores seem to be going to the right addresses as well:
>>>> @foo and @foo+4!
>>>>
>>>> BB#0: derived from LLVM BB %entry
>>>> PUSHi32 <ga:@foo>, %ESP<imp-def>, %ESP<imp-use>
>>>> CFI_INSTRUCTION <call frame instruction>
>>>> CALLpcrel32 <ga:@debugPointer>, <regmask %BH %BL %BP %BPL %BX
>>>> %DI %DIL %EBP %EBX %EDI %ESI %SI %SIL>, %ESP<imp-u...
2017 Jun 07
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
...he debugInt is called first with @foo, then
>>>>>> @foo+4, and the stores seem to be going to the right addresses as well:
>>>>>> @foo and @foo+4!
>>>>>>
>>>>>> BB#0: derived from LLVM BB %entry
>>>>>> PUSHi32 <ga:@foo>, %ESP<imp-def>, %ESP<imp-use>
>>>>>> CFI_INSTRUCTION <call frame instruction>
>>>>>> CALLpcrel32 <ga:@debugPointer>, <regmask %BH %BL %BP %BPL
>>>>>> %BX %DI %DIL %EBP %EBX %EDI %ESI %SI...