<div dir="ltr"><div><div>I've created a post-RA pass runOnMachineFunction that gets registed with the pass manager like this:<br><br><br><span style="font-family:monospace,monospace">static RegisterPass<RegBankFixUpPass> X("regbankfixup", "Register Bank Conflict FixUp Pass");</span><br><br></div>And and whenever I run clang or llc now the pass runs. Initially, until I'm sure this pass doesn't break things I'd like it to be opt-in - ie I'd like to have the pass run only when the -regbankfixup commandline option is passed to clang or llc, but this seems doable only from opt. Is there no way to set things up such that the pass gets run when an option is passed to llc or (ideally) clang?<br><br></div>Phil<br></div>