[LLVMdev] how do I find out the default -mcpu and -mattr values?

Chris Lattner sabre at nondot.org
Thu Apr 20 17:58:12 PDT 2006


On Fri, 21 Apr 2006, Eric van Riet Paap wrote:
> Before experimenting with these settings: how do I know what the defaults 
> are?

They default to the current CPU on your system.  I don't think that there 
is an easy way to get it to print out the perceived CPU, but if you put a 
breakpoint in GetCurrentX86CPU() or GetCurrentPowerPCCPU() and see what it 
returns, that will tell you for sure :)

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/




More information about the llvm-dev mailing list