hugr_core::hugr

Module rewrite

source
Expand description

Rewrite operations on the HUGR - replacement, outlining, etc.

Re-exports§

Modules§

  • Rewrite operations involving Const and LoadConst operations
  • A rewrite that inlines a DFG node, moving all children of the DFG except Input+Output into the DFG’s parent, and deleting the DFG along with its Input + Output
  • Implementation of the InsertIdentity operation.
  • Rewrite for inserting a CFG-node into the hierarchy containing a subsection of an existing CFG
  • Implementation of the Replace operation.
  • Implementation of the SimpleReplace operation.

Structs§

  • Wraps any rewrite into a transaction (i.e. that has no effect upon failure)

Traits§

  • An operation that can be applied to mutate a Hugr