[LLVMdev] CodeGenOpt
David A. Greene
dag at cray.com
Thu Feb 24 08:14:49 PST 2011
Chris Lattner <clattner at apple.com> writes:
>> class CodeGenOpt {
>> ...
>> public
>> getOptLevel() ...;
>> getFPLevel() ...;
>> getMemLevel() ...;
>> };
>>
>> Does this sound reasonable?
>
> I don't think that this is the right way to go. Higher level
> decisions like that should affect your choice of passes to schedule.
But there's no way to do that at the codegen level. LLVMTargetMachine
keys off of CodeGenOpt.
-Dave
More information about the llvm-dev
mailing list