在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):llvm-hs/llvm-hs开源软件地址(OpenSource Url):https://github.com/llvm-hs/llvm-hs开源编程语言(OpenSource Language):LLVM 98.9%开源软件介绍(OpenSource Introduction):llvm-hs - Haskell bindings for LLVMThis project aims to provide a relatively complete set of bindings for the LLVM API. If you find that anything is missing please open an issue! We generally try to stay close to the LLVM C++-API so you can consult the LLVM documentation and reuse existing resources. Getting startedIf you’ve worked with LLVM before, take a look at the examples in the llvm-hs-examples repo. If not, you can find a translation of the official LLVM tutorial at https://github.com/llvm-hs/llvm-hs-kaleidoscope. There is also a blog series on writing a C compiler with the library. In general, we try to stay very close to the API and AST provided by LLVM itself, so the LLVM language reference is also very useful. LLVM API Interface
However, the binding to LLVM is only half the story: a lot of advanced
pure-Haskell functionality is built on top of this basic interface in the
LLVM API Coverage and PhilosophyThe If you find you need to use some LLVM functionality which is available via the
C++ API but not via the C API or in In general, if it is possible to implement something in Haskell using the LLVM C API primitives, that is preferable to implementing things in the FFI layer and merely exposing them to Haskell as wrapped C or C++ functions. ContributingWe love all kinds of contributions so please feel free to open issues for missing LLVM features, report & fix bugs or report API inconveniences. VersioningTrying to represent the version of LLVM in the version number but also
allowing for version bumps in the bindings themselves while respecting
the PVP can be tricky. Luckily LLVM switched to a
new versioning scheme
of How is this related to llvm-general?This project is a fork of the venerable |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论