/third_party/skia/third_party/externals/tint/src/ast/ |
H A D | variable_decl_statement.cc | 19 TINT_INSTANTIATE_TYPEINFO(tint::ast::VariableDeclStatement); variable 24 VariableDeclStatement::VariableDeclStatement(ProgramID pid, in VariableDeclStatement() function in tint::ast::VariableDeclStatement 32 VariableDeclStatement::VariableDeclStatement(VariableDeclStatement&&) = default; 34 VariableDeclStatement::~VariableDeclStatement() = default; 36 const VariableDeclStatement* VariableDeclStatement [all...] |
H A D | variable_decl_statement.h | 25 class VariableDeclStatement class 26 : public Castable<VariableDeclStatement, Statement> { 32 VariableDeclStatement(ProgramID program_id, 36 VariableDeclStatement(VariableDeclStatement&&); 37 ~VariableDeclStatement() override; 43 const VariableDeclStatement* Clone(CloneContext* ctx) const override;
|
H A D | variable_decl_statement_test.cc | 29 auto* stmt = create<VariableDeclStatement>(var); in TEST_F() 37 create<VariableDeclStatement>(Source{Source::Location{20, 2}}, var); in TEST_F() 46 auto* stmt = create<VariableDeclStatement>(var); in TEST_F() 47 EXPECT_TRUE(stmt->Is<VariableDeclStatement>()); in TEST_F() 54 b.create<VariableDeclStatement>(nullptr); in TEST_F() 64 b1.create<VariableDeclStatement>( in TEST_F()
|
H A D | statement.cc | 80 if (Is<VariableDeclStatement>()) { in Name()
|
/third_party/skia/third_party/externals/tint/tools/src/substr/ |
H A D | substr_test.go | 77 body: `VariableDeclStatement{ 111 body: `VariableDeclStatement{ 121 VariableDeclStatement{ 131 VariableDeclStatement{ 141 VariableDeclStatement{ 151 VariableDeclStatement{ 162 substr: `VariableDeclStatement{ 172 VariableDeclStatement{ 182 VariableDeclStatement{ 192 VariableDeclStatement{ [all...] |
/third_party/skia/third_party/externals/tint/src/reader/wgsl/ |
H A D | parser_impl_variable_stmt_test.cc | 29 ASSERT_TRUE(e->Is<ast::VariableDeclStatement>()); in TEST_F() 48 ASSERT_TRUE(e->Is<ast::VariableDeclStatement>()); in TEST_F() 78 ASSERT_TRUE(e->Is<ast::VariableDeclStatement>()); in TEST_F() 96 ASSERT_TRUE(e->Is<ast::VariableDeclStatement>()); in TEST_F() 114 ASSERT_TRUE(e->Is<ast::VariableDeclStatement>()); in TEST_F() 132 ASSERT_TRUE(e->Is<ast::VariableDeclStatement>()); in TEST_F() 150 ASSERT_TRUE(e->Is<ast::VariableDeclStatement>()); in TEST_F()
|
H A D | parser_impl_for_stmt_test.cc | 60 ASSERT_TRUE(Is<ast::VariableDeclStatement>(fl->initializer)); in TEST_F() 61 auto* var = fl->initializer->As<ast::VariableDeclStatement>()->variable; in TEST_F() 77 ASSERT_TRUE(Is<ast::VariableDeclStatement>(fl->initializer)); in TEST_F() 78 auto* var = fl->initializer->As<ast::VariableDeclStatement>()->variable; in TEST_F() 93 ASSERT_TRUE(Is<ast::VariableDeclStatement>(fl->initializer)); in TEST_F() 94 auto* var = fl->initializer->As<ast::VariableDeclStatement>()->variable; in TEST_F()
|
H A D | parser_impl_case_body_test.cc | 42 EXPECT_TRUE(e->statements[0]->Is<ast::VariableDeclStatement>()); in TEST_F()
|
H A D | parser_impl_statement_test.cc | 109 ASSERT_TRUE(e->Is<ast::VariableDeclStatement>()); in TEST_F() 266 ->Is<ast::VariableDeclStatement>()); in TEST_F()
|
H A D | parser_impl.h | 41 class VariableDeclStatement; 521 Maybe<const ast::VariableDeclStatement*> variable_stmt();
|
/third_party/skia/third_party/externals/tint/fuzzers/tint_ast_fuzzer/mutations/ |
H A D | replace_identifier_test.cc | 55 main_fn_stmts[0]->As<ast::VariableDeclStatement>()->variable; in TEST() 59 main_fn_stmts[2]->As<ast::VariableDeclStatement>()->variable; in TEST() 63 main_fn_stmts[4]->As<ast::VariableDeclStatement>()->variable; in TEST() 201 ->As<ast::VariableDeclStatement>() in TEST() 237 ->As<ast::VariableDeclStatement>() in TEST() 499 ->As<ast::VariableDeclStatement>() in TEST() 620 ->As<ast::VariableDeclStatement>() in TEST() 656 ->As<ast::VariableDeclStatement>() in TEST() 665 ->As<ast::VariableDeclStatement>() in TEST()
|
/third_party/skia/third_party/externals/tint/src/transform/ |
H A D | fold_trivial_single_use_lets.cc | 30 const ast::VariableDeclStatement* AsTrivialLetDecl(const ast::Statement* stmt) { in AsTrivialLetDecl() 31 auto* var_decl = stmt->As<ast::VariableDeclStatement>(); in AsTrivialLetDecl()
|
H A D | simplify_pointers.cc | 164 if (auto* let = node->As<ast::VariableDeclStatement>()) { in Run() 178 std::vector<const ast::VariableDeclStatement*> saved; in Run()
|
H A D | promote_initializers_to_const_var.cc | 70 if (auto* src_var_decl = src_stmt->As<ast::VariableDeclStatement>()) { in Run()
|
H A D | loop_to_for_loop.cc | 108 if (auto* var_decl = stmt->As<ast::VariableDeclStatement>()) { in Run()
|
/third_party/skia/third_party/externals/tint/src/ |
H A D | program_builder.cc | 123 const ast::VariableDeclStatement* ProgramBuilder::WrapInStatement( in WrapInStatement() 125 return create<ast::VariableDeclStatement>(v); in WrapInStatement()
|
H A D | program_builder.h | 103 class VariableDeclStatement; 2163 /// Creates a ast::VariableDeclStatement for the input variable 2167 const ast::VariableDeclStatement* Decl(const Source& source, in Decl() 2169 return create<ast::VariableDeclStatement>(source, var); in Decl() 2172 /// Creates a ast::VariableDeclStatement for the input variable 2175 const ast::VariableDeclStatement* Decl(const ast::Variable* var) { in Decl() 2176 return create<ast::VariableDeclStatement>(var); in Decl() 2522 /// Wraps the ast::Variable in a ast::VariableDeclStatement. This is used by 2525 /// @param v the ast::Variable to be wrapped by an ast::VariableDeclStatement 2526 /// @return the ast::VariableDeclStatement tha [all...] |
/third_party/skia/third_party/externals/tint/fuzzers/tint_ast_fuzzer/ |
H A D | util.h | 68 if (const auto* var_node = tint::As<ast::VariableDeclStatement>(stmt)) { in GetAllVarsInScope()
|
/third_party/skia/third_party/externals/tint/src/resolver/ |
H A D | resolver.h | 224 sem::Statement* VariableDeclStatement(const ast::VariableDeclStatement*);
|
H A D | resolver.cc | 890 if (auto* v = stmt->As<ast::VariableDeclStatement>()) { in Statement() 891 return VariableDeclStatement(v); in Statement() 2399 sem::Statement* Resolver::VariableDeclStatement( 2400 const ast::VariableDeclStatement* stmt) {
|
H A D | dependency_graph.cc | 260 if (auto* v = stmt->As<ast::VariableDeclStatement>()) { in TraverseStatement()
|
H A D | dependency_graph_test.cc | 1204 ->As<ast::VariableDeclStatement>() in TEST_P() 1208 ->As<ast::VariableDeclStatement>() in TEST_P()
|
/third_party/skia/third_party/externals/tint/src/writer/spirv/ |
H A D | builder.h | 514 bool GenerateVariableDeclStatement(const ast::VariableDeclStatement* stmt);
|
/third_party/skia/third_party/externals/tint/src/writer/wgsl/ |
H A D | generator_impl.cc | 849 if (auto* v = stmt->As<ast::VariableDeclStatement>()) { in EmitStatement()
|
/third_party/skia/third_party/externals/tint/src/reader/spirv/ |
H A D | function.cc | 2512 auto* var_decl_stmt = create<ast::VariableDeclStatement>(Source{}, var); in EmitFunctionVariables() 2864 auto* guard_decl = create<ast::VariableDeclStatement>(Source{}, guard_var); in EmitIfStart() 3412 AddStatement(create<ast::VariableDeclStatement>( in EmitStatementsInBasicBlock() 3428 AddStatement(create<ast::VariableDeclStatement>(Source{}, var)); in EmitStatementsInBasicBlock() 3492 AddStatement(create<ast::VariableDeclStatement>(Source{}, ast_const)); in EmitConstDefinition()
|