Impulse Graph C++ Engine 2.4.0
High-Performance Zero-Copy C-ABI Kernel and C++20 Fluent VM Engine
Loading...
Searching...
No Matches
impulse::cel::CelCompiler Class Reference

#include <impulse_cel.h>

Static Public Member Functions

static std::string to_impscheme (const std::shared_ptr< AstNode > &node, size_t depth=0)
static int resolve_math_func (const std::string &name)
static bool compile_stream_shader (const std::shared_ptr< AstNode > &expr, std::vector< impulse_instruction_t > &out_shader, uint16_t out_stream_reg=0, const std::unordered_map< std::string, uint16_t > *attr_name_to_id=nullptr, bool is_filter=false)
 Compiles a CEL AST into an Edge Stream Shader instruction sequence. Encloses instructions with OP_STREAM_FUNC_BEGIN (0xA1) and OP_STREAM_FUNC_END (0xA2).
static bool compile_node_vector_expr (const std::shared_ptr< AstNode > &expr, std::vector< impulse_instruction_t > &out_instructions, uint16_t out_reg, uint16_t &next_temp_reg, const std::unordered_map< std::string, uint16_t > *attr_name_to_id=nullptr, uint16_t domain_id=0)
 Compiles an in-domain node CEL projection into VM instructions operating on vector registers.

Static Public Attributes

static constexpr size_t MAX_PARSE_DEPTH = 256

Member Function Documentation

◆ compile_node_vector_expr()

bool impulse::cel::CelCompiler::compile_node_vector_expr ( const std::shared_ptr< AstNode > & expr,
std::vector< impulse_instruction_t > & out_instructions,
uint16_t out_reg,
uint16_t & next_temp_reg,
const std::unordered_map< std::string, uint16_t > * attr_name_to_id = nullptr,
uint16_t domain_id = 0 )
inlinestatic

Compiles an in-domain node CEL projection into VM instructions operating on vector registers.

◆ compile_stream_shader()

bool impulse::cel::CelCompiler::compile_stream_shader ( const std::shared_ptr< AstNode > & expr,
std::vector< impulse_instruction_t > & out_shader,
uint16_t out_stream_reg = 0,
const std::unordered_map< std::string, uint16_t > * attr_name_to_id = nullptr,
bool is_filter = false )
inlinestatic

Compiles a CEL AST into an Edge Stream Shader instruction sequence. Encloses instructions with OP_STREAM_FUNC_BEGIN (0xA1) and OP_STREAM_FUNC_END (0xA2).

◆ resolve_math_func()

int impulse::cel::CelCompiler::resolve_math_func ( const std::string & name)
inlinestatic

◆ to_impscheme()

std::string impulse::cel::CelCompiler::to_impscheme ( const std::shared_ptr< AstNode > & node,
size_t depth = 0 )
inlinestatic

Member Data Documentation

◆ MAX_PARSE_DEPTH

size_t impulse::cel::CelCompiler::MAX_PARSE_DEPTH = 256
staticconstexpr

The documentation for this class was generated from the following file: