Crate joule_hir

Crate joule_hir 

Source
Expand description

High-level Intermediate Representation (HIR) for Joule

HIR is a typed, desugared representation of the AST. It includes:

  • Resolved types for all expressions
  • Resolved names (symbols point to definitions)
  • Desugared syntax (no syntactic sugar)
  • Type annotations on all nodes
  • Energy budget metadata from #[energy_budget(...)] attributes

Re-exports§

pub use energy::EnergyMetadata;
pub use energy::EnergyViolation;
pub use energy::EnergyViolationKind;
pub use energy::HirEnergyBudget;

Modules§

energy
HIR-level energy budget representation

Structs§

Block
Block expression
Capture
Captured variable from enclosing scope
Const
Const declaration
EffectDef
Algebraic effect definition in HIR
EffectOpDef
A single operation within an effect definition
EnergyBudgetConstraint
Energy budget constraint for block-level energy checking
Enum
Enum definition
Expr
Expression (with explicit types)
Field
Struct field
FieldInit
Field initialization
FieldPattern
Function
Function definition (with resolved types)
FunctionAttributes
Parsed function attributes for code generation decisions
Hir
A complete HIR module (file)
HirEffectHandler
An effect handler clause in the HIR
HirId
Unique identifier for HIR nodes
HirSelectArm
Select arm for channel selection
HirSupervisorChild
Supervisor child specification in HIR
HirThermalArm
Thermal adaptation arm
Impl
Impl block
InferTy
Type variable for type inference
MatchArm
Match arm
Param
Function parameter
Static
Static declaration
Struct
Struct definition
SupervisorDef
Supervisor tree definition in HIR
Trait
Trait definition
TraitFunction
Variant
Enum variant

Enums§

BinOp
Binary operators
ExprKind
FloatTy
HirChildRestart
Child restart policy in HIR
HirIndexComponent
A single component of a multi-dimensional index in HIR.
HirSelectOperation
Channel operation in a select arm
HirSupervisorStrategy
Supervisor strategy in HIR
ImplItem
InlineHint
Inline hints for the compiler
IntTy
Item
Top-level items
LitValue
Literal value for pattern matching
Literal
Literal values
Pattern
Pattern (simplified from AST)
ProcessorTarget
Target processor for heterogeneous compilation
Statement
Statement
TraitItem
Ty
Type representation in HIR
UintTy
UnOp
Unary operators
VariantFields