llvm-codegen: A DSL for LLVM IR code generation based on llvm-hs.

[ bsd3, compilers, library ] [ Propose Tags ] [ Report a vulnerability ]

A DSL for LLVM IR code generation. Heavily inspired by llvm-hs.


[Skip to Readme]

Modules

  • LLVM
    • C
      • LLVM.C.API
      • LLVM.C.Bindings
    • LLVM.Codegen
      • LLVM.Codegen.Flag
      • LLVM.Codegen.IR
      • LLVM.Codegen.IRBuilder
        • LLVM.Codegen.IRBuilder.Monad
      • LLVM.Codegen.ModuleBuilder
      • LLVM.Codegen.Name
      • LLVM.Codegen.Operand
      • LLVM.Codegen.Type
    • LLVM.Pretty

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0
Dependencies base (>=4.7 && <5), bytestring (>=0.11 && <0.12), containers (<1), dlist (>=1 && <2), ghc-prim (<1), mmorph (>=1 && <2), mtl (>=2 && <3), text (>=2 && <3), text-builder-linear (<1) [details]
License BSD-3-Clause
Copyright Luc Tielen, 2024
Author Luc Tielen
Maintainer luc.tielen@gmail.com
Category Compilers
Home page https://github.com/luc-tielen/llvm-codegen
Uploaded by luc_tielen at 2024-10-20T20:10:55Z
Distributions NixOS:0.1.0.0
Downloads 27 total (3 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2024-10-20 [all 2 reports]

Readme for llvm-codegen-0.1.0.0

[back to package description]

llvm-codegen

build

A Haskell library for generating LLVM code. Inspired by the llvm-hs, llvm-hs-pure, llvm-hs-combinators and the llvm-hs-pretty libraries.

NOTE: WIP, but if you only need the provided instructions it's usable (and tested). Used inside the eclair compiler.

Note that it requires LLVM to be installed on your system and available on your $PATH!

Why another LLVM library?

  • Support for the latest LLVM (!)
  • Support for latest GHCs

TODO

  • Add support for remaining instructions as needed
  • SIMD support, combinators
  • Support API with more compile time checks?
  • Documentation