<div dir="ltr"><div><div><div><div>Hi,<br></div>I am finding it difficult to see how I can run an IR instrumentation pass after "all" IR passes.<br></div>I previously used opt to run my pass after linking all the llvm bitcode files and then ran llc. <br>
I found out that llc runs some other Function passes which depend on the target.<br></div>For example, tail calls are only supported in x86 under some circumstances.<br><br></div><div>Then I tried lto and link time optimization. But I found it difficult to specify a flag option for my instrumentation pass.<br>
<br></div><div>Is there any way in llvm to run an IR pass after all IR passes?<br></div></div>