/external/skia/src/sksl/ir/ |
D | SkSLTernaryExpression.h | 24 , 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
|
D | SkSLIfStatement.h | 25 , 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/skqp/src/sksl/ir/ |
D | SkSLTernaryExpression.h | 24 , 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
|
D | SkSLIfStatement.h | 25 , 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/ast/ |
D | SkSLASTTernaryExpression.h | 24 , fIfTrue(std::move(ifTrue)) in ASTTernaryExpression() 28 return "(" + fTest->description() + " ? " + fIfTrue->description() + " : " + in description() 33 const std::unique_ptr<ASTExpression> fIfTrue; member
|
D | SkSLASTIfStatement.h | 24 , fIfTrue(std::move(ifTrue)) in ASTIfStatement() 35 result += fIfTrue->description(); in description() 45 const std::unique_ptr<ASTStatement> fIfTrue; member
|
/external/skqp/src/sksl/ast/ |
D | SkSLASTTernaryExpression.h | 24 , fIfTrue(std::move(ifTrue)) in ASTTernaryExpression() 28 return "(" + fTest->description() + " ? " + fIfTrue->description() + " : " + in description() 33 const std::unique_ptr<ASTExpression> fIfTrue; member
|
D | SkSLASTIfStatement.h | 24 , fIfTrue(std::move(ifTrue)) in ASTIfStatement() 35 result += fIfTrue->description(); in description() 45 const std::unique_ptr<ASTStatement> fIfTrue; member
|
/external/skqp/src/sksl/ |
D | SkSLInterpreter.cpp | 147 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()
|
D | SkSLCFGGenerator.cpp | 145 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()
|
D | SkSLJIT.cpp | 324 , 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()
|
D | SkSLCompiler.cpp | 291 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()
|
D | SkSLMetalCodeGenerator.cpp | 573 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()
|
D | SkSLSPIRVCodeGenerator.cpp | 1683 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()
|
D | SkSLGLSLCodeGenerator.cpp | 962 this->writeExpression(*t.fIfTrue, kTernary_Precedence); in writeFunctionCall() 1326 this->writeStatement(*stmt.fIfTrue); in writeFunctionCall()
|
D | SkSLIRGenerator.cpp | 370 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()
|
/external/skia/src/sksl/ |
D | SkSLInterpreter.cpp | 147 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()
|
D | SkSLCFGGenerator.cpp | 145 if (!this->tryRemoveLValueBefore(iter, ((TernaryExpression*) lvalue)->fIfTrue.get())) { in tryRemoveLValueBefore() 407 this->addExpression(cfg, &t->fIfTrue, constantPropagate); in addExpression() 444 this->addLValue(cfg, &((TernaryExpression&) **e).fIfTrue); in addLValue() 468 this->addStatement(cfg, &ifs.fIfTrue); in addStatement()
|
D | SkSLJIT.cpp | 324 , 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()
|
D | SkSLCompiler.cpp | 291 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()
|
D | SkSLMetalCodeGenerator.cpp | 719 this->writeExpression(*t.fIfTrue, kTernary_Precedence); in writeTernaryExpression() 1205 this->writeStatement(*stmt.fIfTrue); in writeIfStatement() 1547 return this->requirements(*t.fTest) | this->requirements(*t.fIfTrue) | in requirements() 1611 this->requirements(*i.fIfTrue) | in requirements()
|
D | SkSLSPIRVCodeGenerator.cpp | 1739 SpvId ifTrue = this->getLValue(*t.fIfTrue, out)->getPointer(); in getLValue() 2307 if (t.fIfTrue->fType.columns() == 1 && t.fIfTrue->isConstant() && t.fIfFalse->isConstant()) { in writeTernaryExpression() 2310 SpvId trueId = this->writeExpression(*t.fIfTrue, out); in writeTernaryExpression() 2327 this->writeInstruction(SpvOpStore, var, this->writeExpression(*t.fIfTrue, out), out); in writeTernaryExpression() 2834 this->writeStatement(*stmt.fIfTrue, out); in writeIfStatement() 2848 this->writeStatement(*stmt.fIfTrue, out); in writeIfStatement()
|
D | SkSLGLSLCodeGenerator.cpp | 981 this->writeExpression(*t.fIfTrue, kTernary_Precedence); in writeFunctionCall() 1353 this->writeStatement(*stmt.fIfTrue); in writeFunctionCall()
|
D | SkSLIRGenerator.cpp | 376 std::unique_ptr<Statement> ifTrue = this->convertStatement(*s.fIfTrue); in convertIf() 1566 std::unique_ptr<Expression> ifTrue = this->convertExpression(*expression.fIfTrue); in convertTernaryExpression() 2309 this->setRefKind(*t.fIfTrue, kind); in setRefKind()
|