[LLVMdev] how to access loopInfo

David Greene dag at cray.com
Thu Mar 11 14:21:38 PST 2010


On Thursday 11 March 2010 15:24:52 Jochen Wilhelmy wrote:

> So I know that I'm on the right way. I just think it's a bit of overhead
> implementing an own pass
> and register it using llvm::RegisterPass

It's not that much overhead.  A basic Pass is pretty small, code-wise.

> can the PassArg of RegisterPass clash with other passes? or can I just do
> static RegisterPass<MyPass> tmp("foo", "My Pass");

I believe it has to have a unique name and option (the "foo" and "My Pass" 
bits).

                                         -Dave




More information about the llvm-dev mailing list