Home
last modified time | relevance | path

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

/third_party/flutter/skia/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
/third_party/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.h26 , fIfTrue(std::move(ifTrue)) in TernaryExpression()
53 return fIfTrue; in ifTrue()
57 return fIfTrue; in ifTrue()
91 std::unique_ptr<Expression> fIfTrue; variable
/third_party/flutter/skia/src/sksl/
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()
DSkSLCFGGenerator.cpp147 if (!this->tryRemoveLValueBefore(iter, ((TernaryExpression*) lvalue)->fIfTrue.get())) { in tryRemoveLValueBefore()
419 this->addExpression(cfg, &t->fIfTrue, constantPropagate); in addExpression()
457 this->addLValue(cfg, &((TernaryExpression&) **e).fIfTrue); in addLValue()
485 this->addStatement(cfg, &ifs.fIfTrue); in addStatement()
DSkSLCompiler.cpp302 this->addDefinition(((TernaryExpression*) lvalue)->fIfTrue.get(), in addDefinition()
477 return !t.fTest->hasSideEffects() && is_dead(*t.fIfTrue) && is_dead(*t.fIfFalse); in is_dead()
754 (*iter)->setExpression(std::move(t->fIfTrue)); in simplifyExpression()
948 return contains_conditional_break(*i.fIfTrue, true) || in contains_conditional_break()
1038 SkASSERT(i.fIfTrue); in simplifyStatement()
1039 (*iter)->setStatement(std::move(i.fIfTrue)); in simplifyStatement()
1057 if (!i.fIfFalse && i.fIfTrue->isEmpty()) { in simplifyStatement()
DSkSLMetalCodeGenerator.cpp725 this->writeExpression(*t.fIfTrue, kTernary_Precedence); in writeTernaryExpression()
1211 this->writeStatement(*stmt.fIfTrue); in writeIfStatement()
1553 return this->requirements(*t.fTest) | this->requirements(*t.fIfTrue) | in requirements()
1617 this->requirements(*i.fIfTrue) | in requirements()
DSkSLByteCodeGenerator.cpp1122 SkASSERT(count == SlotCount(t.fIfTrue->fType)); in writeTernaryExpression()
1127 this->writeExpression(*t.fIfTrue); in writeTernaryExpression()
1414 this->writeStatement(*i.fIfTrue); in writeIfStatement()
DSkSLSPIRVCodeGenerator.cpp1765 SpvId ifTrue = this->getLValue(*t.fIfTrue, out)->getPointer(); in getLValue()
2349 if (t.fIfTrue->fType.columns() == 1 && t.fIfTrue->isConstant() && t.fIfFalse->isConstant()) { in writeTernaryExpression()
2352 SpvId trueId = this->writeExpression(*t.fIfTrue, out); in writeTernaryExpression()
2369 this->writeInstruction(SpvOpStore, var, this->writeExpression(*t.fIfTrue, out), out); in writeTernaryExpression()
2878 this->writeStatement(*stmt.fIfTrue, out); in writeIfStatement()
2892 this->writeStatement(*stmt.fIfTrue, out); in writeIfStatement()
DSkSLGLSLCodeGenerator.cpp985 this->writeExpression(*t.fIfTrue, kTernary_Precedence); in writeFunctionCall()
1357 this->writeStatement(*stmt.fIfTrue); in writeFunctionCall()
DSkSLIRGenerator.cpp2501 this->setRefKind(*t.fIfTrue, kind); in setRefKind()