[LLVMdev] naked assembler / function written entirely in asm

Chris Lattner clattner at apple.com
Sat Jan 10 19:54:58 PST 2009


On Jan 9, 2009, at 2:47 PM, Tomas Lindquist Olsen wrote:
> Hi everybody.
>
> I'm having (yet) another look at trying to get naked functions from  
> D (1) working in our LLVM D Compiler - LDC (2).

> Module level assembler could probably be used for this, but it would  
> be nice if we could get away
> with using a single asm translator in the compiler.

I really do think that module-level asm is the right solution here.   
Unfortunately, the semantics of naked functions are very touchy, and  
you don't want (for example) the inliner to try inlining these things.

-Chris



More information about the llvm-dev mailing list