Skip to main content

Module llvm

Module llvm 

Source
Expand description

LLVM IR code generation.

This module generates LLVM IR code from optimized UOp graphs.

§Module Structure

  • common/: Shared utilities (types, ctx) for CPU and GPU
  • cpu/: CPU-specific rendering
  • gpu/: Future GPU-specific rendering (HIP, CUDA, Metal)
  • text/: Main entry point that orchestrates rendering

Re-exports§

pub use cpu::render_uop as cpu_render_uop;
pub use text::LlvmTextRenderer;

Modules§

common
Common utilities for LLVM IR text generation.
cpu
CPU-specific LLVM IR text generation.
gpu
GPU-specific LLVM IR text generation.
text
Text-based LLVM IR code generation (main entry point).