[LLVMdev] Directly emit LLVM IR?
Jan Rehders
cmdkeen at gmx.de
Fri Feb 22 20:40:01 PST 2008
Hi,
> • 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
One more problem with this: in order to emit float constants you have
to convert them to hexadecimal notation which I found nontrivial. My
pet language is still lacking proper float support because of this.
I'm not aware whether there are more pitfalls like this lurking
around. (Time to finally move to the ocaml bindings.. :))
HTH,
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080223/5c8ee12e/attachment.html>
More information about the llvm-dev
mailing list