Crate calyx_utils

Source
Expand description

Shared utilities for the Calyx compiler.

Structs§

BoolIdx
Edge weight used for the graph nodes
Error
Errors generated by the compiler
FileIdx
Handle to a file in a PositionTable The index refers to the index in the PositionTable::files vector.
GPosIdx
A position index backed by a global PositionTable
GlobalPositionTable
The global position table
Id
Represents an identifier in a Calyx program
NameGenerator
Simple HashMap-based name generator that generates new names for each prefix.
PosIdx
Handle to a position in a PositionTable The index refers to the index in the PositionTable::indices vector.
PositionTable
Source position information for a Calyx program.
WeightGraph
Weight graph provides a wrapper over a Graph that allows adding edges using the NodeWeight type T (petgraph only allows adding edges using NodeIndex). Additionally, the edges are not allowed to have any weights.

Enums§

OutputFile
Possible choices for output streams. Used by the -o option to the compiler.

Traits§

GetName
A trait representing something in the IR that has a name.
WithPos
An IR node that may contain position information.

Functions§

bits_needed_for
Number of bits needed to represent a number.

Type Aliases§

CalyxResult
Convience wrapper to represent success or meaningul compiler error.
GSym
Idx
Index into a WeightGraph