Crate calyx_utils
source · [−]Expand description
Shared utilities for the Calyx compiler.
Modules
Implement parsing and generation for floating point constants used by std_float_const.
Structs
Edge weight used for the graph nodes
Errors generated by the compiler
Handle to a file in a PositionTable
The index refers to the index in the PositionTable::files vector.
A position index backed by a global PositionTable
The global position table
Represents an identifier in a Calyx program
A collection of errors generated by the compiler
Simple HashMap-based name generator that generates new names for each
prefix.
Handle to a position in a PositionTable
The index refers to the index in the PositionTable::indices vector.
A positioned string.
Source position information for a Calyx program.
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
Possible choices for output streams. Used by the
-o
option to the compiler.Traits
A trait representing something in the IR that has a name.
An IR node that may contain position information.
Functions
Number of bits needed to represent a number.
Type Definitions
Convience wrapper to represent success or meaningul compiler error.
Index into a WeightGraph