[LLVMdev] llvm-gcc and -emit-llvm

Gordon Henriksen gordonhenriksen at mac.com
Mon Jun 9 20:23:40 PDT 2008


On 2008-06-09, at 18:20, David Greene wrote:

> On Monday 09 June 2008 14:52, Dale Johannesen wrote:
>
>> It seems clear the current interface can be confusing; you are not  
>> the first.  Perhaps -emit-llvm should be renamed to indicate it  
>> does not necessarily result in emitting llvm IR? -output-format- 
>> llvm?  Seems pretty ugly, maybe someone can do better.
>
> -mcpu=llvm?  Yes, it may require some mucking around with config  
> files, but it would at least be consistent.

LLVM bitcode/assembly v.s. object code/assembly is orthogonal to CPU  
architecture. -mcpu=ppc and -mcpu=x86 will generate different IR. So  
this is no good.

— Gordon





More information about the llvm-dev mailing list