[haskell-llvm] llvm-general FFI dependencies

Henning Thielemann schlepptop at henning-thielemann.de
Tue Aug 20 10:42:19 BST 2013


Am 20.08.2013 11:31, schrieb Henning Thielemann:

> LLVM has this mysterious TableGen system for generating all kinds of
> files from Def files. It seems to be undocumented and LLVM people claim
> it is easy to understand. I tried to use it for automatically generating
> Haskell declarations for vector instruction intrinsics. Unfortunately I
> did not understand this TableGen system.

To be more precise: Eventually I generated these instruction interfaces 
automatically but not by programming the TableGen system but by parsing 
IntrinsicsX86.td with Parsec. An alternative would be post-processing 
the output of the generic 'llvm-tblgen -print-records' command. The 
intrinsic declarations ended up in my llvm-extra package.




More information about the Haskell-llvm mailing list