I wanted to write MachineFunctionPass which needs to be run after global register allocation pass.
I have read LLVM documentation and blogs and able to write simple pass which will is invoked through opt command line.
However, I could able to find any blogs or document to explains clear steps for writing MachineFunctionPass.
Please suggest some documents or blogs which will help me write MachineFunctionPass.
Any help is going to be appreciated.