Module calyx_opt::traversal

source ·
Expand description

Helpers for traversing Control programs

Structs

  • Define traversal order of components: pre-order, post-order, or none.

Enums

  • Action performed at the end of visiting a control statement.
  • The order in which the components are traversed.

Traits

  • Trait defining method that can be used to construct a Visitor from an ir::Context. This is useful when a pass needs to construct information using the context before visiting the components.
  • Trait that describes named things. Calling do_pass and do_pass_default. require this to be implemented.
  • Describes types that can be visited by things implementing Visitor. This performs a recursive walk of the tree.
  • The visiting interface for a ir::Control program. Contains two kinds of functions:

Type Definitions