Skip to main content

Module cpp

Module cpp 

Source
Expand description

C/C++ kernel parser producing HIR.

Parses a subset of C/C++ suitable for GPU kernels using line-based parsing for the restricted kernel subset. Supports __kernel functions, basic types, arithmetic, if/else, and array indexing.

Functionsยง

parse_cpp
Parse a C/C++ kernel source string into an HIR Kernel.