<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You need to call "initializeMyExamplePass" ahead of time. Look at <br>
include/llvm/InitializePasses.h, and for the actual calls that <br>
initialize individual passes, at lib/Analysis/Analysis.cpp, <br>
lib/Transforms/Scalar/Scalar.cpp, etc.<br>
<br>
These are all called from "main" in opt.cpp.<br>
<br>
-Krzysztof<br></blockquote><div><br></div><div>Ah, right. Given the hint that I actually do need to arrange to call initialize myself, I've put the call to initializeMyExamplePass in LLVMInitializeMyTarget. That works fine and, now that I've looked more carefully, seems to be how other targets have done it.<br><br></div><div>Thanks!<br><br></div><div>Jon <br></div></div></div>