Home
last modified time | relevance | path

Searched refs:scope_stack_ (Results 1 – 5 of 5) sorted by relevance

/third_party/mindspore/mindspore/core/ir/
Dscope.cc23 scope_stack_.push(scope); in EnterScope()
28 if (scope != kDefaultScope && !scope_stack_.empty()) { in LeaveScope()
29 scope_stack_.pop(); in LeaveScope()
34 if (scope_stack_.empty()) { in GetCurrentScope()
37 return scope_stack_.top(); in GetCurrentScope()
40 while (!scope_stack_.empty()) { in ClearScope()
41 scope_stack_.pop(); in ClearScope()
Dscope.h56 std::stack<ScopePtr> scope_stack_; variable
/third_party/skia/third_party/externals/tint/src/resolver/
Ddependency_graph.cc134 scope_stack_.Set(it.first, it.second->node); in DependencyScanner()
176 scope_stack_.Push(); in TraverseFunction()
177 TINT_DEFER(scope_stack_.Pop()); in TraverseFunction()
180 if (auto* shadows = scope_stack_.Get(param->symbol)) { in TraverseFunction()
212 scope_stack_.Push(); in TraverseStatement()
213 TINT_DEFER(scope_stack_.Pop()); in TraverseStatement()
222 scope_stack_.Push(); in TraverseStatement()
223 TINT_DEFER(scope_stack_.Pop()); in TraverseStatement()
231 scope_stack_.Push(); in TraverseStatement()
232 TINT_DEFER(scope_stack_.Pop()); in TraverseStatement()
[all …]
/third_party/skia/third_party/externals/tint/src/writer/spirv/
Dbuilder.cc298 : builder_(ProgramBuilder::Wrap(program)), scope_stack_({}) {} in Builder()
476 uint32_t var_id = scope_stack_.Get(var->Declaration()->symbol); in GenerateEntryPoint()
621 scope_stack_.Push(); in GenerateFunction()
622 TINT_DEFER(scope_stack_.Pop()); in GenerateFunction()
645 scope_stack_.Set(param->Declaration()->symbol, param_id); in GenerateFunction()
722 scope_stack_.Set(var->symbol, init_id); in GenerateFunctionVariable()
756 scope_stack_.Set(var->symbol, var_id); in GenerateFunctionVariable()
813 scope_stack_.Set(var->symbol, init_id); in GenerateGlobalVariable()
908 scope_stack_.Set(var->symbol, var_id); in GenerateGlobalVariable()
1176 uint32_t val = scope_stack_.Get(expr->symbol); in GenerateIdentifierExpression()
[all …]
Dbuilder.h602 ScopeStack<uint32_t> scope_stack_; variable