/external/skia/src/sksl/ir/ |
D | SkSLTernaryExpression.cpp | 20 std::unique_ptr<Expression> ifFalse) { in Convert() argument 22 if (!test || !ifTrue || !ifFalse) { in Convert() 30 if (!equalityOp.determineBinaryType(context, ifTrue->type(), ifFalse->type(), in Convert() 35 ifFalse->type().displayName() + "'"); in Convert() 52 ifFalse = falseType->coerceExpression(std::move(ifFalse), context); in Convert() 53 if (!ifFalse) { in Convert() 56 return TernaryExpression::Make(context, std::move(test), std::move(ifTrue), std::move(ifFalse)); in Convert() 62 std::unique_ptr<Expression> ifFalse) { in Make() argument 63 SkASSERT(ifTrue->type() == ifFalse->type()); in Make() 72 : std::move(ifFalse); in Make() [all …]
|
D | SkSLIfStatement.cpp | 22 this->ifFalse() ? this->ifFalse()->clone() : nullptr); in clone() 31 if (this->ifFalse()) { in description() 32 result += " else " + this->ifFalse()->description(); in description() 40 std::unique_ptr<Statement> ifFalse) { in Convert() argument 46 std::move(ifTrue), std::move(ifFalse)); in Convert() 58 std::unique_ptr<Statement> ifFalse) { in Make() argument 68 falseIsEmpty = !ifFalse || ifFalse->isEmpty(); in Make() 81 return replace_empty_with_nop(std::move(ifFalse), falseIsEmpty); in Make() 90 ifFalse = nullptr; in Make() 95 std::move(ifTrue), std::move(ifFalse)); in Make()
|
D | SkSLTernaryExpression.h | 24 std::unique_ptr<Expression> ifTrue, std::unique_ptr<Expression> ifFalse) in TernaryExpression() argument 28 , fIfFalse(std::move(ifFalse)) { in TernaryExpression() 29 SkASSERT(this->ifTrue()->type() == this->ifFalse()->type()); in TernaryExpression() 37 std::unique_ptr<Expression> ifFalse); 43 std::unique_ptr<Expression> ifFalse); 61 std::unique_ptr<Expression>& ifFalse() { in ifFalse() function 65 const std::unique_ptr<Expression>& ifFalse() const { in ifFalse() function 71 this->ifFalse()->hasProperty(property); in hasProperty() 76 this->ifFalse()->isConstantOrUniform(); in isConstantOrUniform() 82 this->ifFalse()->clone()); in clone() [all …]
|
D | SkSLIfStatement.h | 26 std::unique_ptr<Statement> ifTrue, std::unique_ptr<Statement> ifFalse) in IfStatement() argument 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 70 const std::unique_ptr<Statement>& ifFalse() const { in ifFalse() function
|
D | SkSLBinaryExpression.cpp | 223 return CheckRef(*t.ifTrue()) && CheckRef(*t.ifFalse()); in CheckRef()
|
/external/skqp/src/sksl/ast/ |
D | SkSLASTTernaryExpression.h | 21 std::unique_ptr<ASTExpression> ifFalse) in ASTTernaryExpression() 25 , fIfFalse(std::move(ifFalse)) {} in ASTTernaryExpression()
|
D | SkSLASTIfStatement.h | 20 std::unique_ptr<ASTStatement> ifTrue, std::unique_ptr<ASTStatement> ifFalse) in ASTIfStatement() 25 , fIfFalse(std::move(ifFalse)) {} in ASTIfStatement()
|
/external/skqp/src/sksl/ir/ |
D | SkSLIfStatement.h | 21 std::unique_ptr<Statement> ifTrue, std::unique_ptr<Statement> ifFalse) in IfStatement() 26 , fIfFalse(std::move(ifFalse)) {} in IfStatement()
|
D | SkSLTernaryExpression.h | 21 std::unique_ptr<Expression> ifTrue, std::unique_ptr<Expression> ifFalse) in TernaryExpression() 25 , fIfFalse(std::move(ifFalse)) { in TernaryExpression()
|
/external/skia/src/sksl/dsl/ |
D | DSLCore.cpp | 114 static DSLPossibleStatement If(DSLExpression test, DSLStatement ifTrue, DSLStatement ifFalse, in If() argument 117 ifTrue.release(), ifFalse.release()); in If() 166 DSLExpression ifFalse) { in Select() argument 168 ifTrue.release(), ifFalse.release()); in Select() 241 DSLStatement If(DSLExpression test, DSLStatement ifTrue, DSLStatement ifFalse, PositionInfo pos) { in If() argument 242 return DSLStatement(DSLCore::If(std::move(test), std::move(ifTrue), std::move(ifFalse), in If() 251 DSLExpression Select(DSLExpression test, DSLExpression ifTrue, DSLExpression ifFalse, in Select() argument 253 return DSLExpression(DSLCore::Select(std::move(test), std::move(ifTrue), std::move(ifFalse)), in Select() 257 DSLStatement StaticIf(DSLExpression test, DSLStatement ifTrue, DSLStatement ifFalse, in StaticIf() argument 259 return DSLStatement(DSLCore::If(std::move(test), std::move(ifTrue), std::move(ifFalse), in StaticIf()
|
/external/skqp/src/sksl/ |
D | SkSLJIT.cpp | 321 std::unique_ptr<LValue> ifFalse) in getLValue() argument 325 , fIfFalse(std::move(ifFalse)) {} in getLValue() 344 LLVMValueRef ifFalse = fIfTrue->load(builder); in getLValue() local 349 LLVMValueRef incomingValues[2] = { ifTrue, ifFalse }; in getLValue() 694 LLVMBasicBlockRef ifFalse = fCurrentBlock; in compileBinary() local 706 LLVMBasicBlockRef incomingBlocks[2] = { ifTrue, ifFalse }; in compileBinary() 713 LLVMBasicBlockRef ifFalse = LLVMAppendBasicBlockInContext(fContext, fCurrentFunction, in compileBinary() local 717 LLVMBuildCondBr(builder, left, merge, ifFalse); in compileBinary() 718 this->setBlock(builder, ifFalse); in compileBinary() 724 LLVMBasicBlockRef incomingBlocks[2] = { ifFalse, ifTrue }; in compileBinary() [all …]
|
D | SkSLIRGenerator.cpp | 374 std::unique_ptr<Statement> ifFalse; in convertIf() local 376 ifFalse = this->convertStatement(*s.fIfFalse); in convertIf() 377 if (!ifFalse) { in convertIf() 386 return ifFalse; in convertIf() 395 std::move(ifTrue), std::move(ifFalse))); in convertIf() 1521 std::unique_ptr<Expression> ifFalse = this->convertExpression(*expression.fIfFalse); in convertTernaryExpression() local 1522 if (!ifFalse) { in convertTernaryExpression() 1528 if (!determine_binary_type(fContext, Token::EQEQ, ifTrue->fType, ifFalse->fType, &trueType, in convertTernaryExpression() 1532 ifFalse->fType.fName + "'"); in convertTernaryExpression() 1539 ifFalse = this->coerce(std::move(ifFalse), *falseType); in convertTernaryExpression() [all …]
|
D | SkSLSPIRVCodeGenerator.cpp | 1687 SpvId ifFalse = this->getLValue(*t.fIfFalse, out)->getPointer(); in getLValue() local 1688 SkASSERT(ifFalse); in getLValue() 1693 ifTrueLabel, ifFalse, ifFalseLabel, out); in getLValue() 2837 SpvId ifFalse = this->nextId(); in writeIfStatement() local 2841 this->writeInstruction(SpvOpBranchConditional, test, ifTrue, ifFalse, out); in writeIfStatement() 2847 this->writeLabel(ifFalse, out); in writeIfStatement() 2854 this->writeInstruction(SpvOpSelectionMerge, ifFalse, SpvSelectionControlMaskNone, out); in writeIfStatement() 2855 this->writeInstruction(SpvOpBranchConditional, test, ifTrue, ifFalse, out); in writeIfStatement() 2859 this->writeInstruction(SpvOpBranch, ifFalse, out); in writeIfStatement() 2861 this->writeLabel(ifFalse, out); in writeIfStatement()
|
/external/skia/include/sksl/ |
D | DSLCore.h | 115 DSLStatement If(DSLExpression test, DSLStatement ifTrue, DSLStatement ifFalse = DSLStatement(), 126 DSLExpression Select(DSLExpression test, DSLExpression ifTrue, DSLExpression ifFalse, 130 DSLStatement ifFalse = DSLStatement(), PositionInfo pos = PositionInfo());
|
/external/skia/src/sksl/ |
D | SkSLAnalysis.cpp | 451 if (i.ifFalse()) { in visitStatement() 452 falseVisitor.visitStatement(*i.ifFalse()); in visitStatement() 1208 (t.ifFalse() && this->visitExpressionPtr(t.ifFalse())); in visitExpression() 1258 (i.ifFalse() && this->visitStatementPtr(i.ifFalse())); in visitStatement()
|
D | SkSLRehydrator.cpp | 393 std::unique_ptr<Statement> ifFalse = this->statement(); in statement() local 395 std::move(ifTrue), std::move(ifFalse)); in statement() 561 std::unique_ptr<Expression> ifFalse = this->expression(); in expression() local 563 std::move(ifTrue), std::move(ifFalse)); in expression()
|
D | SkSLIRGenerator.cpp | 502 std::unique_ptr<Statement> ifFalse; in convertIf() local 504 ifFalse = this->convertStatement(*(iter++)); in convertIf() 505 if (!ifFalse) { in convertIf() 508 if (this->detectVarDeclarationWithoutScope(*ifFalse)) { in convertIf() 514 std::move(ifTrue), std::move(ifFalse)); in convertIf() 1424 std::unique_ptr<Expression> ifFalse = this->convertExpression(*(iter++)); in convertTernaryExpression() local 1425 if (!ifFalse) { in convertTernaryExpression() 1429 std::move(ifTrue), std::move(ifFalse)); in convertTernaryExpression()
|
D | SkSLDehydrator.cpp | 421 this->write(t.ifFalse().get()); in write() 493 this->write(i.ifFalse().get()); in write()
|
D | SkSLInliner.cpp | 404 expr(t.ifTrue()), expr(t.ifFalse())); in inlineExpression() 486 stmt(i.ifTrue()), stmt(i.ifFalse())); in inlineStatement() 881 this->visitStatement(&ifStmt.ifFalse()); in visitStatement()
|
/external/skia/src/sksl/codegen/ |
D | SkSLPipelineStageCodeGenerator.cpp | 237 if (stmt.ifFalse()) { in writeIfStatement() 239 this->writeStatement(*stmt.ifFalse()); in writeIfStatement() 512 this->writeExpression(*t.ifFalse(), Precedence::kTernary); in writeTernaryExpression()
|
D | SkSLVMCodeGenerator.cpp | 1350 Value ifTrue, ifFalse; in writeTernaryExpression() local 1358 ifFalse = this->writeExpression(*t.ifFalse()); in writeTernaryExpression() 1362 SkASSERT(nslots == ifFalse.slots()); in writeTernaryExpression() 1366 result[i] = skvm::select(test, i32(ifTrue[i]), i32(ifFalse[i])); in writeTernaryExpression() 1541 if (i.ifFalse()) { in writeIfStatement() 1542 ScopedCondition ifFalse(this, ~i32(test)); in writeIfStatement() local 1543 this->writeStatement(*i.ifFalse()); in writeIfStatement()
|
D | SkSLSPIRVCodeGenerator.cpp | 2725 t.ifFalse()->isCompileTimeConstant()) { in writeTernaryExpression() 2729 SpvId falseId = this->writeExpression(*t.ifFalse(), out); in writeTernaryExpression() 2748 this->writeInstruction(SpvOpStore, var, this->writeExpression(*t.ifFalse(), out), out); in writeTernaryExpression() 3193 SpvId ifFalse = this->nextId(nullptr); in writeIfStatement() local 3194 if (stmt.ifFalse()) { in writeIfStatement() 3197 this->writeInstruction(SpvOpBranchConditional, test, ifTrue, ifFalse, out); in writeIfStatement() 3203 this->writeLabel(ifFalse, out); in writeIfStatement() 3204 this->writeStatement(*stmt.ifFalse(), out); in writeIfStatement() 3210 this->writeInstruction(SpvOpSelectionMerge, ifFalse, SpvSelectionControlMaskNone, out); in writeIfStatement() 3211 this->writeInstruction(SpvOpBranchConditional, test, ifTrue, ifFalse, out); in writeIfStatement() [all …]
|
D | SkSLGLSLCodeGenerator.cpp | 912 this->writeExpression(*t.ifFalse(), Precedence::kTernary); in writeTernaryExpression() 1245 if (stmt.ifFalse()) { in writeIfStatement() 1247 this->writeStatement(*stmt.ifFalse()); in writeIfStatement()
|
D | SkSLMetalCodeGenerator.cpp | 1409 this->writeExpression(*t.ifFalse(), Precedence::kTernary); in writeTernaryExpression() 1891 if (stmt.ifFalse()) { in writeIfStatement() 1893 this->writeStatement(*stmt.ifFalse()); in writeIfStatement() 2346 this->requirements(t.ifFalse().get()); in requirements() 2399 this->requirements(i.ifFalse().get()); in requirements()
|
/external/swiftshader/src/Reactor/ |
D | Nucleus.hpp | 215 static void createCondBr(Value *cond, BasicBlock *ifTrue, BasicBlock *ifFalse); 310 static Value *createSelect(Value *C, Value *ifTrue, Value *ifFalse);
|