<div dir="ltr"><div><div><div>Hi,<br><br></div>I am using this code to register a llvm IR pass from a Clang plugin:<br><br>void registerPasses(const PassManagerBuilder &PMB, PassManagerBase &PM)<br>{<br> PM.add(...);<br>
}<br><br>RegisterStandardPasses register_pass(PassManagerBuilder::EP_OptimizerLast, registerPasses);<br><br></div>I would like to do the same for registering a MachineFunctionPass pass. Any idea how to do this?<br></div>Perhaps it is also fine to register the machine pass from an IR pass. If so, how?<br>
<br>Regards,<br>Jan Hoogerbrugge<br><div><div><div><br></div></div></div></div>