/external/skqp/src/sksl/ir/ |
D | SkSLIfStatement.h | 26 , fIfFalse(std::move(ifFalse)) {} in IfStatement() 30 fIfTrue->clone(), fIfFalse ? fIfFalse->clone() : nullptr)); in clone() 39 if (fIfFalse) { in description() 40 result += " else " + fIfFalse->description(); in description() 49 std::unique_ptr<Statement> fIfFalse; member
|
D | SkSLTernaryExpression.h | 25 , fIfFalse(std::move(ifFalse)) { in TernaryExpression() 26 SkASSERT(fIfTrue->fType == fIfFalse->fType); in TernaryExpression() 30 return fTest->hasSideEffects() || fIfTrue->hasSideEffects() || fIfFalse->hasSideEffects(); in hasSideEffects() 36 fIfFalse->clone())); in clone() 41 fIfFalse->description() + ")"; in description() 46 std::unique_ptr<Expression> fIfFalse; member
|
/external/skqp/src/sksl/ast/ |
D | SkSLASTIfStatement.h | 25 , fIfFalse(std::move(ifFalse)) {} in ASTIfStatement() 36 if (fIfFalse) { in description() 38 result += fIfFalse->description(); in description() 46 const std::unique_ptr<ASTStatement> fIfFalse; member
|
D | SkSLASTTernaryExpression.h | 25 , fIfFalse(std::move(ifFalse)) {} in ASTTernaryExpression() 29 fIfFalse->description() + ")"; in description() 34 const std::unique_ptr<ASTExpression> fIfFalse; member
|
/external/skia/src/sksl/ir/ |
D | SkSLIfStatement.h | 30 , fIfFalse(std::move(ifFalse)) in IfStatement() 67 return fIfFalse; in ifFalse() 71 return fIfFalse; in ifFalse() 81 std::unique_ptr<Statement> fIfFalse; variable
|
D | SkSLTernaryExpression.h | 28 , fIfFalse(std::move(ifFalse)) { in TernaryExpression() 62 return fIfFalse; in ifFalse() 66 return fIfFalse; in ifFalse() 93 std::unique_ptr<Expression> fIfFalse; variable
|
/external/skqp/src/sksl/ |
D | SkSLCompiler.cpp | 294 this->addDefinition(((TernaryExpression*) lvalue)->fIfFalse.get(), in addDefinition() 464 return !t.fTest->hasSideEffects() && is_dead(*t.fIfTrue) && is_dead(*t.fIfFalse); in is_dead() 735 (*iter)->setExpression(std::move(t->fIfFalse)); in simplifyExpression() 928 (i.fIfFalse && contains_conditional_break(*i.fIfFalse, true)); in contains_conditional_break() 1020 if (i.fIfFalse) { in simplifyStatement() 1021 (*iter)->setStatement(std::move(i.fIfFalse)); in simplifyStatement() 1030 if (i.fIfFalse && i.fIfFalse->isEmpty()) { in simplifyStatement() 1032 i.fIfFalse.reset(); in simplifyStatement() 1036 if (!i.fIfFalse && i.fIfTrue->isEmpty()) { in simplifyStatement()
|
D | SkSLInterpreter.cpp | 148 } else if (i.fIfFalse) { in runStatement() 149 fCurrentIndex.push_back({ i.fIfFalse.get(), 0 }); in runStatement() 205 return this->getLValue(this->evaluate(*t.fTest).fBool ? *t.fIfTrue : *t.fIfFalse); in getLValue() 460 return this->evaluate(this->evaluate(*t.fTest).fBool ? *t.fIfTrue : *t.fIfFalse); in evaluate()
|
D | SkSLCFGGenerator.cpp | 148 return this->tryRemoveLValueBefore(iter, ((TernaryExpression*) lvalue)->fIfFalse.get()); in tryRemoveLValueBefore() 410 this->addExpression(cfg, &t->fIfFalse, constantPropagate); in addExpression() 444 this->addLValue(cfg, &((TernaryExpression&) **e).fIfFalse); in addLValue() 469 if (ifs.fIfFalse) { in addStatement() 472 this->addStatement(cfg, &ifs.fIfFalse); in addStatement()
|
D | SkSLMetalCodeGenerator.cpp | 575 this->writeExpression(*t.fIfFalse, kTernary_Precedence); in writeTernaryExpression() 1062 if (stmt.fIfFalse) { in writeIfStatement() 1064 this->writeStatement(*stmt.fIfFalse); in writeIfStatement() 1406 this->requirements(*t.fIfFalse); in requirements() 1470 (i.fIfFalse && this->requirements(*i.fIfFalse)); in requirements()
|
D | SkSLJIT.cpp | 325 , fIfFalse(std::move(ifFalse)) {} in getLValue() 381 std::unique_ptr<LValue> fIfFalse; in getLValue() member in SkSL::JIT::getLValue::TernaryLValue 390 *t.fIfFalse))); in getLValue() 1012 LLVMValueRef ifFalse = this->compileExpression(builder, *t.fIfFalse); in compileTernary() 1092 if (i.fIfFalse) { in compileIf() 1103 if (i.fIfFalse) { in compileIf() 1105 this->compileStatement(builder, *i.fIfFalse); in compileIf() 1106 if (!ends_with_branch(*i.fIfFalse)) { in compileIf()
|
D | SkSLGLSLCodeGenerator.cpp | 964 this->writeExpression(*t.fIfFalse, kTernary_Precedence); in writeFunctionCall() 1327 if (stmt.fIfFalse) { in writeFunctionCall() 1329 this->writeStatement(*stmt.fIfFalse); in writeFunctionCall()
|
D | SkSLIRGenerator.cpp | 375 if (s.fIfFalse) { in convertIf() 376 ifFalse = this->convertStatement(*s.fIfFalse); in convertIf() 385 } else if (s.fIfFalse) { in convertIf() 1521 std::unique_ptr<Expression> ifFalse = this->convertExpression(*expression.fIfFalse); in convertTernaryExpression() 2246 this->setRefKind(*t.fIfFalse, kind); in setRefKind()
|
D | SkSLSPIRVCodeGenerator.cpp | 1687 SpvId ifFalse = this->getLValue(*t.fIfFalse, out)->getPointer(); in getLValue() 2315 if (t.fIfTrue->fType.columns() == 1 && t.fIfTrue->isConstant() && t.fIfFalse->isConstant()) { in writeTernaryExpression() 2319 SpvId falseId = this->writeExpression(*t.fIfFalse, out); in writeTernaryExpression() 2338 this->writeInstruction(SpvOpStore, var, this->writeExpression(*t.fIfFalse, out), out); in writeTernaryExpression() 2838 if (stmt.fIfFalse) { in writeIfStatement() 2848 this->writeStatement(*stmt.fIfFalse, out); in writeIfStatement()
|