[llvm-dev] Is there a way to pass Optimization passes to clang?
Bill Seurer via llvm-dev
llvm-dev at lists.llvm.org
Wed Dec 2 10:42:44 PST 2015
On 12/02/15 11:56, Phil Tomson via llvm-dev wrote:
> Note: I realize there must be a way to break everything up into stages
> and use /opt/ at some point and pass the optimization command line
> options to it, but I've got a pretty large set of Makefiles which would
> need to change to do that.
Using opt is the way to go.
For your Makefile issue write your own "clang" script that is ahead of
the real clang. Have it run clang/opt/llc for you and then you can
easily change the optimization phases for opt.
--
-Bill Seurer
More information about the llvm-dev
mailing list