taichi.lang.ast.ast_transformer_utils

Module Contents

Classes

Builder

VariableScopeGuard

StaticScopeStatus

StaticScopeGuard

NonStaticControlFlowStatus

NonStaticControlFlowGuard

LoopStatus

Generic enumeration.

LoopScopeAttribute

LoopScopeGuard

ASTTransformerContext

class taichi.lang.ast.ast_transformer_utils.Builder
class taichi.lang.ast.ast_transformer_utils.VariableScopeGuard(scopes)
class taichi.lang.ast.ast_transformer_utils.StaticScopeStatus
class taichi.lang.ast.ast_transformer_utils.StaticScopeGuard(status)
class taichi.lang.ast.ast_transformer_utils.NonStaticControlFlowStatus
class taichi.lang.ast.ast_transformer_utils.NonStaticControlFlowGuard(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, ast_builder=None)
variable_scope_guard(self)
loop_scope_guard(self, is_static=False)
non_static_control_flow_guard(self)
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_control_flow(self)
is_in_static_scope(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)