Contents

class

SushiAI::Graph::FusionReport

Records which subtrees collapsed and which were refused.

Declared in
include/SushiAI/graph/fusion.hpp

Public member functions

SushiRuntime::span< const FusedSubtree > fused() const noexcept

Every chain that became one node.

SushiRuntime::span< const DeclinedFusion > declined() const noexcept

Every chain that matched and was refused.

std::size_t nodes_before() const noexcept

How many nodes the graph had before the pass.

std::size_t nodes_after() const noexcept

How many it has after.

bool enabled() const noexcept

Whether the pass was allowed to run at all.

std::size_t count(FusedForm form) const noexcept

How many nodes of form were produced.

Parameters

form

The catalog entry to count.

Returns

The number of matches.

std::string to_string() const

A multi-line human-readable summary; empty when nothing happened.