8 releases

0.1.7 Oct 21, 2023
0.1.6 Oct 21, 2023
0.1.5 Jun 4, 2023
0.1.4 Apr 29, 2023
0.1.1 Sep 5, 2022

#198 in Programming languages

Download history 12/week @ 2024-02-16 217/week @ 2024-02-23 10/week @ 2024-03-01 5/week @ 2024-03-08 1/week @ 2024-03-15 61/week @ 2024-03-29

67 downloads per month

Apache-2.0

195KB
4.5K SLoC

Programming Languages Intermediate RepresentatiON

Status

pliron is an extensible compiler IR framework, inspired by MLIR and written in safe Rust.

Build and Test

  • Install the rust toolchain.

  • cargo build and cargo test should build the compiler and run the testsuite.

  • To see a simple IR constructed (by the print_simple test), use the following command:

    cargo test print_simple -- --show-output
    

    It should print something like:

    builtin.module @bar {
      block_0_0():
        builtin.func @foo: builtin.function <() -> (builtin.integer <si64>)> {
          entry():
            c0 = builtin.constant 0x0: builtin.integer <si64>
            llvm.return c0
        }
    }
    

Using the Library

pliron is currently in a nascent stage and not yet useful for real-world use. In the future it can be used by just adding a dependence to the crate in your Rust project.

Documentation

Dependencies

~4MB
~82K SLoC