[LLVMdev] writing llvm ir not in c++
Jonathan Roelofs
jonathan at codesourcery.com
Mon Oct 13 11:03:27 PDT 2014
On 10/13/14 11:44 AM, Eli Bendersky wrote:
> On Mon, Oct 13, 2014 at 10:35 AM, Dave Pitsbawn <dpitsbawn at gmail.com> wrote:
>
>> Is it possible to write LLVM IR but not using C++?
>>
>> I'm exceedingly terrible at C++.
>>
>> I was thinking, isn't it possible to write the IR using Java?
>>
>
>
> You can use llvmpy (Python bindings to LLVM) to create LLVM IR modules, if
> you'd like. [http://www.llvmpy.org/]
LLVM also has C bindings. I'm not aware of a tutorial specifically for these
bindings, but a great reference for things along the line of "how do use LLVM as
my language's backend" is the Kaleidoscope tutorial:
http://llvm.org/docs/tutorial/ (which has guides for both OCaml and C++).
Cheers,
Jon
>
>
>
>> I effectively have emit some sort of binary op codes to be passed into
>> llvm right?
>>
>>
> Not sure what you're asking here, can you clarify?
>
> Eli
>
--
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded
More information about the llvm-dev
mailing list