<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><span style="font-size: 14px;" class="">I have taken SimplePass and added in Transform directory, “<span style="background-color: rgb(255, 255, 255);" class="">libLLVMSimplePass.a” is built but</span> I can not see this pass in opt —help. I don’t even see the name of pass while registering it in the example.</span><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jan 13, 2018, at 7:35 AM, David Chisnall <<a href="mailto:David.Chisnall@cl.cam.ac.uk" class="">David.Chisnall@cl.cam.ac.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">On 13 Jan 2018, at 03:45, Craig Topper via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:<br class=""><blockquote type="cite" class=""><br class="">I’m not sure what the correct way to do this is. I think your plugin needs to do something to tell clang/llvm when to run the pass. I’ll try to look later when I’m back at a computer.<br class=""></blockquote><br class="">You need to use RegisterStandardPasses to add it to the default pipeline automatically. You can find an example here:<br class=""><br class=""><a href="https://github.com/CompilerTeaching/SimplePass/blob/ba5248a9ea0bd9e1fab3b1f8a5c85d6e0db57acd/SimplePass.cc#L116" class="">https://github.com/CompilerTeaching/SimplePass/blob/ba5248a9ea0bd9e1fab3b1f8a5c85d6e0db57acd/SimplePass.cc#L116</a><br class=""><br class="">David<br class=""><br class=""></div></div></blockquote></div><br class=""></body></html>