Home
last modified time | relevance | path

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

/external/skqp/src/sksl/ir/
DSkSLTernaryExpression.h24 , fIfTrue(std::move(ifTrue)) in TernaryExpression()
26 SkASSERT(fIfTrue->fType == fIfFalse->fType); in TernaryExpression()
30 return fTest->hasSideEffects() || fIfTrue->hasSideEffects() || fIfFalse->hasSideEffects(); in hasSideEffects()
35 fIfTrue->clone(), in clone()
40 return "(" + fTest->description() + " ? " + fIfTrue->description() + " : " + in description()
45 std::unique_ptr<Expression> fIfTrue; member
DSkSLIfStatement.h25 , fIfTrue(std::move(ifTrue)) in IfStatement()
30 fIfTrue->clone(), fIfFalse ? fIfFalse->clone() : nullptr)); in clone()
38 result += "if (" + fTest->description() + ") " + fIfTrue->description(); in description()
47 std::unique_ptr<Statement> fIfTrue; member
/external/skia/src/sksl/ir/
DSkSLIfStatement.h29 , fIfTrue(std::move(ifTrue)) in IfStatement()
59 return fIfTrue; in ifTrue()
63 return fIfTrue; in ifTrue()
80 std::unique_ptr<Statement> fIfTrue; variable
DSkSLTernaryExpression.h27 , fIfTrue(std::move(ifTrue)) in TernaryExpression()
54 return fIfTrue; in ifTrue()
58 return fIfTrue; in ifTrue()
92 std::unique_ptr<Expression> fIfTrue; variable
/external/skqp/src/sksl/ast/
DSkSLASTTernaryExpression.h24 , fIfTrue(std::move(ifTrue)) in ASTTernaryExpression()
28 return "(" + fTest->description() + " ? " + fIfTrue->description() + " : " + in description()
33 const std::unique_ptr<ASTExpression> fIfTrue; member
DSkSLASTIfStatement.h24 , fIfTrue(std::move(ifTrue)) in ASTIfStatement()
35 result += fIfTrue->description(); in description()
45 const std::unique_ptr<ASTStatement> fIfTrue; member
/external/skqp/src/sksl/
DSkSLInterpreter.cpp147 fCurrentIndex.push_back({ i.fIfTrue.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.cpp145 if (!this->tryRemoveLValueBefore(iter, ((TernaryExpression*) lvalue)->fIfTrue.get())) { in tryRemoveLValueBefore()
406 this->addExpression(cfg, &t->fIfTrue, constantPropagate); in addExpression()
443 this->addLValue(cfg, &((TernaryExpression&) **e).fIfTrue); in addLValue()
467 this->addStatement(cfg, &ifs.fIfTrue); in addStatement()
DSkSLJIT.cpp324 , fIfTrue(std::move(ifTrue)) in getLValue()
341 LLVMValueRef ifTrue = fIfTrue->load(builder); in getLValue()
344 LLVMValueRef ifFalse = fIfTrue->load(builder); in getLValue()
369 fIfTrue->store(builder, value); in getLValue()
372 fIfTrue->store(builder, value); in getLValue()
380 std::unique_ptr<LValue> fIfTrue; in getLValue() member in SkSL::JIT::getLValue::TernaryLValue
388 *t.fIfTrue), in getLValue()
1008 LLVMValueRef ifTrue = this->compileExpression(builder, *t.fIfTrue); in compileTernary()
1099 this->compileStatement(builder, *i.fIfTrue); in compileIf()
1100 if (!ends_with_branch(*i.fIfTrue)) { in compileIf()
DSkSLCompiler.cpp291 this->addDefinition(((TernaryExpression*) lvalue)->fIfTrue.get(), in addDefinition()
464 return !t.fTest->hasSideEffects() && is_dead(*t.fIfTrue) && is_dead(*t.fIfFalse); in is_dead()
733 (*iter)->setExpression(std::move(t->fIfTrue)); in simplifyExpression()
927 return contains_conditional_break(*i.fIfTrue, true) || in contains_conditional_break()
1017 SkASSERT(i.fIfTrue); in simplifyStatement()
1018 (*iter)->setStatement(std::move(i.fIfTrue)); in simplifyStatement()
1036 if (!i.fIfFalse && i.fIfTrue->isEmpty()) { in simplifyStatement()
DSkSLMetalCodeGenerator.cpp573 this->writeExpression(*t.fIfTrue, kTernary_Precedence); in writeTernaryExpression()
1061 this->writeStatement(*stmt.fIfTrue); in writeIfStatement()
1405 return this->requirements(*t.fTest) | this->requirements(*t.fIfTrue) | in requirements()
1469 this->requirements(*i.fIfTrue) | in requirements()
DSkSLSPIRVCodeGenerator.cpp1683 SpvId ifTrue = this->getLValue(*t.fIfTrue, out)->getPointer(); in getLValue()
2315 if (t.fIfTrue->fType.columns() == 1 && t.fIfTrue->isConstant() && t.fIfFalse->isConstant()) { in writeTernaryExpression()
2318 SpvId trueId = this->writeExpression(*t.fIfTrue, out); in writeTernaryExpression()
2335 this->writeInstruction(SpvOpStore, var, this->writeExpression(*t.fIfTrue, out), out); in writeTernaryExpression()
2843 this->writeStatement(*stmt.fIfTrue, out); in writeIfStatement()
2857 this->writeStatement(*stmt.fIfTrue, out); in writeIfStatement()
DSkSLGLSLCodeGenerator.cpp962 this->writeExpression(*t.fIfTrue, kTernary_Precedence); in writeFunctionCall()
1326 this->writeStatement(*stmt.fIfTrue); in writeFunctionCall()
DSkSLIRGenerator.cpp370 std::unique_ptr<Statement> ifTrue = this->convertStatement(*s.fIfTrue); in convertIf()
1517 std::unique_ptr<Expression> ifTrue = this->convertExpression(*expression.fIfTrue); in convertTernaryExpression()
2245 this->setRefKind(*t.fIfTrue, kind); in setRefKind()