/third_party/skia/src/sksl/ir/ |
H A D | SkSLTernaryExpression.cpp | 21 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 D | SkSLIfStatement.cpp | 22 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 D | SkSLTernaryExpression.h | 16 * 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 D | SkSLIfStatement.h | 26 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 D | SkSLBinaryExpression.cpp | 224 return CheckRef(*t.ifTrue()) && CheckRef(*t.ifFalse()); in CheckRef()
|
/third_party/skia/src/sksl/transform/ |
H A D | SkSLEliminateUnreachableCode.cpp | 99 bool result = (ifStmt.ifTrue() && this->visitStatementPtr(ifStmt.ifTrue())); in EliminateUnreachableCode()
|
/third_party/skia/src/sksl/dsl/ |
H A D | DSLCore.cpp | 210 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 D | DSLCore.h | 141 * 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 D | SkSLRehydrator.cpp | 354 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 D | SkSLAnalysis.cpp | 701 (t.ifTrue() && this->visitExpressionPtr(t.ifTrue())) || in visitExpression() 751 (i.ifTrue() && this->visitStatementPtr(i.ifTrue())) || in visitStatement()
|
H A D | SkSLDehydrator.cpp | 419 this->write(t.ifTrue().get()); in write() 493 this->write(i.ifTrue().get()); in write()
|
H A D | SkSLInliner.cpp | 435 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 D | SkSLDSLParser.cpp | 924 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 D | SkSLCanExitWithoutReturningValue.cpp | 47 trueVisitor.visitStatement(*i.ifTrue());
|
/third_party/skia/third_party/externals/swiftshader/src/Reactor/ |
H A D | Nucleus.hpp | 213 static void createCondBr(Value *cond, BasicBlock *ifTrue, BasicBlock *ifFalse); 308 static Value *createSelect(Value *C, Value *ifTrue, Value *ifFalse);
|
H A D | Reactor.hpp | 3149 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 D | SubzeroReactor.cpp | 1190 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 D | LLVMReactor.cpp | 753 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 D | SkSLSPIRVCodeGenerator.cpp | 2767 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 D | SkSLPipelineStageCodeGenerator.cpp | 262 this->writeStatement(*stmt.ifTrue()); in writeIfStatement() 580 this->writeExpression(*t.ifTrue(), Precedence::kTernary); in writeTernaryExpression()
|
H A D | SkSLVMCodeGenerator.cpp | 1485 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 D | SkSLMetalCodeGenerator.cpp | 1672 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 D | SkSLGLSLCodeGenerator.cpp | 956 this->writeExpression(*t.ifTrue(), Precedence::kTernary); in writeTernaryExpression() 1287 this->writeStatement(*stmt.ifTrue()); in writeIfStatement()
|