/third_party/vk-gl-cts/framework/randomshaders/ |
D | rsgStatement.hpp | 37 class Statement class 40 Statement (void); 41 virtual ~Statement (void); 43 virtual Statement* createNextChild (GeneratorState& state) = DE_NULL; 55 class ExpressionStatement : public Statement 61 Statement* createNextChild (GeneratorState& state) { DE_UNREF(state); return DE_NULL; } in createNextChild() 71 class DeclarationStatement : public Statement 77 Statement* createNextChild (GeneratorState& state) { DE_UNREF(state); return DE_NULL; } in createNextChild() 88 class BlockStatement : public Statement 97 Statement* createNextChild (GeneratorState& state); [all …]
|
/third_party/skia/src/sksl/ir/ |
D | SkSLIfStatement.h | 21 class IfStatement final : public Statement { 26 std::unique_ptr<Statement> ifTrue, std::unique_ptr<Statement> ifFalse) in IfStatement() 35 static std::unique_ptr<Statement> Convert(const Context& context, int line, bool isStatic, 37 std::unique_ptr<Statement> ifTrue, 38 std::unique_ptr<Statement> ifFalse); 41 static std::unique_ptr<Statement> Make(const Context& context, int line, bool isStatic, 43 std::unique_ptr<Statement> ifTrue, 44 std::unique_ptr<Statement> ifFalse); 58 std::unique_ptr<Statement>& ifTrue() { in ifTrue() 62 const std::unique_ptr<Statement>& ifTrue() const { in ifTrue() [all …]
|
D | SkSLForStatement.h | 30 class ForStatement final : public Statement { 35 std::unique_ptr<Statement> initializer, in ForStatement() 38 std::unique_ptr<Statement> statement, in ForStatement() 50 static std::unique_ptr<Statement> Convert(const Context& context, int line, 51 std::unique_ptr<Statement> initializer, 54 std::unique_ptr<Statement> statement, 58 static std::unique_ptr<Statement> ConvertWhile(const Context& context, int line, 60 std::unique_ptr<Statement> statement, 64 static std::unique_ptr<Statement> Make(const Context& context, int line, 65 std::unique_ptr<Statement> initializer, [all …]
|
D | SkSLDoStatement.h | 19 class DoStatement final : public Statement { 23 DoStatement(int line, std::unique_ptr<Statement> statement, std::unique_ptr<Expression> test) in DoStatement() 29 static std::unique_ptr<Statement> Convert(const Context& context, 30 std::unique_ptr<Statement> stmt, 34 static std::unique_ptr<Statement> Make(const Context& context, 35 std::unique_ptr<Statement> stmt, 38 std::unique_ptr<Statement>& statement() { in statement() 42 const std::unique_ptr<Statement>& statement() const { in statement() 54 std::unique_ptr<Statement> clone() const override; 59 std::unique_ptr<Statement> fStatement; [all …]
|
D | SkSLSwitchStatement.cpp | 24 std::unique_ptr<Statement> SwitchStatement::clone() const { in clone() 27 for (const std::unique_ptr<Statement>& stmt : this->cases()) { in clone() 56 for (const std::unique_ptr<Statement>& stmt : cases) { in find_duplicate_case_values() 84 static void move_all_but_break(std::unique_ptr<Statement>& stmt, StatementArray* target) { in move_all_but_break() 86 case Statement::Kind::kBlock: { in move_all_but_break() 92 for (std::unique_ptr<Statement>& blockStmt : block.children()) { in move_all_but_break() 101 case Statement::Kind::kBreak: in move_all_but_break() 112 std::unique_ptr<Statement> SwitchStatement::BlockForCase(StatementArray* cases, in BlockForCase() 130 Statement* stripBreakStmt = nullptr; in BlockForCase() 132 std::unique_ptr<Statement>& stmt = (*iter)->as<SwitchCase>().statement(); in BlockForCase() [all …]
|
D | SkSLVarDeclarations.h | 27 class VarDeclaration final : public Statement { 55 static std::unique_ptr<Statement> Convert(const Context& context, std::unique_ptr<Variable> var, 59 static std::unique_ptr<Statement> Make(const Context& context, 90 std::unique_ptr<Statement> clone() const override; 105 using INHERITED = Statement; 116 GlobalVarDeclaration(std::unique_ptr<Statement> decl) in GlobalVarDeclaration() 122 std::unique_ptr<Statement>& declaration() { in declaration() 126 const std::unique_ptr<Statement>& declaration() const { in declaration() 139 std::unique_ptr<Statement> fDeclaration;
|
D | SkSLSwitchCase.h | 19 class SwitchCase final : public Statement { 24 SwitchCase(int line, std::unique_ptr<Expression> value, std::unique_ptr<Statement> statement) in SwitchCase() 37 std::unique_ptr<Statement>& statement() { in statement() 41 const std::unique_ptr<Statement>& statement() const { in statement() 45 std::unique_ptr<Statement> clone() const override { in clone() 63 std::unique_ptr<Statement> fStatement; 65 using INHERITED = Statement;
|
D | SkSLIfStatement.cpp | 20 std::unique_ptr<Statement> IfStatement::clone() const { in clone() 38 std::unique_ptr<Statement> IfStatement::Convert(const Context& context, int line, bool isStatic, in Convert() 40 std::unique_ptr<Statement> ifTrue, in Convert() 41 std::unique_ptr<Statement> ifFalse) { in Convert() 57 static std::unique_ptr<Statement> replace_empty_with_nop(std::unique_ptr<Statement> stmt, in replace_empty_with_nop() 63 std::unique_ptr<Statement> IfStatement::Make(const Context& context, int line, bool isStatic, in Make() 65 std::unique_ptr<Statement> ifTrue, in Make() 66 std::unique_ptr<Statement> ifFalse) { in Make()
|
/third_party/skia/src/sksl/analysis/ |
D | SkSLCanExitWithoutReturningValue.cpp | 27 bool visitStatement(const Statement& stmt) override { in visitStatement() 31 case Statement::Kind::kReturn: in visitStatement() 35 case Statement::Kind::kBreak: in visitStatement() 39 case Statement::Kind::kContinue: in visitStatement() 43 case Statement::Kind::kIf: { in visitStatement() 60 case Statement::Kind::kFor: { in visitStatement() 72 case Statement::Kind::kDo: { in visitStatement() 82 case Statement::Kind::kBlock: in visitStatement() 87 case Statement::Kind::kSwitch: { in visitStatement() 96 for (const std::unique_ptr<Statement>& switchStmt : s.cases()) { in visitStatement() [all …]
|
D | SkSLSwitchCaseContainsExit.cpp | 20 bool visitStatement(const Statement& stmt) override { in visitStatement() 22 case Statement::Kind::kBlock: in visitStatement() 23 case Statement::Kind::kSwitchCase: in visitStatement() 26 case Statement::Kind::kReturn: in visitStatement() 30 case Statement::Kind::kContinue: in visitStatement() 35 case Statement::Kind::kBreak: in visitStatement() 40 case Statement::Kind::kIf: { in visitStatement() 47 case Statement::Kind::kFor: in visitStatement() 48 case Statement::Kind::kDo: { in visitStatement() 60 case Statement::Kind::kSwitch: { in visitStatement() [all …]
|
/third_party/skia/src/sksl/transform/ |
D | SkSLEliminateUnreachableCode.cpp | 34 bool visitStatementPtr(std::unique_ptr<Statement>& stmt) override { in EliminateUnreachableCode() 48 case Statement::Kind::kReturn: in EliminateUnreachableCode() 49 case Statement::Kind::kDiscard: in EliminateUnreachableCode() 54 case Statement::Kind::kBreak: in EliminateUnreachableCode() 55 case Statement::Kind::kContinue: in EliminateUnreachableCode() 62 case Statement::Kind::kExpression: in EliminateUnreachableCode() 63 case Statement::Kind::kInlineMarker: in EliminateUnreachableCode() 64 case Statement::Kind::kNop: in EliminateUnreachableCode() 65 case Statement::Kind::kVarDeclaration: in EliminateUnreachableCode() 69 case Statement::Kind::kBlock: in EliminateUnreachableCode() [all …]
|
/third_party/skia/third_party/externals/tint/src/ast/ |
D | statement.cc | 29 TINT_INSTANTIATE_TYPEINFO(tint::ast::Statement); 34 Statement::Statement(ProgramID pid, const Source& src) : Base(pid, src) {} in Statement() function in tint::ast::Statement 36 Statement::Statement(Statement&&) = default; 38 Statement::~Statement() = default; 40 const char* Statement::Name() const { in Name()
|
D | statement.h | 26 class Statement : public Castable<Statement, Node> { 28 ~Statement() override; 37 Statement(ProgramID pid, const Source& src); 39 Statement(Statement&&); 43 using StatementList = std::vector<const Statement*>;
|
/third_party/skia/third_party/externals/tint/src/sem/ |
D | statement.h | 25 class Statement; variable 64 class Statement : public Castable<Statement, Node> { 70 Statement(const ast::Statement* declaration, 75 ~Statement() override; 78 const ast::Statement* Declaration() const { return declaration_; } 118 const ast::Statement* const declaration_; 127 class CompoundStatement : public Castable<Statement, Statement> { 133 CompoundStatement(const ast::Statement* declaration, 142 const CompoundStatement* Statement::FindFirstParent(Pred&& pred) const { 156 const detail::FindFirstParentReturnType<TYPES...>* Statement::FindFirstParent()
|
D | statement.cc | 23 TINT_INSTANTIATE_TYPEINFO(tint::sem::Statement); 29 Statement::Statement(const ast::Statement* declaration, in Statement() function in tint::sem::Statement 34 Statement::~Statement() = default; 36 const BlockStatement* Statement::Block() const { in Block() 40 CompoundStatement::CompoundStatement(const ast::Statement* declaration, in CompoundStatement()
|
/third_party/skia/src/sksl/ |
D | SkSLInliner.cpp | 78 bool visitStatement(const Statement& stmt) override { in count_returns_at_end_of_control_flow() 80 case Statement::Kind::kBlock: { in count_returns_at_end_of_control_flow() 86 case Statement::Kind::kSwitch: in count_returns_at_end_of_control_flow() 87 case Statement::Kind::kDo: in count_returns_at_end_of_control_flow() 88 case Statement::Kind::kFor: in count_returns_at_end_of_control_flow() 92 case Statement::Kind::kReturn: in count_returns_at_end_of_control_flow() 124 bool visitStatement(const Statement& stmt) override { in contains_recursive_call() 139 static std::unique_ptr<Statement>* find_parent_statement( in find_parent_statement() 140 const std::vector<std::unique_ptr<Statement>*>& stmtStack) { in find_parent_statement() 150 std::unique_ptr<Statement>* stmt = *iter; in find_parent_statement() [all …]
|
D | SkSLAnalysis.h | 29 class Statement; variable 71 bool DetectVarDeclarationWithoutScope(const Statement& stmt, ErrorReporter* errors = nullptr); 79 bool SwitchCaseContainsUnconditionalExit(Statement& stmt); 85 bool SwitchCaseContainsConditionalExit(Statement& stmt); 90 bool StatementWritesToVariable(const Statement& stmt, const Variable& var); 161 const Statement* loopInitializer, 164 const Statement* loopStatement, 170 bool CanExitWithoutReturningValue(const FunctionDeclaration& funcDecl, const Statement& body);
|
/third_party/flutter/skia/src/sksl/ir/ |
D | SkSLIfStatement.h | 19 struct IfStatement : public Statement { 21 std::unique_ptr<Statement> ifTrue, std::unique_ptr<Statement> ifFalse) in IfStatement() 28 std::unique_ptr<Statement> clone() const override { in clone() 29 return std::unique_ptr<Statement>(new IfStatement(fOffset, fIsStatic, fTest->clone(), in clone() 47 std::unique_ptr<Statement> fIfTrue; 49 std::unique_ptr<Statement> fIfFalse; 51 typedef Statement INHERITED;
|
D | SkSLForStatement.h | 20 struct ForStatement : public Statement { 21 ForStatement(int offset, std::unique_ptr<Statement> initializer, in ForStatement() 23 std::unique_ptr<Statement> statement, std::shared_ptr<SymbolTable> symbols) in ForStatement() 31 std::unique_ptr<Statement> clone() const override { in clone() 32 return std::unique_ptr<Statement>(new ForStatement(fOffset, fInitializer->clone(), in clone() 57 std::unique_ptr<Statement> fInitializer; 60 std::unique_ptr<Statement> fStatement; 62 typedef Statement INHERITED;
|
D | SkSLBlock.h | 19 struct Block : public Statement { 20 Block(int offset, std::vector<std::unique_ptr<Statement>> statements, 35 std::unique_ptr<Statement> clone() const override { in clone() 36 std::vector<std::unique_ptr<Statement>> cloned; in clone() 40 return std::unique_ptr<Statement>(new Block(fOffset, std::move(cloned), fSymbols)); in clone() 56 std::vector<std::unique_ptr<Statement>> fStatements; 58 typedef Statement INHERITED;
|
D | SkSLSwitchCase.h | 19 struct SwitchCase : public Statement { 21 std::vector<std::unique_ptr<Statement>> statements) in SwitchCase() 26 std::unique_ptr<Statement> clone() const override { in clone() 27 std::vector<std::unique_ptr<Statement>> cloned; in clone() 31 return std::unique_ptr<Statement>(new SwitchCase(fOffset, in clone() 51 std::vector<std::unique_ptr<Statement>> fStatements; 53 typedef Statement INHERITED;
|
D | SkSLDoStatement.h | 19 struct DoStatement : public Statement { 20 DoStatement(int offset, std::unique_ptr<Statement> statement, in DoStatement() 26 std::unique_ptr<Statement> clone() const override { in clone() 27 return std::unique_ptr<Statement>(new DoStatement(fOffset, fStatement->clone(), in clone() 35 std::unique_ptr<Statement> fStatement; 38 typedef Statement INHERITED;
|
D | SkSLWhileStatement.h | 19 struct WhileStatement : public Statement { 21 std::unique_ptr<Statement> statement) in WhileStatement() 26 std::unique_ptr<Statement> clone() const override { in clone() 27 return std::unique_ptr<Statement>(new WhileStatement(fOffset, fTest->clone(), in clone() 36 std::unique_ptr<Statement> fStatement; 38 typedef Statement INHERITED;
|
/third_party/flutter/skia/src/sksl/ |
D | SkSLIRGenerator.h | 84 std::unique_ptr<Statement> convertStatement(const ASTNode& statement); 100 std::unique_ptr<Statement> convertBreak(const ASTNode& b); 112 std::unique_ptr<Statement> convertContinue(const ASTNode& c); 113 std::unique_ptr<Statement> convertDiscard(const ASTNode& d); 114 std::unique_ptr<Statement> convertDo(const ASTNode& d); 115 std::unique_ptr<Statement> convertSwitch(const ASTNode& s); 118 std::unique_ptr<Statement> convertExpressionStatement(const ASTNode& s); 119 std::unique_ptr<Statement> convertFor(const ASTNode& f); 121 std::unique_ptr<Statement> convertIf(const ASTNode& s); 127 std::unique_ptr<Statement> convertReturn(const ASTNode& r); [all …]
|
/third_party/skia/include/sksl/ |
D | DSLStatement.h | 23 class Statement; variable 47 DSLStatement(std::unique_ptr<SkSL::Statement> stmt); 57 std::unique_ptr<SkSL::Statement> release() { in release() 63 std::unique_ptr<SkSL::Statement> releaseIfPossible() { in releaseIfPossible() 67 std::unique_ptr<SkSL::Statement> fStatement; 87 DSLPossibleStatement(std::unique_ptr<SkSL::Statement> stmt); 95 std::unique_ptr<SkSL::Statement> release() { in release() 100 std::unique_ptr<SkSL::Statement> fStatement;
|