Skip to main content

Module ops

Module ops 

Source
Expand description

CPU-specific LLVM IR operation rendering.

Generates LLVM IR strings for individual UOp operations on CPU. Based on Tinygrad’s PatternMatcher templates in llvmir.py.

Functions§

reduce_identity
Get identity element for reduce operation.
render_uop
Render a UOp to LLVM IR string.