pub fn compile_to_tenstorrent_concurrency(
source: &str,
) -> Result<MeshLowering<ConcurrencySpec>, String>Expand description
Recognize a producer/consumer pipe program and lower its CONCURRENCY onto the Tensix mesh — the task on one baby RISC-V, main on the other, the pipe as a circular buffer. Returns the recognized spec + the complete 2-core program, or an error if the program is not the recognized pattern (the caller then falls back to the sound single-core refusal). The mesh output is ≡ the VM’s deterministic interleaving.