llvm-d

Moritz Maxeiner moritz at ucworks.org
Fri Mar 15 10:40:34 PDT 2013


Hi, I would like to announce llvm-d, which provides LLVM bindings 
for D.

It loads LLVM from a dynamic library (so/dylib/dll) and has 
support
for LLVM versions 3.1, 3.2 and 3.3 (current svn trunk).
It has as of now been tested on 64bit versions of Archlinux, OS X 
Mountain Lion and Windows 7.

The support for multiple versions is achieved via conditional 
compilation (As the LLVM C API sometimes has changes such as 
insertion of new enum items
in the middle of an enum, changing the values for all succeeding 
enum items), specifically the version system: LLVM version X.Y 
translates to the version identifier "LLVM_X_Y" (without the 
quotes).

More information (and an example) can be found at llvm-d's 
location:

https://github.com/Calrama/llvm-d

and also has a DUB registry entry at

http://registry.vibed.org/packages/llvm-d


More information about the Digitalmars-d-announce mailing list