Linking an opt optimization pass to clang?

Hi

I am trying to figure out how to link an opt pass to llvm-gcc or clang.
Is there a document on how to do this?

-Puyan