IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Mojo function

apply_phase_recipe

apply_phase_recipe(body: List[OpDesc], steps: List[PhaseStep], config: PipelineConfig, phase: Phase) -> List[ScheduleEntry]

Evaluate a phase recipe against a body, producing ScheduleEntries.

Walks the recipe steps in order. For each EMIT step, scans the body for ops matching the step's role and predicates, then emits them as ScheduleEntry values. BARRIER and FENCE steps emit infrastructure ops.

Returns:

List[ScheduleEntry]