Home
last modified time | relevance | path

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

/third_party/skia/src/sksl/ir/
H A DSkSLTernaryExpression.cpp21 std::unique_ptr<Expression> ifTrue, in Convert()
24 if (!test || !ifTrue || !ifFalse) { in Convert()
32 if (!equalityOp.determineBinaryType(context, ifTrue->type(), ifFalse->type(), in Convert()
36 ifTrue->type().displayName() + "', '" + in Convert()
50 ifTrue = trueType->coerceExpression(std::move(ifTrue), context); in Convert()
51 if (!ifTrue) { in Convert()
58 return TernaryExpression::Make(context, std::move(test), std::move(ifTrue), std::move(ifFalse)); in Convert()
63 std::unique_ptr<Expression> ifTrue, in Make()
65 SkASSERT(ifTrue 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 DSkSLIfStatement.cpp22 this->ifTrue()->clone(), in clone()
31 result += "if (" + this->test()->description() + ") " + this->ifTrue()->description(); in description()
40 std::unique_ptr<Statement> ifTrue, in Convert()
46 SkASSERT(ifTrue); in Convert()
47 if (Analysis::DetectVarDeclarationWithoutScope(*ifTrue, context.fErrors)) { in Convert()
54 std::move(ifTrue), std::move(ifFalse)); in Convert()
65 std::unique_ptr<Statement> ifTrue, in Make()
68 SkASSERT(!Analysis::DetectVarDeclarationWithoutScope(*ifTrue)); in Make()
77 trueIsEmpty = ifTrue->isEmpty(); in Make()
89 return replace_empty_with_nop(std::move(ifTrue), trueIsEmpt 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.h16 * A ternary expression (test ? ifTrue : ifFalse).
23 std::unique_ptr<Expression> ifTrue, std::unique_ptr<Expression> ifFalse) in TernaryExpression()
24 : INHERITED(line, kExpressionKind, &ifTrue->type()) in TernaryExpression()
26 , fIfTrue(std::move(ifTrue)) in TernaryExpression()
28 SkASSERT(this->ifTrue()->type() == this->ifFalse()->type()); in TernaryExpression()
35 std::unique_ptr<Expression> ifTrue,
41 std::unique_ptr<Expression> ifTrue,
52 std::unique_ptr<Expression>& ifTrue() { in ifTrue() function in SkSL::final
56 const std::unique_ptr<Expression>& ifTrue() const { in ifTrue() function in SkSL::final
69 return this->test()->hasProperty(property) || this->ifTrue()
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()
29 , fIfTrue(std::move(ifTrue)) in IfStatement()
37 std::unique_ptr<Statement> ifTrue,
43 std::unique_ptr<Statement> ifTrue,
58 std::unique_ptr<Statement>& ifTrue() { in ifTrue() function in SkSL::final
62 const std::unique_ptr<Statement>& ifTrue() const { in ifTrue() 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/transform/
H A DSkSLEliminateUnreachableCode.cpp99 bool result = (ifStmt.ifTrue() && this->visitStatementPtr(ifStmt.ifTrue())); 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()
330 static DSLPossibleExpression Select(DSLExpression test, DSLExpression ifTrue, in Select() argument
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), st in StaticIf()
[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,
162 DSLStatement StaticIf(DSLExpression test, DSLStatement ifTrue,
/third_party/skia/src/sksl/
H A DSkSLRehydrator.cpp354 std::unique_ptr<Statement> ifTrue = this->statement(); in statement() local
357 std::move(ifTrue), std::move(ifFalse)); in statement()
523 std::unique_ptr<Expression> ifTrue = this->expression(); in expression() local
526 std::move(ifTrue), std::move(ifFalse)); in expression()
H A DSkSLAnalysis.cpp701 (t.ifTrue() && this->visitExpressionPtr(t.ifTrue())) || in visitExpression()
751 (i.ifTrue() && this->visitStatementPtr(i.ifTrue())) || in visitStatement()
H A DSkSLDehydrator.cpp419 this->write(t.ifTrue().get()); in write()
493 this->write(i.ifTrue().get()); in write()
H A DSkSLInliner.cpp435 expr(t.ifTrue()), expr(t.ifFalse())); in inlineExpression()
526 stmt(i.ifTrue()), stmt(i.ifFalse())); in inlineStatement()
894 this->visitStatement(&ifStmt.ifTrue()); in visitStatement()
H A DSkSLDSLParser.cpp924 DSLStatement ifTrue = this->statement(); in ifStatement() local
925 if (!ifTrue.hasValue()) { in ifStatement()
936 return StaticIf(std::move(test), std::move(ifTrue), in ifStatement()
939 return If(std::move(test), std::move(ifTrue), in ifStatement()
/third_party/skia/src/sksl/analysis/
H A DSkSLCanExitWithoutReturningValue.cpp47 trueVisitor.visitStatement(*i.ifTrue());
/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
3159 Value *trueValue = ifTrue.loadValue(); in IfThenElse()
3165 RValue<T> IfThenElse(RValue<Bool> condition, RValue<T> ifTrue, const T &ifFalse) in IfThenElse() argument
3170 return RValue<T>(Nucleus::createSelect(condition.value(), ifTrue.value(), falseValue)); in IfThenElse()
3174 RValue<T> IfThenElse(RValue<Bool> condition, const T &ifTrue, const T &ifFalse) in IfThenElse() argument
3177 Value *trueValue = ifTrue.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());
1936 auto result = ::function->makeVariable(ifTrue->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 DSkSLSPIRVCodeGenerator.cpp2767 if (t.ifTrue()->type().columns() == 1 && in writeTernaryExpression()
2768 t.ifTrue()->isCompileTimeConstant() && in writeTernaryExpression()
2772 SpvId trueId = this->writeExpression(*t.ifTrue(), out); in writeTernaryExpression()
2789 this->writeInstruction(SpvOpStore, var, this->writeExpression(*t.ifTrue(), out), out); in writeTernaryExpression()
3210 SpvId ifTrue = this->nextId(nullptr); in writeIfStatement() local
3215 this->writeInstruction(SpvOpBranchConditional, test, ifTrue, ifFalse, out); in writeIfStatement()
3216 this->writeLabel(ifTrue, out); in writeIfStatement()
3217 this->writeStatement(*stmt.ifTrue(), out); in writeIfStatement()
3229 this->writeInstruction(SpvOpBranchConditional, test, ifTrue, ifFalse, out); in writeIfStatement()
3230 this->writeLabel(ifTrue, ou in writeIfStatement()
[all...]
H A DSkSLPipelineStageCodeGenerator.cpp262 this->writeStatement(*stmt.ifTrue()); in writeIfStatement()
580 this->writeExpression(*t.ifTrue(), Precedence::kTernary); in writeTernaryExpression()
H A DSkSLVMCodeGenerator.cpp1485 Value ifTrue, ifFalse;
1489 ifTrue = this->writeExpression(*t.ifTrue());
1496 size_t nslots = ifTrue.slots();
1501 result[i] = skvm::select(test, i32(ifTrue[i]), i32(ifFalse[i]));
1685 ScopedCondition ifTrue(this, i32(test));
1686 this->writeStatement(*i.ifTrue());
H A DSkSLMetalCodeGenerator.cpp1672 this->writeExpression(*t.ifTrue(), Precedence::kTernary); in writeTernaryExpression()
2159 this->writeStatement(*stmt.ifTrue()); in writeIfStatement()
2604 return this->requirements(t.test().get()) | this->requirements(t.ifTrue().get()) | in requirements()
2657 this->requirements(i.ifTrue().get()) | in requirements()
H A DSkSLGLSLCodeGenerator.cpp956 this->writeExpression(*t.ifTrue(), Precedence::kTernary); in writeTernaryExpression()
1287 this->writeStatement(*stmt.ifTrue()); in writeIfStatement()

Completed in 45 milliseconds