taichi.lang.ast.ast_transformer_utils
¶
Module Contents¶
Classes¶
Generic enumeration. |
|
- class taichi.lang.ast.ast_transformer_utils.Builder¶
- class taichi.lang.ast.ast_transformer_utils.VariableScopeGuard(scopes)¶
- class taichi.lang.ast.ast_transformer_utils.NonStaticStatus¶
- class taichi.lang.ast.ast_transformer_utils.NonStaticScopeGuard(status)¶
- class taichi.lang.ast.ast_transformer_utils.LoopStatus¶
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- Normal = 0¶
- Break = 1¶
- Continue = 2¶
- class taichi.lang.ast.ast_transformer_utils.LoopScopeAttribute(is_static)¶
- class taichi.lang.ast.ast_transformer_utils.LoopScopeGuard(scopes, non_static_guard=None)¶
- class taichi.lang.ast.ast_transformer_utils.ASTTransformerContext(excluded_parameters=(), is_kernel=True, func=None, arg_features=None, global_vars=None, argument_data=None, file=None, src=None, start_lineno=None)¶
- variable_scope_guard(self)¶
- loop_scope_guard(self, is_static=False)¶
- non_static_scope_guard(self)¶
- current_scope(self)¶
- current_loop_scope(self)¶
- loop_status(self)¶
- set_loop_status(self, status)¶
- is_in_static_for(self)¶
- is_in_non_static(self)¶
- is_var_declared(self, name)¶
- create_variable(self, name, var)¶
- check_loop_var(self, loop_var)¶
- get_var_by_name(self, name)¶
- get_pos_info(self, node)¶