Skip to content

Assignments 13 sched

Mugundan edited this page Nov 27, 2026 · 1 revision

Stage 12: Scheduling Model

Relevant source files

The following files were used as context for generating this wiki page:

Give the scheduler real latencies for an imagined in-order Toy core.

Purpose and Scope

ToySchedule.td types on every instruction, a ToyModel, ProcessorModel<"toy2", ...>, enableMachineScheduler.

Read First

Tasks

  1. Model: IssueWidth = 1, MicroOpBufferSize = 0, load latency 3, multiply latency 4, CompleteModel = 1.
  2. Resources: one ALU, one multiplier, one load/store unit.

Tests

The dot-product function from the scheduling walkthroughs: compare -stop-before/after=machine-scheduler with -mcpu=toy2; loads should move ahead of the multiplies that use them.

Done When

  • TableGen reports no missing scheduling info
  • Reordering visible in MIR

Next: stage 13. All Toy code and expected output on this page are illustrative, not LLVM source and not tool output; your exact output may differ.

Start here

Computer Organization & Architecture

Hexagon ISA

Operating Systems

C++ for LLVM Development

LLVM IR

SelectionDAG

Backend Assignments

Target Bring-up

Calling Conventions

Frame Lowering

MC Layer

Register Allocation

Scheduling

Clone this wiki locally