Displaying 2 results from an estimated 2 matches for "tp55680p55692".
Did you mean:
tp55680p55694
2013 Mar 05
0
[LLVMdev] Convert C variable to LLVM IR Variable
> Method 2
>
> use LLVM InlineAsm to load that gvar
> so It may look like
> %x = call InlineAsm(... );
>
> but I am not really sure how to write LLVM InlineAsm.
Are you looking for this?
http://llvm.org/docs/LangRef.html#inline-assembler-expressions
HTH,
chenwj
--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan
2013 Mar 05
4
[LLVMdev] Convert C variable to LLVM IR Variable
Hi everyone,
I am doing some work with LLVM IR, I need to use LLVM IR to do operation
on C variables.
Code emission is done by LLVM JIT.
That variable is C thread local , for example
__thread int* gvar;
I think some methods to convert that variable to LLVM IR,
(1) use external function
I know LLVM IR is able to call an external function, so I can write codes
that look like:
int* load()