[LLVMdev] CodeGenOpt

David Greene dag at cray.com
Wed Feb 23 13:49:38 PST 2011


The existing CodeGenOpt is not flexible enough for our needs.  Our
customers want to be able to control the optimization level at a fine
grain, so we provide them separate dials for general optimization, fp
optimization and memory hierarchy optimization.

I would like to replace the existing CodeGenOpt::Level enum with a more
general CodeGenOpt class that can track different sets of optimization
level.  Initially it would look something like this:

class CodeGenOpt {
  ...
public
  getOptLevel() ...;
  getFPLevel() ...;
  getMemLevel() ...;
};

Does this sound reasonable?

                        -Dave



More information about the llvm-dev mailing list