//! KIR โ Kernel IR for data-parallel GPU targets.
//!
//! KIR is not a separate IR representation โ it takes TIR directly
//! and wraps it in a GPU compute kernel. The program stays scalar;
//! parallelism is across program instances, not within one execution.
//!
//! Pipeline:
//! ```text
//! AST โ TIR โโ StackLowering โ Vec<String> (stack targets)
//! โโ LIR โ RegisterLow โ Vec<u8> (register targets)
//! โโ TreeLowering โ Noun (tree targets: Nock)
//! โโ KIR โ KernelLow โ String (GPU kernel source)
//! ```
//!
//! Each GPU thread runs one copy of the Trident program:
//! - ReadIo โ buffer[thread_id * input_width + i]
//! - WriteIo โ buffer[thread_id * output_width + i]
//! - All other ops โ scalar computation per thread
//!
//! Supported targets:
//! - CUDA (PTX) โ NVIDIA GPUs
//! - Metal (MSL) โ Apple Silicon GPUs
//! - Vulkan (SPIR-V) โ cross-platform GPUs
trident/src/ir/kir/mod.rs
ฯ 0.0%