[LLVMdev] Default target

Dan Gohman gohman at apple.com
Mon Feb 22 10:30:24 PST 2010


On Feb 21, 2010, at 4:10 PM, S3 wrote:
> 
> Why is there a default target?
> Why can't those optimizations just be skipped until there is one?
> (To be clear: I am assuming there is a reason for this.
> I am asking what it is.)

This has recently been fixed on trunk. The opt tool no longer adds a
default target if a Module has no target attributes, and the optimizers
now know how to be conservative when there's no target information.

> Especially in the case of llvm-ld -native,
> why doesn't it set the target to the platform
> it is compiling for?

This sounds like it could be called a bug. Please file a bugzilla report.

Dan




More information about the llvm-dev mailing list