pub struct PatternTree {
pub root: PatternNode,
pub params: FusedOpParams,
}Expand description
A declarative subgraph pattern: the §3 grammar root plus the
FusedOpParams to stamp on the matched fused node. The rule engine
(crate::opt::FusionRule / PatternKind::Declarative) walks root
against the graph (via crate::jit::match_region) and emits
Op::Fused(id, params).
Fields§
§root: PatternNodeThe region/pattern root (the subgraph SINK, fkc-fusion-patterns §3a.1).
params: FusedOpParamsThe per-instance params stamped on the emitted fused node. A
parameterless declarative op carries its unit variant; scalar-param ops
recover their payload via the extract: layer (a follow-up) — for now
the template lives here.
Trait Implementations§
Source§impl Clone for PatternTree
impl Clone for PatternTree
Auto Trait Implementations§
impl Freeze for PatternTree
impl RefUnwindSafe for PatternTree
impl Send for PatternTree
impl Sync for PatternTree
impl Unpin for PatternTree
impl UnsafeUnpin for PatternTree
impl UnwindSafe for PatternTree
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more