Inline ASM Problem

Thank you for replying.

The target is “aget” which is attached. The compiling shell is also attached.

Best
Andy

llvm_makefile (2.13 KB)

aget-devel.tar.gz (19.9 KB)

Hi Andy,

Thank you for replying.

The target is "aget" which is attached. The compiling shell is also attached.

since this seems to be your own custom target I ask: did you implement an asm
parser for your target?

Best wishes, Duncan.

Sorry that I have implemented nothing for it. aget is not my own project which is a public project of paralell “wget”. I only want to use it as a common benchmark.


Do I need to implement anything for it?


Thank you


Best
Andy


> Hi Andy,
>
> On 25/09/12 12:10, Zhoujinguo wrote:
> >
> > Thank you for replying.
> >
> > The target is “aget” which is attached. The compiling shell is also attached.
>
> since this seems to be your own custom target I ask: did you implement an asm
> parser for your target?
>
> Best wishes, Duncan.
>
> >
> > Best
> > Andy
> >
> >
> > > If I use “-use-mcjit” argument, the error message changes to “LLVM ERROR:
> > > Inline asm not supported by this streamer because we don’t have an asm parser
> > > for this target”
> >
> > What’s your target? Please attach your example code so others can
> > reproduce your problem. :slight_smile:
> >
> > Regards,
> > 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
> > <http://people.cs.nctu.edu.tw/%7Echenwj>
> >
> >
> >
> > _______________________________________________
> > LLVM Developers mailing list
> > LLVMdev@cs.uiuc.edu http://llvm.cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> >
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev@cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev


|

Hi Andy,

Sorry that I have implemented nothing for it.

inline asm won't work without an asm parser, which is something that knows how
to turn assembler strings like "mov %eax, %ebx" into opcodes, i.e. the numbers
which, when placed into memory, cause the processor to execute the
"mov %eax, %ebx" operation. After all, an "inline asm" means an assembler
string like "mov %eax, %ebx", and for lli to JIT that, i.e. transform it on
the fly into opcodes for the processor to execute, some kind of asm parser
is clearly needed. If there isn't one for your processor then someone will
have to add one...

  aget is not my own project which

is a public project of paralell "wget".

By "target" I didn't mean the kind of program you are trying to JIT, I mean the
hardware (processor) you are running lli on. Is it intel (x86, x86-64), ARM,
something else?

Ciao, Duncan.

  I only want to use it as a common


Dear Ciao, Duncan,


I am using linux–Intel X86-64. Do I need to implement an asm parser for LLVM JIT myself or there exists some tools for it? Thank you.

Best
Andy



> Hi Andy,
>
> On 25/09/12 14:19, Zhoujinguo wrote:
> > Sorry that I have implemented nothing for it.
>
> inline asm won’t work without an asm parser, which is something that knows how
> to turn assembler strings like “mov %eax, %ebx” into opcodes, i.e. the numbers
> which, when placed into memory, cause the processor to execute the
> “mov %eax, %ebx” operation. After all, an “inline asm” means an assembler
> string like “mov %eax, %ebx”, and for lli to JIT that, i.e. transform it on
> the fly into opcodes for the processor to execute, some kind of asm parser
> is clearly needed. If there isn’t one for your processor then someone will
> have to add one…
>
> aget is not my own project which
> > is a public project of paralell “wget”.
>
> By “target” I didn’t mean the kind of program you are trying to JIT, I mean the
> hardware (processor) you are running lli on. Is it intel (x86, x86-64), ARM,
> something else?
>
> Ciao, Duncan.
>
> I only want to use it as a common
> > benchmark.
> >
> > Do I need to implement anything for it?
> >
> > Thank you
> >
> > Best
> > Andy
> >
> >
> > Hi Andy,
> >
> > On 25/09/12 12:10, Zhoujinguo wrote:
> > >
> > > Thank you for replying.
> > >
> > > The target is “aget” which is attached. The compiling shell is also attached.
> >
> > since this seems to be your own custom target I ask: did you implement an asm
> > parser for your target?
> >
> > Best wishes, Duncan.
> >
> > >
> > > Best
> > > Andy
> > >
> > >
> > > > If I use “-use-mcjit” argument, the error message changes to “LLVM
> > ERROR:
> > > > Inline asm not supported by this streamer because we don’t have an
> > asm parser
> > > > for this target”
> > >
> > > What’s your target? Please attach your example code so others can
> > > reproduce your problem. :slight_smile:
> > >
> > > Regards,
> > > 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
> > <http://people.cs.nctu.edu.tw/%7Echenwj>
> > > <http://people.cs.nctu.edu.tw/%7Echenwj>
> > >
> > >
> > >
> > > _______________________________________________
> > > LLVM Developers mailing list
> > > LLVMdev@cs.uiuc.edu http://llvm.cs.uiuc.edu
> > > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> > >
> >
> > _______________________________________________
> > LLVM Developers mailing list
> > LLVMdev@cs.uiuc.edu http://llvm.cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> >


|

x86 should have the most mature ASM parser. Either file bug report or
enhance the x86 ASM parser yourself, I guess.

Regards,
chenwj

Or use something more recent, such as the development version.

Ciao, Duncan.