[LLVMdev] "Mapping High-Level Constructs to LLVM IR"

David Blaikie dblaikie at gmail.com
Mon Nov 25 08:21:30 PST 2013


>  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.
>

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.

- David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131125/427ffa02/attachment.html>


More information about the llvm-dev mailing list