Home
last modified time | relevance | path

Searched refs:stmts (Results 1 - 25 of 78) sorted by relevance

1234

/third_party/skia/third_party/externals/tint/src/inspector/
H A 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()
236 ast::StatementList stmts; MakeSamplerReferenceBodyFunction() local
256 ast::StatementList stmts; MakeSamplerReferenceBodyFunction() local
279 ast::StatementList stmts; MakeComparisonSamplerReferenceBodyFunction() local
344 ast::StatementList stmts; MakeStorageTextureBodyFunction() local
[all...]
/third_party/skia/third_party/externals/tint/src/transform/
H A 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()
H A Dfor_loop_to_loop.cc31 ast::StatementList stmts; in Run()
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()
H A 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 in DeclareArrayIndices()
[all...]
H A Dloop_to_for_loop.cc70 auto& stmts = loop->body->statements; in Run()
71 if (stmts.empty()) { in Run()
74 auto* if_stmt = stmts[0]->As<ast::IfStatement>(); in Run()
/third_party/skia/third_party/externals/tint/src/ast/
H A Dblock_statement.cc26 const StatementList& stmts) in BlockStatement()
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()
24 BlockStatement(ProgramID pid, const Source& src, const StatementList& stmts) BlockStatement() argument
/third_party/skia/src/sksl/dsl/
H A 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/skia/src/sksl/dsl/priv/
H A 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/node/deps/v8/src/ast/
H A Dsource-range-ast-visitor.cc20 ZonePtrList<Statement>* stmts = stmt->statements(); in VisitBlock() local
24 MaybeRemoveLastContinuationRange(stmts); in VisitBlock()
38 ZonePtrList<Statement>* stmts = expr->body(); in VisitFunctionLiteral() local
39 MaybeRemoveLastContinuationRange(stmts); in VisitFunctionLiteral()
H A Dast-traversal-visitor.h115 const ZonePtrList<Statement>* stmts) { in VisitStatements()
116 for (int i = 0; i < stmts->length(); ++i) { in VisitStatements()
117 Statement* stmt = stmts->at(i); in VisitStatements()
207 const ZonePtrList<Statement>* stmts = clause->statements(); in VisitSwitchStatement() local
208 RECURSE(VisitStatements(stmts)); in VisitSwitchStatement()
114 VisitStatements( const ZonePtrList<Statement>* stmts) VisitStatements() argument
H A Dsource-range-ast-visitor.h44 void MaybeRemoveLastContinuationRange(ZonePtrList<Statement>* stmts);
/third_party/rust/crates/syn/tests/
H A Dtest_stmt.rs81 stmts: [], in test_none_group()
87 let stmts = Block::parse_within.parse2(tokens).unwrap(); in test_none_group()
88 snapshot!(stmts, @r###" in test_none_group()
165 stmts: [ in test_let_else()
202 stmts: [ in test_macros()
275 let stmts = Block::parse_within.parse2(tokens).unwrap(); in test_early_parse_loop()
277 snapshot!(stmts, @r###" in test_early_parse_loop()
282 stmts: [], in test_early_parse_loop()
299 let stmts = Block::parse_within.parse2(tokens).unwrap(); in test_early_parse_loop()
301 snapshot!(stmts, in test_early_parse_loop()
[all...]
H A Dtest_parse_quote.rs145 let stmts: Vec<Stmt> = parse_quote! { in test_vec_stmt()
149 snapshot!(stmts, @r###" in test_vec_stmt()
/third_party/node/deps/v8/tools/cppgc/
H A Dgen_cmake.py119 def _Target(self, target_type, target, stmts):
120 stmts = self._StatementList(stmts)
121 return self.builder.BuildTarget(target_type, target, stmts)
123 def _StatementList(self, stmts):
125 for stmt in stmts:
157 # Ignore conditions with empty then stmts.
/third_party/rust/crates/syn/src/
H A Dstmt.rs9 pub stmts: Vec<Stmt>,
106 /// stmts: Vec<Stmt>,
118 /// let stmts = content.call(Block::parse_within)?;
129 /// stmts,
136 let mut stmts = Vec::new(); in parse_within() variables
139 stmts.push(Stmt::Expr(Expr::Verbatim(TokenStream::new()), semi)); in parse_within()
152 stmts.push(stmt); in parse_within()
159 Ok(stmts) in parse_within()
169 stmts: content.call(Block::parse_within)?, in parse()
406 tokens.append_all(&self.stmts); in to_tokens()
[all...]
H A Dexpr.rs2187 let stmts = content.call(Block::parse_within)?; in parse()
2196 body: Block { brace_token, stmts }, in parse()
2212 let stmts = content.call(Block::parse_within)?; in parse()
2218 body: Block { brace_token, stmts }, in parse()
2500 let stmts = content.call(Block::parse_within)?; in parse()
2507 body: Block { brace_token, stmts }, in parse()
2521 let stmts = content.call(Block::parse_within)?; in parse()
2526 block: Block { brace_token, stmts }, in parse()
2713 let stmts = content.call(Block::parse_within)?; in parse()
2718 block: Block { brace_token, stmts }, in parse()
[all...]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/
H A 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()); variable
310 seq.reserve(stmts.size());
311 pushStmtsIntoBlock(node, stmts);
/third_party/skia/third_party/externals/tint/src/reader/spirv/
H A 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()
H A Dfunction.cc833 top.GetConstruct(), end_id, [=](const ast::StatementList& stmts) { in PushGuard()
834 builder->body = create<ast::BlockStatement>(Source{}, stmts); in PushGuard()
846 top.GetConstruct(), end_id, [=](const ast::StatementList& stmts) { in PushTrueGuard()
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()
3093 auto* stmts = create<ast::BlockStatement>( EmitSwitchStart() local
[all...]
/third_party/skia/third_party/externals/tint/src/writer/wgsl/
H A Dgenerator_impl.h155 /// @param stmts the statements to emit
157 bool EmitStatements(const ast::StatementList& stmts);
159 /// @param stmts the statements to emit
161 bool EmitStatementsWithIndent(const ast::StatementList& stmts);
/third_party/skia/include/sksl/
H A DDSLFunction.h64 void define(Stmt... stmts) { in define() argument
65 DSLBlock block = DSLBlock(DSLStatement(std::move(stmts))...); in define()
/third_party/python/Lib/test/
H A Dtest_profile.py71 stmts = [
79 for stmt in stmts:
/third_party/skia/third_party/externals/tint/src/
H A Dprogram_builder.cc134 const ast::StatementList stmts) { in WrapInFunction()
135 return Func("test_function", {}, ty.void_(), std::move(stmts), in WrapInFunction()
133 WrapInFunction( const ast::StatementList stmts) WrapInFunction() argument
/third_party/skia/third_party/externals/tint/src/writer/msl/
H A Dgenerator_impl.h286 /// @param stmts the statement list
288 bool EmitStatements(const ast::StatementList& stmts);
290 /// @param stmts the statement list
292 bool EmitStatementsWithIndent(const ast::StatementList& stmts);
/third_party/skia/third_party/externals/tint/src/reader/wgsl/
H A Dparser_impl.cc1538 auto stmts = expect_statements(); in expect_body_stmt()
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...]

Completed in 20 milliseconds

1234