[LLVMdev] PATCH: -dry-run option for llvmc2

Holger Schurig hs4233 at mail.mn-solutions.de
Fri May 30 01:51:27 PDT 2008


This implements -dry-run for llvmc2:

$ llvmc2 -dry-run main.c
llvm-g++ -c -x c main.c -o /tmp/llvm_bGw2gN/main.bc -emit-llvm
llc -f /tmp/llvm_bGw2gN/main.bc -o /tmp/llvm_bGw2gN/main.s
llvm-gcc -c -x assembler /tmp/llvm_bGw2gN/main.s -o /tmp/llvm_bGw2gN/main.o
llvm-gcc /tmp/llvm_bGw2gN/main.o -o a.out

$ llvmc2 -dry-run -opt main.c
llvm-g++ -c -x c main.c -o /tmp/llvm_UGZtwL/main.bc -emit-llvm
opt /tmp/llvm_UGZtwL/main.bc -o /tmp/llvm_UGZtwL/main.bc
llc -f /tmp/llvm_UGZtwL/main.bc -o /tmp/llvm_UGZtwL/main.s
llvm-gcc -c -x assembler /tmp/llvm_UGZtwL/main.s -o /tmp/llvm_UGZtwL/main.o
llvm-gcc /tmp/llvm_UGZtwL/main.o -o a.out
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvmc2-dry-run.patch
Type: text/x-diff
Size: 1070 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080530/974e9c87/attachment.patch>


More information about the llvm-dev mailing list