Displaying 1 result from an estimated 1 matches for "uint0".
Did you mean:
uint
2006 Jun 06
0
[LLVMdev] Re: global variable
...v in as an argument to the call? I don't know
>> what you're trying to do, so I can't help without more details.
>>
>> No, Gv is not used as an argument to the call. The return value of the call
>> is to be assigned to Gv. For example, I want
> %Gv = global uint0;
> %Gv = call my_func(Args);
>
> But now, I can only get:
> %Gv = global uint 0;
> %my_func = call %my_func(Args);
You need to emit a store instruction. globals are memory, accessed with
load/store instructions. Try something like this:
V = new CallInst(...)
new StoreInst(V, GV)...