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
- Global
Position Table - The global position table
- Id
- Represents an identifier in a Calyx program
- Name
Generator - 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.
- Position
Table - Source position information for a Calyx program.
- Weight
Graph - Weight graph provides a wrapper over a Graph that allows adding edges using
the NodeWeight type
T
(petgraph only allows adding edges usingNodeIndex
). Additionally, the edges are not allowed to have any weights.
Enums§
- Output
File - 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§
- Calyx
Result - Convience wrapper to represent success or meaningul compiler error.
- GSym
- Idx
- Index into a WeightGraph