[LLVMdev] Whither /Support/StandardPasses.h?

Harris, Kevin Kevin.Harris at unisys.com
Thu Nov 3 13:00:29 PDT 2011


> Date: Wed, 26 Oct 2011 11:52:50 -0700
> From: Tanya Lattner <lattner at apple.com>
> Subject: [LLVMdev] Release Notes: Volunteers needed

> We need some volunteers to help with the 3.0 release notes. Traditionally, Chris has been the one to go 
> through all the commits (6 months worth!) and come up with a concrete list of things that have changed in 3.0. 
> Ideally, it's much better if this document is incrementally updated as well, but we know how that goes. This 
> is a huge amount of work and with the pace that LLVM/Clang are being developed, it's a big task and becoming 
> too much for one person.

> Thanks,
> Tanya

A suggestion to include: I've recently been trying to adapt our project to LLVM 3.0 rc2, and it took me several hours to track down what happened to "include/llvm/Support/StandardPasses.h".  There is no mention of this topic in the current release notes page for 3.0 on the website (http://llvm.org/docs/ReleaseNotes.html#whatsnew), or the equivalent page in the kit itself.  And it isn't easy to find how it has transmogrified just by searching the LLVM sources, because all the old API function names have also changed.

I was finally able to track it down to the new header "include/llvm/Transforms/IPO/PassManagerBuilder.h" by looking at how the Clang usage had changed, where it previously had used StandardPasses.h and its contents.

So, for the release notes, it would be nice to mention this change and perhaps give a couple examples how to convert from calls to "createStandardModulePasses()" and "createStandardFunctionPasses()" to the new interface.  

Thanks for everyone's hard work on 3.0 - I can't wait to get our project building cleanly with rc2.
	-Kevin






More information about the llvm-dev mailing list