On 01/29/2014 01:48 PM, Rafael Espíndola wrote:>> So how do I create stubs? >> >> I have specific function stubs that I want to create. >> >> There is no direct object emitter for mips16 at this time. > Print it like any other instruction? > > Cheers, > RafaelI'd like to just check my code in and then you can look at it in it's totality and see if you have a better solution . Reed
On Wed, Jan 29, 2014 at 2:09 PM, reed kotler <rkotler at mips.com> wrote:> On 01/29/2014 01:48 PM, Rafael Espíndola wrote: >>> >>> So how do I create stubs? >>> >>> I have specific function stubs that I want to create. >>> >>> There is no direct object emitter for mips16 at this time. >> >> Print it like any other instruction? >> >> Cheers, >> Rafael > > I'd like to just check my code in and then you can look at it in it's > totality and see if you have > a better solution . >No. Please don't do this. You already had two people say "I don't think this is the right solution." -eric> Reed > > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> I'd like to just check my code in and then you can look at it in it's > totality and see if you have > a better solution .No! If it is the compiler creating instructions, it is not inline assembly. If you need to print mips16 and mips32 and they are two independent instruction sets, my guess is that you need to figure out how to swap between two AsmPrinters. Cheers, Rafael
On 01/29/2014 02:18 PM, Rafael Espíndola wrote:>> I'd like to just check my code in and then you can look at it in it's >> totality and see if you have >> a better solution . > No! > > If it is the compiler creating instructions, it is not inline > assembly. If you need to print mips16 and mips32 and they are two > independent instruction sets, my guess is that you need to figure out > how to swap between two AsmPrinters. > > Cheers, > RafaelWe do switch them already. We create different functions for the stubs and assign them the mips32 attribute. Then they get assembled. The need for these particular stubs cannot be recognized until isel lowering. Why do I need to make a complex mechanism here when all I need to do is emit some some inline assembly code at the end of asm printer? What purpose will this serve? Reed