/third_party/skia/third_party/externals/tint/src/inspector/ |
D | test_inspector_builder.cc | 68 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/ |
D | fold_trivial_single_use_lets.cc | 57 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()
|
D | for_loop_to_loop.cc | 31 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()
|
D | zero_init_workgroup_memory.cc | 182 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 …]
|
D | loop_to_for_loop.cc | 70 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()
|
D | vertex_pulling.cc | 284 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/ |
D | block_statement.cc | 26 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/ |
D | DSLStatement.cpp | 87 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/ |
D | cr-om-parser.c | 245 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/ |
D | DSLWriter.cpp | 104 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/ |
D | SeparateCompoundExpressions.cpp | 264 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/ |
D | parser_impl_test_helper.cc | 47 std::string ToString(const Program& program, const ast::StatementList& stmts) { in ToString() argument 49 for (const auto* stmt : stmts) { in ToString()
|
D | function.cc | 833 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/ |
D | generator_impl.h | 157 bool EmitStatements(const ast::StatementList& stmts); 161 bool EmitStatementsWithIndent(const ast::StatementList& stmts);
|
D | generator_impl.cc | 859 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/ |
D | DSLFunction.h | 64 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/ |
D | program_builder.cc | 134 const ast::StatementList stmts) { in WrapInFunction() argument 135 return Func("test_function", {}, ty.void_(), std::move(stmts), in WrapInFunction()
|
/third_party/python/Lib/test/ |
D | test_profile.py | 71 stmts = [ 79 for stmt in stmts:
|
/third_party/skia/third_party/externals/tint/src/writer/msl/ |
D | generator_impl.h | 288 bool EmitStatements(const ast::StatementList& stmts); 292 bool EmitStatementsWithIndent(const ast::StatementList& stmts);
|
/third_party/skia/third_party/externals/tint/src/reader/wgsl/ |
D | parser_impl.cc | 1538 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/ |
D | generator_impl.h | 93 bool EmitStatements(const ast::StatementList& stmts); 97 bool EmitStatementsWithIndent(const ast::StatementList& stmts);
|
/third_party/skia/third_party/externals/tint/src/writer/hlsl/ |
D | generator_impl.h | 116 bool EmitStatements(const ast::StatementList& stmts); 120 bool EmitStatementsWithIndent(const ast::StatementList& stmts);
|
/third_party/ltp/tools/sparse/sparse-src/ |
D | parse.h | 68 struct statement_list *stmts; member
|
/third_party/python/Python/ |
D | ast_opt.c | 445 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/ |
D | IntermRebuild.cpp | 697 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()
|