Need help on how to write MachineFunctionPass

Hi Bala,

For register allocation this might help :https://github.com/nael8r/How-To-Write-An-LLVM-Register-Allocator/blob/master/HowToWriteAnLLVMRegisterAllocator.rst

-Vivek