/third_party/skia/src/sksl/ir/ |
H A D | SkSLIfStatement.cpp | 23 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 D | SkSLTernaryExpression.cpp | 22 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 D | SkSLTernaryExpression.h | 16 * 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 D | SkSLIfStatement.h | 26 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 D | SkSLBinaryExpression.cpp | 224 return CheckRef(*t.ifTrue()) && CheckRef(*t.ifFalse()); in CheckRef()
|
/third_party/skia/src/sksl/analysis/ |
H A D | SkSLCanExitWithoutReturningValue.cpp | 48 if (i.ifFalse()) { 49 falseVisitor.visitStatement(*i.ifFalse());
|
/third_party/skia/src/sksl/transform/ |
H A D | SkSLEliminateUnreachableCode.cpp | 107 result |= (ifStmt.ifFalse() && this->visitStatementPtr(ifStmt.ifFalse())); 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() 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 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, 163 DSLStatement ifFalse = DSLStatement(),
|
/third_party/skia/src/sksl/ |
H A D | SkSLRehydrator.cpp | 355 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 D | SkSLAnalysis.cpp | 702 (t.ifFalse() && this->visitExpressionPtr(t.ifFalse())); in visitExpression() 752 (i.ifFalse() && this->visitStatementPtr(i.ifFalse())); in visitStatement()
|
H A D | SkSLDSLParser.cpp | 928 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 D | SkSLDehydrator.cpp | 420 this->write(t.ifFalse().get()); in write() 494 this->write(i.ifFalse().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() 895 this->visitStatement(&ifStmt.ifFalse()); in visitStatement()
|
/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 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 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()); 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 | SkSLPipelineStageCodeGenerator.cpp | 263 if (stmt.ifFalse()) { in writeIfStatement() 265 this->writeStatement(*stmt.ifFalse()); in writeIfStatement() 582 this->writeExpression(*t.ifFalse(), Precedence::kTernary); in writeTernaryExpression()
|
H A D | SkSLSPIRVCodeGenerator.cpp | 2769 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 D | SkSLVMCodeGenerator.cpp | 1485 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 D | SkSLMetalCodeGenerator.cpp | 1674 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 D | SkSLGLSLCodeGenerator.cpp | 958 this->writeExpression(*t.ifFalse(), Precedence::kTernary); in writeTernaryExpression() 1288 if (stmt.ifFalse()) { in writeIfStatement() 1290 this->writeStatement(*stmt.ifFalse()); in writeIfStatement()
|