[llvm-commits] [llvm] r100492 - in /llvm/trunk: include/llvm/MC/MCParser/AsmParser.h lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp lib/MC/MCParser/AsmParser.cpp
Duncan Sands
baldrick at free.fr
Tue Apr 6 00:21:34 PDT 2010
> Give AsmParser an option to control whether it finalizes
> the stream. New demo:
>
> $ clang asm.c -S -o - -emit-llvm | llc -filetype=obj -o t.o
> $ otool -tv t.o
> t.o:
> (__TEXT,__text) section
> _foo:
> 0000000000000000 subq $0x08,%rsp
> 0000000000000004 movl %edi,(%rsp)
> 0000000000000007 movl %edi,%eax
> 0000000000000009 incl %eax
> 000000000000000b movl %eax,(%rsp)
> 000000000000000e movl %eax,0x04(%rsp)
> 0000000000000012 addq $0x08,%rsp
> 0000000000000016 ret
Nice!
Duncan.
More information about the llvm-commits
mailing list