Home
last modified time | relevance | path

Searched refs:ifFalse (Results 1 - 23 of 23) sorted by relevance

/third_party/skia/src/sksl/ir/
H A DSkSLIfStatement.cpp23 this->ifFalse() ? this->ifFalse()->clone() : nullptr); in clone()
32 if (this->ifFalse()) { in description()
33 result += " else " + this->ifFalse()->description(); in description()
41 std::unique_ptr<Statement> ifFalse) { in Convert()
50 if (ifFalse && Analysis::DetectVarDeclarationWithoutScope(*ifFalse, context.fErrors)) { in Convert()
54 std::move(ifTrue), std::move(ifFalse)); in Convert()
66 std::unique_ptr<Statement> ifFalse) { in Make()
69 SkASSERT(!ifFalse || !Analysi in Make()
38 Convert(const Context& context, int line, bool isStatic, std::unique_ptr<Expression> test, std::unique_ptr<Statement> ifTrue, std::unique_ptr<Statement> ifFalse) Convert() argument
63 Make(const Context& context, int line, bool isStatic, std::unique_ptr<Expression> test, std::unique_ptr<Statement> ifTrue, std::unique_ptr<Statement> ifFalse) Make() argument
[all...]
H A DSkSLTernaryExpression.cpp22 std::unique_ptr<Expression> ifFalse) { in Convert()
24 if (!test || !ifTrue || !ifFalse) { in Convert()
32 if (!equalityOp.determineBinaryType(context, ifTrue->type(), ifFalse->type(), in Convert()
37 ifFalse->type().displayName() + "'"); in Convert()
54 ifFalse = falseType->coerceExpression(std::move(ifFalse), context); in Convert()
55 if (!ifFalse) { in Convert()
58 return TernaryExpression::Make(context, std::move(test), std::move(ifTrue), std::move(ifFalse)); in Convert()
64 std::unique_ptr<Expression> ifFalse) { in Make()
65 SkASSERT(ifTrue->type() == ifFalse in Make()
19 Convert(const Context& context, std::unique_ptr<Expression> test, std::unique_ptr<Expression> ifTrue, std::unique_ptr<Expression> ifFalse) Convert() argument
61 Make(const Context& context, std::unique_ptr<Expression> test, std::unique_ptr<Expression> ifTrue, std::unique_ptr<Expression> ifFalse) Make() argument
[all...]
H A DSkSLTernaryExpression.h16 * A ternary expression (test ? ifTrue : ifFalse).
23 std::unique_ptr<Expression> ifTrue, std::unique_ptr<Expression> ifFalse) in TernaryExpression()
27 , fIfFalse(std::move(ifFalse)) { in TernaryExpression()
28 SkASSERT(this->ifTrue()->type() == this->ifFalse()->type()); in TernaryExpression()
36 std::unique_ptr<Expression> ifFalse);
42 std::unique_ptr<Expression> ifFalse);
60 std::unique_ptr<Expression>& ifFalse() { in ifFalse() function in SkSL::final
64 const std::unique_ptr<Expression>& ifFalse() const { in ifFalse() function in SkSL::final
70 this->ifFalse()->hasProperty(property);
75 this->ifFalse()
22 TernaryExpression(int line, std::unique_ptr<Expression> test, std::unique_ptr<Expression> ifTrue, std::unique_ptr<Expression> ifFalse) TernaryExpression() argument
[all...]
H A DSkSLIfStatement.h26 std::unique_ptr<Statement> ifTrue, std::unique_ptr<Statement> ifFalse) in IfStatement()
30 , fIfFalse(std::move(ifFalse)) in IfStatement()
38 std::unique_ptr<Statement> ifFalse);
44 std::unique_ptr<Statement> ifFalse);
66 std::unique_ptr<Statement>& ifFalse() { in ifFalse() function in SkSL::final
70 const std::unique_ptr<Statement>& ifFalse() const { in ifFalse() function in SkSL::final
25 IfStatement(int line, bool isStatic, std::unique_ptr<Expression> test, std::unique_ptr<Statement> ifTrue, std::unique_ptr<Statement> ifFalse) IfStatement() argument
H A DSkSLBinaryExpression.cpp224 return CheckRef(*t.ifTrue()) && CheckRef(*t.ifFalse()); in CheckRef()
/third_party/skia/src/sksl/analysis/
H A DSkSLCanExitWithoutReturningValue.cpp48 if (i.ifFalse()) {
49 falseVisitor.visitStatement(*i.ifFalse());
/third_party/skia/src/sksl/transform/
H A DSkSLEliminateUnreachableCode.cpp107 result |= (ifStmt.ifFalse() && this->visitStatementPtr(ifStmt.ifFalse())); in EliminateUnreachableCode()
/third_party/skia/src/sksl/dsl/
H A DDSLCore.cpp210 static DSLPossibleStatement If(DSLExpression test, DSLStatement ifTrue, DSLStatement ifFalse, in If() argument
213 ifTrue.release(), ifFalse.releaseIfPossible()); in If()
331 DSLExpression ifFalse) { in Select()
333 ifTrue.release(), ifFalse.release()); in Select()
443 DSLStatement If(DSLExpression test, DSLStatement ifTrue, DSLStatement ifFalse, PositionInfo pos) { in If() argument
444 return DSLStatement(DSLCore::If(std::move(test), std::move(ifTrue), std::move(ifFalse), in If()
465 DSLExpression Select(DSLExpression test, DSLExpression ifTrue, DSLExpression ifFalse, in Select() argument
467 return DSLExpression(DSLCore::Select(std::move(test), std::move(ifTrue), std::move(ifFalse)), in Select()
471 DSLStatement StaticIf(DSLExpression test, DSLStatement ifTrue, DSLStatement ifFalse, in StaticIf() argument
473 return DSLStatement(DSLCore::If(std::move(test), std::move(ifTrue), std::move(ifFalse), in StaticIf()
330 Select(DSLExpression test, DSLExpression ifTrue, DSLExpression ifFalse) Select() argument
[all...]
/third_party/skia/include/sksl/
H A DDSLCore.h141 * if (test) ifTrue; [else ifFalse;]
143 DSLStatement If(DSLExpression test, DSLStatement ifTrue, DSLStatement ifFalse = DSLStatement(),
157 * test ? ifTrue : ifFalse
159 DSLExpression Select(DSLExpression test, DSLExpression ifTrue, DSLExpression ifFalse,
163 DSLStatement ifFalse = DSLStatement(),
/third_party/skia/src/sksl/
H A DSkSLRehydrator.cpp355 std::unique_ptr<Statement> ifFalse = this->statement(); in statement() local
357 std::move(ifTrue), std::move(ifFalse)); in statement()
524 std::unique_ptr<Expression> ifFalse = this->expression(); in expression() local
526 std::move(ifTrue), std::move(ifFalse)); in expression()
H A DSkSLAnalysis.cpp702 (t.ifFalse() && this->visitExpressionPtr(t.ifFalse())); in visitExpression()
752 (i.ifFalse() && this->visitStatementPtr(i.ifFalse())); in visitStatement()
H A DSkSLDSLParser.cpp928 DSLStatement ifFalse; in ifStatement() local
930 ifFalse = this->statement(); in ifStatement()
931 if (!ifFalse.hasValue()) { in ifStatement()
937 ifFalse.hasValue() ? std::move(ifFalse) : DSLStatement(), this->position(start)); in ifStatement()
940 ifFalse.hasValue() ? std::move(ifFalse) : DSLStatement(), this->position(start)); in ifStatement()
H A DSkSLDehydrator.cpp420 this->write(t.ifFalse().get()); in write()
494 this->write(i.ifFalse().get()); in write()
H A DSkSLInliner.cpp435 expr(t.ifTrue()), expr(t.ifFalse())); in inlineExpression()
526 stmt(i.ifTrue()), stmt(i.ifFalse())); in inlineStatement()
895 this->visitStatement(&ifStmt.ifFalse()); in visitStatement()
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
H A DNucleus.hpp213 static void createCondBr(Value *cond, BasicBlock *ifTrue, BasicBlock *ifFalse);
308 static Value *createSelect(Value *C, Value *ifTrue, Value *ifFalse);
H A DReactor.hpp3149 RValue<T> IfThenElse(RValue<Bool> condition, RValue<T> ifTrue, RValue<T> ifFalse) in IfThenElse() argument
3152 return RValue<T>(Nucleus::createSelect(condition.value(), ifTrue.value(), ifFalse.value())); in IfThenElse()
3156 RValue<T> IfThenElse(RValue<Bool> condition, const T &ifTrue, RValue<T> ifFalse) in IfThenElse() argument
3161 return RValue<T>(Nucleus::createSelect(condition.value(), trueValue, ifFalse.value())); in IfThenElse()
3165 RValue<T> IfThenElse(RValue<Bool> condition, RValue<T> ifTrue, const T &ifFalse) in IfThenElse() argument
3168 Value *falseValue = ifFalse.loadValue(); in IfThenElse()
3174 RValue<T> IfThenElse(RValue<Bool> condition, const T &ifTrue, const T &ifFalse) in IfThenElse() argument
3178 Value *falseValue = ifFalse.loadValue(); in IfThenElse()
H A DSubzeroReactor.cpp1190 void Nucleus::createCondBr(Value *cond, BasicBlock *ifTrue, BasicBlock *ifFalse)
1195 auto br = Ice::InstBr::create(::function, cond, ifTrue, ifFalse);
1931 Value *Nucleus::createSelect(Value *C, Value *ifTrue, Value *ifFalse)
1934 ASSERT(ifTrue->getType() == ifFalse->getType());
1937 auto *select = Ice::InstSelect::create(::function, result, C, ifTrue, ifFalse);
H A DLLVMReactor.cpp753 void Nucleus::createCondBr(Value *cond, BasicBlock *ifTrue, BasicBlock *ifFalse) in createCondBr() argument
757 jit->builder->CreateCondBr(V(cond), B(ifTrue), B(ifFalse)); in createCondBr()
1679 Value *Nucleus::createSelect(Value *c, Value *ifTrue, Value *ifFalse) in createSelect() argument
1682 return V(jit->builder->CreateSelect(V(c), V(ifTrue), V(ifFalse))); in createSelect()
/third_party/skia/src/sksl/codegen/
H A DSkSLPipelineStageCodeGenerator.cpp263 if (stmt.ifFalse()) { in writeIfStatement()
265 this->writeStatement(*stmt.ifFalse()); in writeIfStatement()
582 this->writeExpression(*t.ifFalse(), Precedence::kTernary); in writeTernaryExpression()
H A DSkSLSPIRVCodeGenerator.cpp2769 t.ifFalse()->isCompileTimeConstant()) { in writeTernaryExpression()
2773 SpvId falseId = this->writeExpression(*t.ifFalse(), out); in writeTernaryExpression()
2792 this->writeInstruction(SpvOpStore, var, this->writeExpression(*t.ifFalse(), out), out); in writeTernaryExpression()
3211 SpvId ifFalse = this->nextId(nullptr); in writeIfStatement() local
3212 if (stmt.ifFalse()) { in writeIfStatement()
3215 this->writeInstruction(SpvOpBranchConditional, test, ifTrue, ifFalse, out); in writeIfStatement()
3221 this->writeLabel(ifFalse, out); in writeIfStatement()
3222 this->writeStatement(*stmt.ifFalse(), out); in writeIfStatement()
3228 this->writeInstruction(SpvOpSelectionMerge, ifFalse, SpvSelectionControlMaskNone, out); in writeIfStatement()
3229 this->writeInstruction(SpvOpBranchConditional, test, ifTrue, ifFalse, ou in writeIfStatement()
[all...]
H A DSkSLVMCodeGenerator.cpp1485 Value ifTrue, ifFalse;
1493 ifFalse = this->writeExpression(*t.ifFalse());
1497 SkASSERT(nslots == ifFalse.slots());
1501 result[i] = skvm::select(test, i32(ifTrue[i]), i32(ifFalse[i]));
1688 if (i.ifFalse()) {
1689 ScopedCondition ifFalse(this, ~i32(test));
1690 this->writeStatement(*i.ifFalse());
H A DSkSLMetalCodeGenerator.cpp1674 this->writeExpression(*t.ifFalse(), Precedence::kTernary); in writeTernaryExpression()
2160 if (stmt.ifFalse()) { in writeIfStatement()
2162 this->writeStatement(*stmt.ifFalse()); in writeIfStatement()
2605 this->requirements(t.ifFalse().get()); in requirements()
2658 this->requirements(i.ifFalse().get()); in requirements()
H A DSkSLGLSLCodeGenerator.cpp958 this->writeExpression(*t.ifFalse(), Precedence::kTernary); in writeTernaryExpression()
1288 if (stmt.ifFalse()) { in writeIfStatement()
1290 this->writeStatement(*stmt.ifFalse()); in writeIfStatement()

Completed in 45 milliseconds