Skip to main content

Module text

Module text 

Source
Expand description

Text-based LLVM IR code generation (main entry point).

This module generates LLVM IR as plain strings using format! macros, following Tinygrad’s approach in renderer/llvmir.py.

§Kernel Signature

Generates a single function with direct typed parameters and noalias align 32 buffer annotations:

define void @kernel(ptr noalias align 32 %buf0, ..., i32 %N) #0 { ... }

Structs§

LlvmTextRenderer
Text-based LLVM IR renderer.

Functions§

render