[LLVMdev] modifying llc asm output

Bill Wendling isanbard at gmail.com
Tue Jun 30 10:15:39 PDT 2009


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




More information about the llvm-dev mailing list