Is it possible to use EE within optimization pass?

ok. I rephrase my question. How do I link the executionengine to an optimization pass. If I use LINK_COMPONENTS=engine in the Makefile, I get the Pass registered multiple times error. And if i dont use anything, it is not able to load the EE. It gives error loading symbol error. So,
1. Is it possible to use the EE within an optimization pass?
2. If it is possible, how do I do it?