Home
last modified time | relevance | path

Searched refs:stmts (Results 1 – 25 of 66) sorted by relevance

123

/third_party/skia/third_party/externals/tint/src/inspector/
Dtest_inspector_builder.cc68 ast::StatementList stmts; in MakePlainGlobalReferenceBodyFunction() local
69 stmts.emplace_back(Decl(Var("local_" + var, type))); in MakePlainGlobalReferenceBodyFunction()
70 stmts.emplace_back(Assign("local_" + var, var)); in MakePlainGlobalReferenceBodyFunction()
71 stmts.emplace_back(Return()); in MakePlainGlobalReferenceBodyFunction()
73 return Func(func, ast::VariableList(), ty.void_(), stmts, decorations); in MakePlainGlobalReferenceBodyFunction()
165 ast::StatementList stmts; in MakeStructVariableReferenceBodyFunction() local
172 stmts.emplace_back(Decl(Var("local" + member_name, member_type))); in MakeStructVariableReferenceBodyFunction()
181 stmts.emplace_back(Assign("local" + member_name, in MakeStructVariableReferenceBodyFunction()
185 stmts.emplace_back(Return()); in MakeStructVariableReferenceBodyFunction()
187 Func(func_name, ast::VariableList(), ty.void_(), stmts, in MakeStructVariableReferenceBodyFunction()
[all …]
/third_party/skia/third_party/externals/tint/src/transform/
Dfold_trivial_single_use_lets.cc57 auto& stmts = block->statements; in Run() local
58 for (size_t stmt_idx = 0; stmt_idx < stmts.size(); stmt_idx++) { in Run()
59 auto* stmt = stmts[stmt_idx]; in Run()
71 for (size_t i = stmt_idx; i < stmts.size(); i++) { in Run()
72 if (user_stmt == stmts[i]) { in Run()
74 ctx.Remove(stmts, let_decl); in Run()
77 if (!AsTrivialLetDecl(stmts[i])) { in Run()
Dfor_loop_to_loop.cc31 ast::StatementList stmts; in Run() local
42 stmts.emplace_back(ctx.dst->If(not_cond, break_body)); in Run()
45 stmts.emplace_back(ctx.Clone(stmt)); in Run()
53 auto* body = ctx.dst->Block(stmts); in Run()
Dzero_init_workgroup_memory.cc182 auto& stmts = stmts_by_num_iterations[s.num_iterations]; in Run() local
183 if (stmts.empty()) { in Run()
186 stmts.emplace_back(s); in Run()
192 auto& stmts = stmts_by_num_iterations[num_iterations]; in Run() local
196 for (auto& s : stmts) { in Run()
224 for (auto& s : stmts) { in Run()
240 for (auto& s : stmts) { in Run()
254 for (auto& s : stmts) { in Run()
344 ast::StatementList stmts; in DeclareArrayIndices() local
355 stmts.emplace_back(decl); in DeclareArrayIndices()
[all …]
Dloop_to_for_loop.cc70 auto& stmts = loop->body->statements; in Run() local
71 if (stmts.empty()) { in Run()
74 auto* if_stmt = stmts[0]->As<ast::IfStatement>(); in Run()
Dvertex_pulling.cc284 ast::StatementList stmts; in CreateVertexPullingPreamble() local
317 stmts.emplace_back(ctx.dst->Decl( in CreateVertexPullingPreamble()
402 stmts.emplace_back(ctx.dst->Assign(var.expr(), value)); in CreateVertexPullingPreamble()
406 if (stmts.empty()) { in CreateVertexPullingPreamble()
410 return ctx.dst->create<ast::BlockStatement>(stmts); in CreateVertexPullingPreamble()
/third_party/skia/third_party/externals/tint/src/ast/
Dblock_statement.cc26 const StatementList& stmts) in BlockStatement() argument
27 : Base(pid, src), statements(std::move(stmts)) { in BlockStatement()
41 auto stmts = ctx->Clone(statements); in Clone() local
42 return ctx->dst->create<BlockStatement>(src, stmts); in Clone()
/third_party/skia/src/sksl/dsl/
DDSLStatement.cpp87 StatementArray stmts; in operator ,() local
88 stmts.reserve_back(2); in operator ,()
89 stmts.push_back(left.release()); in operator ,()
90 stmts.push_back(right.release()); in operator ,()
91 return DSLStatement(SkSL::Block::MakeUnscoped(line, std::move(stmts))); in operator ,()
/third_party/gettext/libtextstyle/gnulib-local/lib/libcroco/
Dcr-om-parser.c245 CRStatement *stmts = NULL; in end_font_face() local
258 stmts = cr_statement_append (ctxt->stylesheet->statements, in end_font_face()
260 if (!stmts) in end_font_face()
263 ctxt->stylesheet->statements = stmts; in end_font_face()
264 stmts = NULL; in end_font_face()
276 if (!stmts) { in end_font_face()
277 cr_statement_destroy (stmts); in end_font_face()
278 stmts = NULL; in end_font_face()
467 CRStatement *stmts = NULL; in end_media() local
483 stmts = cr_statement_append (ctxt->stylesheet->statements, in end_media()
[all …]
/third_party/skia/src/sksl/dsl/priv/
DDSLWriter.cpp104 StatementArray stmts; in AddVarDeclaration() local
105 stmts.reserve_back(2); in AddVarDeclaration()
106 stmts.push_back(std::move(existing.fStatement)); in AddVarDeclaration()
107 stmts.push_back(Declare(additional).release()); in AddVarDeclaration()
108 existing.fStatement = SkSL::Block::MakeUnscoped(/*line=*/-1, std::move(stmts)); in AddVarDeclaration()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/
DSeparateCompoundExpressions.cpp264 void pushStmtsIntoBlock(TIntermBlock &block, std::vector<TIntermNode *> &stmts) in pushStmtsIntoBlock() argument
267 for (TIntermNode *stmt : stmts) in pushStmtsIntoBlock()
284 std::vector<TIntermNode *> stmts = std::move(getCurrStmts()); in buildBlockWithTailAssign() local
289 seq.reserve(1 + stmts.size()); in buildBlockWithTailAssign()
290 pushStmtsIntoBlock(block, stmts); in buildBlockWithTailAssign()
305 std::vector<TIntermNode *> stmts = std::move(getCurrStmts()); in visitBlockPost() local
310 seq.reserve(stmts.size()); in visitBlockPost()
311 pushStmtsIntoBlock(node, stmts); in visitBlockPost()
/third_party/skia/third_party/externals/tint/src/reader/spirv/
Dparser_impl_test_helper.cc47 std::string ToString(const Program& program, const ast::StatementList& stmts) { in ToString() argument
49 for (const auto* stmt : stmts) { in ToString()
Dfunction.cc833 top.GetConstruct(), end_id, [=](const ast::StatementList& stmts) { in PushGuard() argument
834 builder->body = create<ast::BlockStatement>(Source{}, stmts); in PushGuard()
846 top.GetConstruct(), end_id, [=](const ast::StatementList& stmts) { in PushTrueGuard() argument
847 builder->body = create<ast::BlockStatement>(Source{}, stmts); in PushTrueGuard()
1206 ast::StatementList stmts; in EmitEntryPointAsWrapper() local
1247 &(decl.params), &stmts); in EmitEntryPointAsWrapper()
1251 forced_param_type, &(decl.params), &stmts); in EmitEntryPointAsWrapper()
1259 stmts.push_back(create<ast::CallStatement>( in EmitEntryPointAsWrapper()
1352 stmts.push_back(create<ast::ReturnStatement>( in EmitEntryPointAsWrapper()
1358 auto* body = create<ast::BlockStatement>(source, stmts); in EmitEntryPointAsWrapper()
[all …]
/third_party/skia/third_party/externals/tint/src/writer/wgsl/
Dgenerator_impl.h157 bool EmitStatements(const ast::StatementList& stmts);
161 bool EmitStatementsWithIndent(const ast::StatementList& stmts);
Dgenerator_impl.cc859 bool GeneratorImpl::EmitStatements(const ast::StatementList& stmts) { in EmitStatements() argument
860 for (auto* s : stmts) { in EmitStatements()
868 bool GeneratorImpl::EmitStatementsWithIndent(const ast::StatementList& stmts) { in EmitStatementsWithIndent() argument
870 return EmitStatements(stmts); in EmitStatementsWithIndent()
/third_party/skia/include/sksl/
DDSLFunction.h64 void define(Stmt... stmts) { in define() argument
65 DSLBlock block = DSLBlock(DSLStatement(std::move(stmts))...); in define()
/third_party/skia/third_party/externals/tint/src/
Dprogram_builder.cc134 const ast::StatementList stmts) { in WrapInFunction() argument
135 return Func("test_function", {}, ty.void_(), std::move(stmts), in WrapInFunction()
/third_party/python/Lib/test/
Dtest_profile.py71 stmts = [
79 for stmt in stmts:
/third_party/skia/third_party/externals/tint/src/writer/msl/
Dgenerator_impl.h288 bool EmitStatements(const ast::StatementList& stmts);
292 bool EmitStatementsWithIndent(const ast::StatementList& stmts);
/third_party/skia/third_party/externals/tint/src/reader/wgsl/
Dparser_impl.cc1538 auto stmts = expect_statements(); in expect_body_stmt() local
1539 if (stmts.errored) in expect_body_stmt()
1541 return create<ast::BlockStatement>(Source{}, stmts.value); in expect_body_stmt()
1563 ast::StatementList stmts; in expect_statements() local
1570 stmts.emplace_back(stmt.value); in expect_statements()
1579 return stmts; in expect_statements()
1959 ast::StatementList stmts; in case_body() local
1966 stmts.emplace_back(create<ast::FallthroughStatement>(source)); in case_body()
1976 stmts.emplace_back(stmt.value); in case_body()
1979 return create<ast::BlockStatement>(Source{}, stmts); in case_body()
[all …]
/third_party/skia/third_party/externals/tint/src/writer/glsl/
Dgenerator_impl.h93 bool EmitStatements(const ast::StatementList& stmts);
97 bool EmitStatementsWithIndent(const ast::StatementList& stmts);
/third_party/skia/third_party/externals/tint/src/writer/hlsl/
Dgenerator_impl.h116 bool EmitStatements(const ast::StatementList& stmts);
120 bool EmitStatementsWithIndent(const ast::StatementList& stmts);
/third_party/ltp/tools/sparse/sparse-src/
Dparse.h68 struct statement_list *stmts; member
/third_party/python/Python/
Dast_opt.c445 astfold_body(asdl_stmt_seq *stmts, PyArena *ctx_, _PyASTOptimizeState *state) in astfold_body() argument
447 int docstring = _PyAST_GetDocString(stmts) != NULL; in astfold_body()
448 CALL_SEQ(astfold_stmt, stmt, stmts); in astfold_body()
449 if (!docstring && _PyAST_GetDocString(stmts) != NULL) { in astfold_body()
450 stmt_ty st = (stmt_ty)asdl_seq_GET(stmts, 0); in astfold_body()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
DIntermRebuild.cpp697 auto *const stmts = node.getStatementList(); in traverseSwitchChildren() local
698 ASSERT(stmts); in traverseSwitchChildren()
702 auto *const newStmts = traverseAnyAs<TIntermBlock>(*stmts); in traverseSwitchChildren()
705 if (newInit != init || newStmts != stmts) in traverseSwitchChildren()

123