Function sequant::eval::detail::current_scope(eval::BatchContext const&)¶
Defined in File ordered_executor.hpp
Function Documentation¶
-
inline CellScope sequant::eval::detail::current_scope(eval::BatchContext const &ectx)¶
The
CellScopeof the current point in the schedule walk — enclosing loop instances outermost-first, one{level.key(), level.latitude_ordinal} entry per already-openedectxlevel, plus (the two-argument overload)block'sown{level.key(), latitude_ordinal} entry appended last — the one construction every table lookup this file makes (build_cell_at/assemble_cell_at) goes through, so a scope a lookup uses here and the scopecell_table_builder.hpp'semit_cellsrecorded for the same point (an identical per-level construction) can never drift apart.BatchContextEntryhas no separate flat latitude field (onlylevel), so an enclosing entry readslevel.latitude_ordinal;block'sown entry reads its flatlatitude_ordinal, mirroringemit_cells'child.latitude_ordinalexactly (the two are the same value by construction, but this keeps the two constructions textually identical rather than merely numerically equal).Note
Qualified as
eval::BatchContext(cell_registry.hpp), not the bareBatchContextthis namespace’s owndetailscope already binds to the unrelated alias in peak_profile.hpp (asvector<pair<Index,pair<size_t,size_t>>>) — unqualified lookup from insidesequant::eval::detailfinds that closer name first, and it is not the same type asCacheManager<N, FHC>::BatchContext(the typeectxactually has at every call site here).