On Sat, Jul 7, 2012 at 8:27 AM, David Nadlinger <[email protected]> wrote: > On 7 Jul 2012, at 8:16, Alex Rønne Petersen wrote: >> >> On Sat, Jul 7, 2012 at 8:11 AM, David Nadlinger <[email protected]> >> wrote: >>> >>> Just for the records: LDC does not use a standalone assembler, it >>> directly >>> emits object files using the LLVM MC framework. Thus, we have to parse >>> any >>> inline assembly prior to that (but there are LLVM libraries to do so for >>> most targets). >> >> >> I assume this is what LLVM does anyway when you create InlineAsm >> objects in Modules. But I don't actually know; that's just what I >> would expect from the assembly docs. > > > Yes, but there needs to be a MC AsmParser for the given architecture because > we are using MC to emit code. There is one for x86 and ARM, but e.g. not for > PPC. There is no way to just "splice" inline assembly into the output like > when using a standalone assembler.
That makes me curious then; how does the __asm magic work for PPC currently? (The wiki page you linked shows a PPC example.) Regards, Alex -- You received this message because you are subscribed to the Google Groups "LDC - the LLVM D compiler" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/ldc-dev?hl=en.
