Home
last modified time | relevance | path

Searched refs:fIfFalse (Results 1 – 14 of 14) sorted by relevance

/external/skqp/src/sksl/ir/
DSkSLIfStatement.h26 , 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
DSkSLTernaryExpression.h25 , 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/
DSkSLASTIfStatement.h25 , 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
DSkSLASTTernaryExpression.h25 , fIfFalse(std::move(ifFalse)) {} in ASTTernaryExpression()
29 fIfFalse->description() + ")"; in description()
34 const std::unique_ptr<ASTExpression> fIfFalse; member
/external/skia/src/sksl/ir/
DSkSLIfStatement.h30 , fIfFalse(std::move(ifFalse)) in IfStatement()
67 return fIfFalse; in ifFalse()
71 return fIfFalse; in ifFalse()
81 std::unique_ptr<Statement> fIfFalse; variable
DSkSLTernaryExpression.h28 , 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/
DSkSLCompiler.cpp294 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()
DSkSLInterpreter.cpp148 } 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()
DSkSLCFGGenerator.cpp148 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()
DSkSLMetalCodeGenerator.cpp575 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()
DSkSLJIT.cpp325 , 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()
DSkSLGLSLCodeGenerator.cpp964 this->writeExpression(*t.fIfFalse, kTernary_Precedence); in writeFunctionCall()
1327 if (stmt.fIfFalse) { in writeFunctionCall()
1329 this->writeStatement(*stmt.fIfFalse); in writeFunctionCall()
DSkSLIRGenerator.cpp375 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()
DSkSLSPIRVCodeGenerator.cpp1687 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()