[llvm-commits] [llvm] r83122 - in /llvm/trunk: include/llvm/Target/TargetSubtarget.h lib/CodeGen/LLVMTargetMachine.cpp lib/CodeGen/PostRASchedulerList.cpp lib/Target/ARM/ARM.td lib/Target/ARM/ARMSubtarget.cpp lib/Target/ARM/ARMSubtarget.h test/Co

Chris Lattner clattner at apple.com
Wed Sep 30 14:39:42 PDT 2009


On Sep 30, 2009, at 2:05 PM, David Goodwin wrote:

> Well, now I've found something like this:
>
> static cl::opt<cl::boolOrDefault> FlagEnableTailMerge("enable-tail- 
> merge",
>                              cl::init(cl::BOU_UNSET), cl::Hidden);
>
> So I can use CPU type to set NEON-fp and post-ra sched defaults, and  
> then this type of hidden flag to override. This one provides the  
> "keep default" behavior that I need. That is what I will do unless I  
> hear otherwise.

Sounds great to me David.  You can also just use "cl::opt<bool>  
SomeFlag"   and use SomeFlag.getPosition() to see if it was actually  
specified or not.

-Chris




More information about the llvm-commits mailing list