Skip to main content

morok_codegen/llvm/gpu/
mod.rs

1//! GPU-specific LLVM IR text generation.
2//!
3//! Placeholder for future GPU backends (HIP, CUDA, Metal).
4//! When implementing GPU support, see Tinygrad's AMDLLVMRenderer for patterns:
5//! - Work item IDs: @llvm.amdgcn.workgroup.id.x / @llvm.amdgcn.workitem.id.x
6//! - Barriers: @llvm.amdgcn.s.barrier() with fences
7//! - Shared memory: addrspace(3) global
8//! - WMMA: @llvm.amdgcn.wmma / @llvm.amdgcn.mfma intrinsics
9
10pub mod ops;
11
12pub use ops::render_uop;