[LLVMdev] Convert C variable to LLVM IR Variable

陳韋任 (Wei-Ren Chen) chenwj at iis.sinica.edu.tw
Tue Mar 5 00:33:32 PST 2013


> 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 (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj




More information about the llvm-dev mailing list