[LLVMdev] Directly emit LLVM IR?

Eric Jonas jonas at MIT.EDU
Mon Feb 25 13:20:20 PST 2008


>         • 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? 
			...Eric





More information about the llvm-dev mailing list