Module ops

Source
Expand description

The operation types for the HUGR.

Re-exports§

pub use constant::Const;
pub use constant::Value;
pub use controlflow::BasicBlock;
pub use controlflow::Case;
pub use controlflow::Conditional;
pub use controlflow::DataflowBlock;
pub use controlflow::ExitBlock;
pub use controlflow::TailLoop;
pub use controlflow::CFG;
pub use custom::ExtensionOp;
pub use custom::OpaqueOp;
pub use dataflow::Call;
pub use dataflow::CallIndirect;
pub use dataflow::DataflowOpTrait;
pub use dataflow::DataflowParent;
pub use dataflow::Input;
pub use dataflow::LoadConstant;
pub use dataflow::LoadFunction;
pub use dataflow::Output;
pub use dataflow::DFG;
pub use module::AliasDecl;
pub use module::AliasDefn;
pub use module::FuncDecl;
pub use module::FuncDefn;
pub use module::Module;
pub use sum::Tag;
pub use tag::OpTag;

Modules§

constant
Constant value definitions.
controlflow
Control flow operations.
custom
Extensible operations.
dataflow
Dataflow operations.
handle
Handles to nodes in HUGR.
module
Module-level operations
sum
Definition of dataflow operations with no children.
tag
Tags for sets of operation kinds.
validate
Definitions for validating hugr nodes according to their operation type.

Enums§

OpType
The concrete operation types for a node in the HUGR.

Constants§

DEFAULT_OPTYPE
The default OpType (as returned by Default::default)

Traits§

NamedOp
Trait for setting name of OpType variants.
OpParent
Properties of child graphs of ops, if the op has children.
OpTrait
Trait implemented by all OpType variants.
StaticTag
Trait statically querying the tag of an operation.
ValidateOp
Methods for Ops to validate themselves and children

Type Aliases§

OpName
A unique identifier for a operation.
OpNameRef
Slice of a OpName operation identifier.