Skip to main content

Module ops

Module ops 

Source
Expand description

C source code rendering for individual UOp operations.

Generates C expressions/statements for each Op variant. Uses SSA inlining: single-use values are inlined as expressions, multi-use values get local variable declarations.

Structs§

CContext
Context for C code generation, tracking variable names and SSA inlining.

Functions§

count_references
Count references for each UOp ID in the linearized stream. Used to determine which values should be inlined vs declared.
render_uop
Render a single UOp to C source code.