[cfe-commits] r105583 - in /cfe/trunk: include/clang/Frontend/CodeGenAction.h include/clang/Frontend/FrontendAction.h lib/Frontend/CodeGenAction.cpp test/Frontend/ir-support-codegen.ll test/Frontend/ir-support-errors.ll tools/driver/CMakeLists.txt tools/driver/Makefile

Fariborz Jahanian fjahanian at apple.com
Tue Jun 8 09:33:03 PDT 2010


On Jun 7, 2010, at 4:27 PM, Daniel Dunbar wrote:

> Author: ddunbar
> Date: Mon Jun  7 18:27:59 2010
> New Revision: 105583
>
> URL: http://llvm.org/viewvc/llvm-project?rev=105583&view=rev
> Log:
> Frontend: Add CodeGenAction support for handling LLVM IR.
> - This magically enables using 'clang -cc1' as a replacement for  
> most of 'llvm-as', 'llvm-dis', 'llc' and 'opt' functionality.
>
> For example, 'llvm-as' is:
>  $ clang -cc1 -emit-llvm-bc FOO.ll -o FOO.bc
> and 'llvm-dis' is:
>  $ clang -cc1 -emit-llvm    FOO.bc -o -
> and 'opt' is, e.g.:
>  $ clang -cc1 -emit-llvm -O3 -o FOO.opt.ll FOO.ll
> and 'llc' is, e.g.:
>  $ clang -cc1 -S -o - FOO.ll

Great. Would be nice to be able to do: llc -march=c < file.bc  via cc1  
too.
An end-to-end source to c translation :).

- Fariborz

>
>



More information about the cfe-commits mailing list