Reputation: 2004
LLVM has libraries that allow easy reading and writing of bitcode. This enables e.g. writing code generators that output llvm bitcode (which one can compile to native code using llvm), or loading bitcode files and performing optimizations or analyses on them.
One can even do so from OCaml.
Is there a library to load LLVM bitcode into Mono (F#), and browse it as e.g. an object tree?
(Note: I do not want to execute LLVM bitcode in Mono, just load the code and browse the structures.)
Upvotes: 2
Views: 197
Reputation: 9851
llvm-fs is a set of F# bindings for the LLVM project.
Bonus reading:
Upvotes: 3