#ir #compiler

yanked futil

Compiler Infrastructure for Hardware Accelerator Generation

2 releases

0.1.2 Aug 30, 2021
0.1.1 Aug 30, 2021

#230 in Programming languages

Custom license

1MB
23K SLoC

Python 14K SLoC // 0.2% comments Rust 5.5K SLoC // 0.0% comments SystemVerilog 2.5K SLoC // 0.1% comments JavaScript 274 SLoC // 0.1% comments Vim script 134 SLoC Emacs Lisp 129 SLoC // 0.3% comments TCL 126 SLoC // 0.4% comments C++ 70 SLoC // 0.1% comments Shell 55 SLoC // 0.1% comments INI 21 SLoC

A Compiler Infrastructure for Accelerator Generators

Calyx is an intermediate language and infrastructure for building compilers that generate custom hardware accelerators.

See the Calyx website, language documentation and the documentation for the source code for more information. Calyx's design is based on our paper.

Installation

Quick

If you want to try out the compiler, install it using cargo:

cargo install futil

This will install the futil binary which includes the calyx frontend, optimization passes, and several backends.

Follow the getting started instructions.

Organization

This repository contains the source code for the following:

  1. calyx (calyx/): The intermediate representation used for hardware accelerator generation.
  2. futil (src/): The compiler infrastructure for compiling Calyx programs. If calyx is like LLVM, then futil is Clang.
  3. Calyx debugger (interp/): An interpreter and debugger for Calyx.
  4. fud, The Calyx driver: Utility tool that wraps various hardware toolchains.

Dependencies

~10MB
~186K SLoC