<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div> For now, I have had the joy of coding up quite a few snippets in LLVM IR.  I am learning to swim as I am sinking into all the intricacies of LLVM IR.  So far is has only been pleasant working with LLVM IR, albeit I am a tad tired of typing types because LLVM IR demands explicit types on most expressions and arguments.  But I do understand that LLVM IR is meant to be automatically generated by a compiler, not hand-crafted by a tech writer.</div>
</div></blockquote><div><br></div><div>One thing you could do is just use an existing frontend (Clang, or whatever frontend you're developing) to emit IR for simple examples - it might require a little further massaging to simplify it down to pithy examples without extraneous junk, but may still be faster than writing the IR out entirely by hand.<br>
<br>- David </div></div></div></div>