Skip to content

Code Generation

Lowering PyPTO IR to the two artifacts a compiled program consists of: device kernels and the host-side orchestration that launches them.

Both generators follow the same design principle — a strict 1-to-1 mapping from IR to generated code. Anything that needs a decision was already decided by a pass.

Page What it covers
PTO Codegen Generating PTO-ISA dialect MLIR from PyPTO IR
Orchestration Code Generation Generating the host-side C++ that submits tasks to the runtime

See Also