loading a machine function pass into llc

Hi,

I have written a new register allocation pass but i am not sure as to how to register it so that it shows up as an option in llc. Can anyone help me with this?

Thanks,
Era