Expand description
Shared utilities for the Calyx compiler.
Re-exports§
pub use math::bits_needed_for;
Modules§
- float
- Implement parsing and generation for floating point constants used by std_float_const.
- math
- math_
utilities
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
- Multi
Error - A collection of errors generated by the compiler
- 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.
- PosString
- A positioned string.
- 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.
Type Aliases§
- Calyx
Result - Convience wrapper to represent success or meaningul compiler error.
- GSym
- Idx
- Index into a WeightGraph