/external/skia/src/sksl/ir/ |
D | SkSLTernaryExpression.cpp | 19 std::unique_ptr<Expression> ifTrue, in Convert() argument 22 if (!test || !ifTrue || !ifFalse) { in Convert() 30 if (!equalityOp.determineBinaryType(context, ifTrue->type(), ifFalse->type(), in Convert() 34 ifTrue->type().displayName() + "', '" + in Convert() 48 ifTrue = trueType->coerceExpression(std::move(ifTrue), context); in Convert() 49 if (!ifTrue) { in Convert() 56 return TernaryExpression::Make(context, std::move(test), std::move(ifTrue), std::move(ifFalse)); in Convert() 61 std::unique_ptr<Expression> ifTrue, in Make() argument 63 SkASSERT(ifTrue->type() == ifFalse->type()); in Make() 64 SkASSERT(!ifTrue->type().componentType().isOpaque()); in Make() [all …]
|
D | SkSLTernaryExpression.h | 24 std::unique_ptr<Expression> ifTrue, std::unique_ptr<Expression> ifFalse) in TernaryExpression() argument 25 : INHERITED(offset, kExpressionKind, &ifTrue->type()) in TernaryExpression() 27 , fIfTrue(std::move(ifTrue)) in TernaryExpression() 29 SkASSERT(this->ifTrue()->type() == this->ifFalse()->type()); in TernaryExpression() 36 std::unique_ptr<Expression> ifTrue, 42 std::unique_ptr<Expression> ifTrue, 53 std::unique_ptr<Expression>& ifTrue() { in ifTrue() function 57 const std::unique_ptr<Expression>& ifTrue() const { in ifTrue() function 70 return this->test()->hasProperty(property) || this->ifTrue()->hasProperty(property) || in hasProperty() 75 return this->test()->isConstantOrUniform() && this->ifTrue()->isConstantOrUniform() && in isConstantOrUniform() [all …]
|
D | SkSLIfStatement.cpp | 21 this->ifTrue()->clone(), in clone() 30 result += "if (" + this->test()->description() + ") " + this->ifTrue()->description(); in description() 39 std::unique_ptr<Statement> ifTrue, in Convert() argument 46 std::move(ifTrue), std::move(ifFalse)); in Convert() 57 std::unique_ptr<Statement> ifTrue, in Make() argument 67 trueIsEmpty = ifTrue->isEmpty(); in Make() 79 return replace_empty_with_nop(std::move(ifTrue), trueIsEmpty); in Make() 88 ifTrue = replace_empty_with_nop(std::move(ifTrue), trueIsEmpty); in Make() 95 std::move(ifTrue), std::move(ifFalse)); in Make()
|
D | SkSLIfStatement.h | 26 std::unique_ptr<Statement> ifTrue, std::unique_ptr<Statement> ifFalse) in IfStatement() argument 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 62 const std::unique_ptr<Statement>& ifTrue() const { in ifTrue() function
|
D | SkSLBinaryExpression.cpp | 223 return CheckRef(*t.ifTrue()) && CheckRef(*t.ifFalse()); in CheckRef()
|
/external/skqp/src/sksl/ir/ |
D | SkSLTernaryExpression.h | 21 std::unique_ptr<Expression> ifTrue, std::unique_ptr<Expression> ifFalse) in TernaryExpression() 22 : INHERITED(offset, kTernary_Kind, ifTrue->fType) in TernaryExpression() 24 , fIfTrue(std::move(ifTrue)) in TernaryExpression()
|
D | SkSLIfStatement.h | 21 std::unique_ptr<Statement> ifTrue, std::unique_ptr<Statement> ifFalse) in IfStatement() 25 , fIfTrue(std::move(ifTrue)) in IfStatement()
|
/external/skqp/src/sksl/ast/ |
D | SkSLASTTernaryExpression.h | 20 std::unique_ptr<ASTExpression> ifTrue, in ASTTernaryExpression() 24 , fIfTrue(std::move(ifTrue)) in ASTTernaryExpression()
|
D | SkSLASTIfStatement.h | 20 std::unique_ptr<ASTStatement> ifTrue, std::unique_ptr<ASTStatement> ifFalse) in ASTIfStatement() 24 , fIfTrue(std::move(ifTrue)) in ASTIfStatement()
|
/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() 165 static DSLPossibleExpression Select(DSLExpression test, DSLExpression ifTrue, 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 | 320 TernaryLValue(JIT* jit, LLVMValueRef test, std::unique_ptr<LValue> ifTrue, in getLValue() argument 324 , fIfTrue(std::move(ifTrue)) in getLValue() 341 LLVMValueRef ifTrue = fIfTrue->load(builder); in getLValue() local 347 LLVMTypeRef type = LLVMPointerType(LLVMTypeOf(ifTrue), 0); in getLValue() 349 LLVMValueRef incomingValues[2] = { ifTrue, ifFalse }; in getLValue() 695 LLVMBasicBlockRef ifTrue = LLVMAppendBasicBlockInContext(fContext, fCurrentFunction, in compileBinary() local 699 LLVMBuildCondBr(builder, left, ifTrue, merge); in compileBinary() 700 this->setBlock(builder, ifTrue); in compileBinary() 706 LLVMBasicBlockRef incomingBlocks[2] = { ifTrue, ifFalse }; in compileBinary() 712 LLVMBasicBlockRef ifTrue = fCurrentBlock; in compileBinary() local [all …]
|
D | SkSLIRGenerator.cpp | 370 std::unique_ptr<Statement> ifTrue = this->convertStatement(*s.fIfTrue); in convertIf() local 371 if (!ifTrue) { in convertIf() 384 return ifTrue; in convertIf() 395 std::move(ifTrue), std::move(ifFalse))); in convertIf() 1517 std::unique_ptr<Expression> ifTrue = this->convertExpression(*expression.fIfTrue); in convertTernaryExpression() local 1518 if (!ifTrue) { in convertTernaryExpression() 1528 if (!determine_binary_type(fContext, Token::EQEQ, ifTrue->fType, ifFalse->fType, &trueType, in convertTernaryExpression() 1531 ifTrue->fType.fName + "', '" + in convertTernaryExpression() 1535 ifTrue = this->coerce(std::move(ifTrue), *trueType); in convertTernaryExpression() 1536 if (!ifTrue) { in convertTernaryExpression() [all …]
|
D | SkSLSPIRVCodeGenerator.cpp | 1683 SpvId ifTrue = this->getLValue(*t.fIfTrue, out)->getPointer(); in getLValue() local 1684 SkASSERT(ifTrue); in getLValue() 1692 this->writeInstruction(SpvOpPhi, this->getType(*fContext.fBool_Type), result, ifTrue, in getLValue() 2836 SpvId ifTrue = this->nextId(); in writeIfStatement() local 2841 this->writeInstruction(SpvOpBranchConditional, test, ifTrue, ifFalse, out); in writeIfStatement() 2842 this->writeLabel(ifTrue, out); in writeIfStatement() 2855 this->writeInstruction(SpvOpBranchConditional, test, ifTrue, ifFalse, out); in writeIfStatement() 2856 this->writeLabel(ifTrue, 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, 129 DSLStatement StaticIf(DSLExpression test, DSLStatement ifTrue,
|
/external/skia/src/sksl/ |
D | SkSLRehydrator.cpp | 392 std::unique_ptr<Statement> ifTrue = this->statement(); in statement() local 395 std::move(ifTrue), std::move(ifFalse)); in statement() 560 std::unique_ptr<Expression> ifTrue = this->expression(); in expression() local 563 std::move(ifTrue), std::move(ifFalse)); in expression()
|
D | SkSLAnalysis.cpp | 450 trueVisitor.visitStatement(*i.ifTrue()); in visitStatement() 1207 (t.ifTrue() && this->visitExpressionPtr(t.ifTrue())) || in visitExpression() 1257 (i.ifTrue() && this->visitStatementPtr(i.ifTrue())) || in visitStatement()
|
D | SkSLIRGenerator.cpp | 495 std::unique_ptr<Statement> ifTrue = this->convertStatement(*(iter++)); in convertIf() local 496 if (!ifTrue) { in convertIf() 499 if (this->detectVarDeclarationWithoutScope(*ifTrue)) { in convertIf() 514 std::move(ifTrue), std::move(ifFalse)); in convertIf() 1420 std::unique_ptr<Expression> ifTrue = this->convertExpression(*(iter++)); in convertTernaryExpression() local 1421 if (!ifTrue) { in convertTernaryExpression() 1429 std::move(ifTrue), std::move(ifFalse)); in convertTernaryExpression()
|
D | SkSLInliner.cpp | 404 expr(t.ifTrue()), expr(t.ifFalse())); in inlineExpression() 486 stmt(i.ifTrue()), stmt(i.ifFalse())); in inlineStatement() 880 this->visitStatement(&ifStmt.ifTrue()); in visitStatement()
|
D | SkSLDehydrator.cpp | 420 this->write(t.ifTrue().get()); in write() 492 this->write(i.ifTrue().get()); in write()
|
/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);
|
D | Reactor.hpp | 3146 RValue<T> IfThenElse(RValue<Bool> condition, RValue<T> ifTrue, RValue<T> ifFalse) in IfThenElse() argument 3149 return RValue<T>(Nucleus::createSelect(condition.value(), ifTrue.value(), ifFalse.value())); in IfThenElse() 3153 RValue<T> IfThenElse(RValue<Bool> condition, const T &ifTrue, RValue<T> ifFalse) in IfThenElse() argument 3156 Value *trueValue = ifTrue.loadValue(); in IfThenElse() 3162 RValue<T> IfThenElse(RValue<Bool> condition, RValue<T> ifTrue, const T &ifFalse) in IfThenElse() argument 3167 return RValue<T>(Nucleus::createSelect(condition.value(), ifTrue.value(), falseValue)); in IfThenElse() 3171 RValue<T> IfThenElse(RValue<Bool> condition, const T &ifTrue, const T &ifFalse) in IfThenElse() argument 3174 Value *trueValue = ifTrue.loadValue(); in IfThenElse()
|
/external/skia/src/sksl/codegen/ |
D | SkSLVMCodeGenerator.cpp | 1350 Value ifTrue, ifFalse; in writeTernaryExpression() local 1354 ifTrue = this->writeExpression(*t.ifTrue()); in writeTernaryExpression() 1361 size_t nslots = ifTrue.slots(); in writeTernaryExpression() 1366 result[i] = skvm::select(test, i32(ifTrue[i]), i32(ifFalse[i])); in writeTernaryExpression() 1538 ScopedCondition ifTrue(this, i32(test)); in writeIfStatement() local 1539 this->writeStatement(*i.ifTrue()); in writeIfStatement()
|
D | SkSLPipelineStageCodeGenerator.cpp | 236 this->writeStatement(*stmt.ifTrue()); in writeIfStatement() 510 this->writeExpression(*t.ifTrue(), Precedence::kTernary); in writeTernaryExpression()
|
D | SkSLSPIRVCodeGenerator.cpp | 2723 if (t.ifTrue()->type().columns() == 1 && in writeTernaryExpression() 2724 t.ifTrue()->isCompileTimeConstant() && in writeTernaryExpression() 2728 SpvId trueId = this->writeExpression(*t.ifTrue(), out); in writeTernaryExpression() 2745 this->writeInstruction(SpvOpStore, var, this->writeExpression(*t.ifTrue(), out), out); in writeTernaryExpression() 3192 SpvId ifTrue = this->nextId(nullptr); in writeIfStatement() local 3197 this->writeInstruction(SpvOpBranchConditional, test, ifTrue, ifFalse, out); in writeIfStatement() 3198 this->writeLabel(ifTrue, out); in writeIfStatement() 3199 this->writeStatement(*stmt.ifTrue(), out); in writeIfStatement() 3211 this->writeInstruction(SpvOpBranchConditional, test, ifTrue, ifFalse, out); in writeIfStatement() 3212 this->writeLabel(ifTrue, out); in writeIfStatement() [all …]
|
D | SkSLMetalCodeGenerator.cpp | 1407 this->writeExpression(*t.ifTrue(), Precedence::kTernary); in writeTernaryExpression() 1890 this->writeStatement(*stmt.ifTrue()); in writeIfStatement() 2345 return this->requirements(t.test().get()) | this->requirements(t.ifTrue().get()) | in requirements() 2398 this->requirements(i.ifTrue().get()) | in requirements()
|