GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
chaiscript::optimizer Namespace Reference

Classes

struct  Optimizer
struct  Return
struct  Block
struct  Dead_Code
struct  Unused_Return
struct  Assign_Decl
struct  If
struct  Partial_Fold
struct  Constant_Fold
struct  For_Loop

Typedefs

typedef Optimizer< optimizer::Partial_Fold, optimizer::Unused_Return, optimizer::Constant_Fold, optimizer::If, optimizer::Return, optimizer::Dead_Code, optimizer::Block, optimizer::For_Loop, optimizer::Assign_Decl > Optimizer_Default

Functions

template<typename T>
eval::AST_Node_Impl< T > & child_at (eval::AST_Node_Impl< T > &node, const size_t offset)
template<typename T>
const eval::AST_Node_Impl< T > & child_at (const eval::AST_Node_Impl< T > &node, const size_t offset)
template<typename T>
auto child_count (const eval::AST_Node_Impl< T > &node)
template<typename T, typename Callable>
auto make_compiled_node (eval::AST_Node_Impl_Ptr< T > original_node, std::vector< eval::AST_Node_Impl_Ptr< T > > children, Callable callable)
template<typename T>
bool contains_var_decl_in_scope (const eval::AST_Node_Impl< T > &node)

Typedef Documentation

◆ Optimizer_Default

Function Documentation

◆ child_at() [1/2]

template<typename T>
const eval::AST_Node_Impl< T > & chaiscript::optimizer::child_at ( const eval::AST_Node_Impl< T > & node,
const size_t offset )

◆ child_at() [2/2]

template<typename T>
eval::AST_Node_Impl< T > & chaiscript::optimizer::child_at ( eval::AST_Node_Impl< T > & node,
const size_t offset )
Here is the caller graph for this function:

◆ child_count()

template<typename T>
auto chaiscript::optimizer::child_count ( const eval::AST_Node_Impl< T > & node)
Here is the caller graph for this function:

◆ contains_var_decl_in_scope()

template<typename T>
bool chaiscript::optimizer::contains_var_decl_in_scope ( const eval::AST_Node_Impl< T > & node)
Here is the caller graph for this function:

◆ make_compiled_node()

template<typename T, typename Callable>
auto chaiscript::optimizer::make_compiled_node ( eval::AST_Node_Impl_Ptr< T > original_node,
std::vector< eval::AST_Node_Impl_Ptr< T > > children,
Callable callable )
Here is the caller graph for this function: