MachineFunctionPass

Hello all
I'm trying to write a MachineFunctionPass
However i can't figure out how it's registered, built or called?
Any help is really appreciated.

Regards,
Marwa Yusuf
Teaching Assistant - Computer Engineering Department
Faculty of Engineering - Benha University
E-JUST MSc Student
Computer Science & Engineering Dept.