[LLVMdev] Directly emit LLVM IR?

Gordon Henriksen gordonhenriksen at mac.com
Mon Feb 25 17:45:00 PST 2008


On Feb 25, 2008, at 16:20, Eric Jonas wrote:

>>        • Emit LLVM assembly from your compiler's native language.
>>        for: very straightforward to get started
>>        against: the .ll parser is slower than the bitcode reader when
>>        interfacing to the middle end
>>        against: you'll have to re-engineer the LLVM IR object model
>>        and asm writer in your language
>>        against: it may be harder to track changes to the IR
>
>
> I think I'm going to try this second one, and produce a nice set of
> lisp-like bindings for emitting the IR. Are there any optimizations or
> other LLVM features that I'll miss out on by going this route?

Nope, the assembly format is a first-class representation.

— Gordon





More information about the llvm-dev mailing list