We are starting to get some of the basic WHOPR functionality implemented, so maybe we should think about offering different flags for it. Currently, we have these flags:
-flto: Loads all the bodies from all the files given on the command line and optimizes everything in memory. -flto-single Loads one file at a time, generates IL, assembles it, calls lto1 to generate final assembly. -fwpa Loads only the summary information from each file, builds a callgraph and produces new object files to be optimized independently by lto1. -fltrans This flag is only processed by lto1. The files given to it are compiled to final assembly. This flag is only used by WPA, though we currently accept it as a common option. In essence, -fwpa is close to what -fwhopr should be, but chatting today with Ollie and Doug, they mentioned that it would be useful to have a -fwpa-single flag for debugging. So, from the user's perspective I think we should offer two main modes: -flto: as described above. -fwhopr: similar to what -fwpa does today, but it is accepted by the driver and can take either source code or object code. In this case, we'd move -fwpa and -fltrans to be an lto1-only flag. Thoughts? More importantly, patches? ;) Thanks. Diego.