Home
last modified time | relevance | path

Searched refs:DSLStatement (Results 1 – 22 of 22) sorted by relevance

/third_party/skia/src/sksl/dsl/
DDSLStatement.cpp26 DSLStatement::DSLStatement() {} in DSLStatement() function in SkSL::dsl::DSLStatement
28 DSLStatement::DSLStatement(DSLBlock block) in DSLStatement() function in SkSL::dsl::DSLStatement
31 DSLStatement::DSLStatement(DSLExpression expr) { in DSLStatement() function in SkSL::dsl::DSLStatement
38 DSLStatement::DSLStatement(std::unique_ptr<SkSL::Expression> expr) in DSLStatement() function in SkSL::dsl::DSLStatement
43 DSLStatement::DSLStatement(std::unique_ptr<SkSL::Statement> stmt) in DSLStatement() function in SkSL::dsl::DSLStatement
48 DSLStatement::DSLStatement(DSLPossibleExpression expr, PositionInfo pos) in DSLStatement() function in SkSL::dsl::DSLStatement
49 : DSLStatement(DSLExpression(std::move(expr), pos)) {} in DSLStatement()
51 DSLStatement::DSLStatement(DSLPossibleStatement stmt, PositionInfo pos) { in DSLStatement() function in SkSL::dsl::DSLStatement
63 DSLStatement::~DSLStatement() { in ~DSLStatement()
81 DSLStatement(std::move(fStatement)); in ~DSLPossibleStatement()
[all …]
DDSLCore.cpp136 static DSLStatement Break(PositionInfo pos) { in Break()
140 static DSLStatement Continue(PositionInfo pos) { in Continue()
149 static DSLStatement Declare(DSLVar& var, PositionInfo pos) { in Declare()
157 static DSLStatement Declare(SkTArray<DSLVar>& vars, PositionInfo pos) { in Declare()
194 static DSLStatement Discard(PositionInfo pos) { in Discard()
198 static DSLPossibleStatement Do(DSLStatement stmt, DSLExpression test) { in Do()
202 static DSLPossibleStatement For(DSLStatement initializer, DSLExpression test, in For()
203 DSLExpression next, DSLStatement stmt, PositionInfo pos) { in For()
210 static DSLPossibleStatement If(DSLExpression test, DSLStatement ifTrue, DSLStatement ifFalse, in If()
285 static DSLStatement Return(DSLExpression value, PositionInfo pos) { in Return()
[all …]
DDSLBlock.cpp21 DSLBlock::DSLBlock(SkTArray<DSLStatement> statements, std::shared_ptr<SymbolTable> symbols) in DSLBlock()
24 for (DSLStatement& s : statements) { in DSLBlock()
34 DSLStatement(std::move(*this)); in ~DSLBlock()
43 void DSLBlock::append(DSLStatement stmt) { in append()
DDSLCase.cpp21 DSLCase::DSLCase(DSLExpression value, SkTArray<DSLStatement> statements, PositionInfo pos) in DSLCase()
25 for (DSLStatement& stmt : statements) { in DSLCase()
42 void DSLCase::append(DSLStatement stmt) { in append()
DDSLExpression.cpp102 DSLStatement(this->release()).release()); in ~DSLExpression()
/third_party/skia/include/sksl/
DDSLStatement.h33 class DSLStatement {
35 DSLStatement();
37 DSLStatement(DSLExpression expr);
39 DSLStatement(DSLPossibleExpression expr, PositionInfo pos = PositionInfo::Capture());
41 DSLStatement(DSLPossibleStatement stmt, PositionInfo pos = PositionInfo::Capture());
43 DSLStatement(DSLBlock block);
45 DSLStatement(DSLStatement&&) = default;
47 DSLStatement(std::unique_ptr<SkSL::Statement> stmt);
49 DSLStatement(std::unique_ptr<SkSL::Expression> expr);
51 ~DSLStatement();
[all …]
DDSLCore.h84 DSLStatement Break(PositionInfo pos = PositionInfo::Capture());
89 DSLStatement Continue(PositionInfo pos = PositionInfo::Capture());
99 DSLStatement Declare(DSLVar& var, PositionInfo pos = PositionInfo::Capture());
104 DSLStatement Declare(SkTArray<DSLVar>& vars, PositionInfo pos = PositionInfo::Capture());
127 DSLStatement Discard(PositionInfo pos = PositionInfo::Capture());
132 DSLStatement Do(DSLStatement stmt, DSLExpression test, PositionInfo pos = PositionInfo::Capture());
137 DSLStatement For(DSLStatement initializer, DSLExpression test, DSLExpression next,
138 DSLStatement stmt, PositionInfo pos = PositionInfo::Capture());
143 DSLStatement If(DSLExpression test, DSLStatement ifTrue, DSLStatement ifFalse = DSLStatement(),
153 DSLStatement Return(DSLExpression value = DSLExpression(),
[all …]
DDSLBlock.h33 (static_cast<void>(fStatements.push_back(DSLStatement(statements.release()).release())), in DSLBlock()
42 DSLBlock(SkTArray<DSLStatement> statements, std::shared_ptr<SymbolTable> symbols = nullptr);
51 void append(DSLStatement stmt);
59 friend class DSLStatement; variable
DDSLCase.h34 (static_cast<void>(fStatements.push_back(DSLStatement(std::move(statements)).release())), in DSLCase()
39 DSLCase(DSLExpression value, SkTArray<DSLStatement> statements,
51 void append(DSLStatement stmt);
DBUILD.bazel15 "DSLStatement.h",
DDSL.h26 using Statement = DSLStatement;
DDSLFunction.h65 DSLBlock block = DSLBlock(DSLStatement(std::move(stmts))...); in define()
DDSLExpression.h34 class DSLStatement; variable
/third_party/skia/src/sksl/
DSkSLDSLParser.h159 dsl::DSLStatement varDeclarationsOrExpressionStatement();
161 dsl::DSLStatement varDeclarations();
174 dsl::DSLStatement localVarDeclarationEnd(PositionInfo position, const dsl::DSLModifiers& mods,
187 dsl::DSLStatement statement();
193 dsl::DSLStatement ifStatement();
195 dsl::DSLStatement doStatement();
197 dsl::DSLStatement whileStatement();
199 dsl::DSLStatement forStatement();
203 dsl::DSLStatement switchStatement();
205 dsl::DSLStatement returnStatement();
[all …]
DSkSLDSLParser.cpp484 DSLStatement DSLParser::localVarDeclarationEnd(PositionInfo pos, const dsl::DSLModifiers& mods, in localVarDeclarationEnd()
497 DSLStatement result = Declare(first); in localVarDeclarationEnd()
523 DSLStatement DSLParser::varDeclarationsOrExpressionStatement() { in varDeclarationsOrExpressionStatement()
567 DSLStatement DSLParser::varDeclarations() { in varDeclarations()
771 DSLStatement DSLParser::statement() { in statement()
801 return result ? DSLStatement(std::move(*result)) : DSLStatement(); in statement()
908 DSLStatement DSLParser::ifStatement() { in ifStatement()
924 DSLStatement ifTrue = this->statement(); in ifStatement()
928 DSLStatement ifFalse; in ifStatement()
937 ifFalse.hasValue() ? std::move(ifFalse) : DSLStatement(), this->position(start)); in ifStatement()
[all …]
DBUILD.bazel79 "dsl/DSLStatement.cpp",
/third_party/skia/src/sksl/dsl/priv/
DDSLWriter.h29 class DSLStatement; variable
92 static void AddVarDeclaration(DSLStatement& existing, DSLVar& additional);
DDSLWriter.cpp98 void DSLWriter::AddVarDeclaration(DSLStatement& existing, DSLVar& additional) { in AddVarDeclaration()
/third_party/skia/tests/
DSkSLDSLErrorLineNumbers.cpp93 For(DSLStatement(), 5, DSLExpression(), Block()).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
DSkSLDSLTest.cpp133 static SkSL::String stringize(DSLStatement& stmt) { return stmt.release()->description(); } in stringize()
1287 SkTArray<DSLStatement> statements; in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1637 SkTArray<DSLStatement> caseStatements; in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1678 DSLStatement(Switch(0, Case(0), Case(0))).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1683 DSLStatement(Switch(0, Default(a = 0), Default(a = 1))).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1689 DSLStatement(Switch(0, Case(c))).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
/third_party/skia/gn/
Dsksl.gni30 "$_include/sksl/DSLStatement.h",
96 "$_src/sksl/dsl/DSLStatement.cpp",
/third_party/skia/src/sksl/ir/
DSkSLFunctionDefinition.cpp61 auto fixupStmt = DSLStatement( in append_rtadjust_fixup_to_vertex_main()