<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#FFFFFF" text="#000000"><div class="im"><br></div>
    First, have you read the Language Reference Manual, the Programmer's
    Manual, and the How to Write an LLVM Pass manual at
    <a href="http://llvm.org/docs" target="_blank">http://llvm.org/docs</a>?  Those are pretty much required reading for
    staring to learn how to write LLVM transform passes.<br></div></blockquote><div><br></div><div> I have read the docs, and I am concerning about coding. What I need is something like the API reference of LLVM. And I cannot find such docs.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#FFFFFF" text="#000000"><br>
    There are, of course, numerous examples in LLVM itself (in
    lib/Transforms), too, although I'm not sure which passes are going
    to be small and trivial (maybe the profiling instrumentation
    passes).<br><br></div></blockquote></div>I think the code example in Transforms/Instrumentation is much helpful. It is simple and understandable for a beginner.<div><br></div><div>Thanks! <br clear="all"><div><br></div>
-- <br>zhouxu<br>
</div>