Skip to main content

opt_stack_layout_generation

Function opt_stack_layout_generation 

Source
pub fn opt_stack_layout_generation(
    physical_registers: &str,
    out_spill_offsets: &str,
    num_regs: Expr,
) -> Program
Expand description

GPU SIMT Stack Layout Generator (Prologue/Epilogue Spiller)

When variables cannot fit into the physical 16 registers of x86_64, they “spill”. This module generates precise Main Memory stack offsets relative to %rbp (base pointer) and emits push/pop sequences using SIMT inclusive scan prefix offsets.