[LLVMdev] modifying llc asm output

Michael Graumann MichaelGraumann at gmx.net
Tue Jun 30 11:16:32 PDT 2009


Ok :-) und how can I add inlined assembly to the output?

- Michael

-----Ursprüngliche Nachricht-----
Von: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] Im
Auftrag von Bill Wendling
Gesendet: Dienstag, 30. Juni 2009 19:16
An: LLVM Developers Mailing List
Betreff: Re: [LLVMdev] modifying llc asm output

On Tue, Jun 30, 2009 at 8:33 AM, Michael
Graumann<MichaelGraumann at gmx.net> wrote:
> Hi
>
> I am trying to modify the llc in that way:
>
>
>
>         subf 3, 5, 3                                 subf 3, 5, 3
>
>         stw 3, 44(1)                                stw 3, 44(1)
>
>                                                                # InlineAsm
> Start
>
>                                                -->          isync
>
>                                                                # InlineAsm
> End
>
>         lwz 3, 44(1)                                lwz 3, 44(1)
>
>         cmpwi 0, 3, -1                           cmpwi 0, 3, -1
>
>
>
> I would like to insert Code (like the isync) in the asm output of the llc.
> What is the best way, or easiest to do this.
>
Well, inlined assembly, of course. :-) Make sure to mark it as "volatile".

-bw

_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6952 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090630/f6e3e133/attachment.bin>


More information about the llvm-dev mailing list