Home
last modified time | relevance | path

Searched refs:ifFalse (Results 1 – 18 of 18) sorted by relevance

/external/skqp/src/sksl/ast/
DSkSLASTTernaryExpression.h21 std::unique_ptr<ASTExpression> ifFalse) in ASTTernaryExpression()
25 , fIfFalse(std::move(ifFalse)) {} in ASTTernaryExpression()
DSkSLASTIfStatement.h20 std::unique_ptr<ASTStatement> ifTrue, std::unique_ptr<ASTStatement> ifFalse) in ASTIfStatement()
25 , fIfFalse(std::move(ifFalse)) {} in ASTIfStatement()
/external/skqp/src/sksl/ir/
DSkSLIfStatement.h21 std::unique_ptr<Statement> ifTrue, std::unique_ptr<Statement> ifFalse) in IfStatement()
26 , fIfFalse(std::move(ifFalse)) {} in IfStatement()
DSkSLTernaryExpression.h21 std::unique_ptr<Expression> ifTrue, std::unique_ptr<Expression> ifFalse) in TernaryExpression()
25 , fIfFalse(std::move(ifFalse)) { in TernaryExpression()
/external/skia/src/sksl/ir/
DSkSLIfStatement.h21 std::unique_ptr<Statement> ifTrue, std::unique_ptr<Statement> ifFalse) in IfStatement()
26 , fIfFalse(std::move(ifFalse)) {} in IfStatement()
DSkSLTernaryExpression.h21 std::unique_ptr<Expression> ifTrue, std::unique_ptr<Expression> ifFalse) in TernaryExpression()
25 , fIfFalse(std::move(ifFalse)) { in TernaryExpression()
/external/skqp/src/sksl/
DSkSLJIT.cpp321 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 …]
DSkSLIRGenerator.cpp374 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 …]
DSkSLSPIRVCodeGenerator.cpp1687 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()
DSkSLParser.cpp1172 std::unique_ptr<ASTStatement> ifFalse; in ifStatement() local
1174 ifFalse = this->statement(); in ifStatement()
1175 if (!ifFalse) { in ifStatement()
1183 std::move(ifFalse))); in ifStatement()
/external/skia/src/sksl/
DSkSLIRGenerator.cpp421 std::unique_ptr<Statement> ifFalse; in convertIf() local
423 ifFalse = this->convertStatement(*(iter++)); in convertIf()
424 if (!ifFalse) { in convertIf()
432 } else if (ifFalse) { in convertIf()
433 return ifFalse; in convertIf()
442 std::move(ifTrue), std::move(ifFalse))); in convertIf()
1727 std::unique_ptr<Expression> ifFalse = this->convertExpression(*(iter++)); in convertTernaryExpression() local
1728 if (!ifFalse) { in convertTernaryExpression()
1734 if (!determine_binary_type(fContext, Token::EQEQ, ifTrue->fType, ifFalse->fType, &trueType, in convertTernaryExpression()
1738 ifFalse->fType.displayName() + "'"); in convertTernaryExpression()
[all …]
DSkSLSPIRVCodeGenerator.cpp1777 SpvId ifFalse = this->getLValue(*t.fIfFalse, out)->getPointer(); in getLValue() local
1778 SkASSERT(ifFalse); in getLValue()
1783 ifTrueLabel, ifFalse, ifFalseLabel, out); in getLValue()
2905 SpvId ifFalse = this->nextId(); in writeIfStatement() local
2909 this->writeInstruction(SpvOpBranchConditional, test, ifTrue, ifFalse, out); in writeIfStatement()
2915 this->writeLabel(ifFalse, out); in writeIfStatement()
2922 this->writeInstruction(SpvOpSelectionMerge, ifFalse, SpvSelectionControlMaskNone, out); in writeIfStatement()
2923 this->writeInstruction(SpvOpBranchConditional, test, ifTrue, ifFalse, out); in writeIfStatement()
2927 this->writeInstruction(SpvOpBranch, ifFalse, out); in writeIfStatement()
2929 this->writeLabel(ifFalse, out); in writeIfStatement()
DSkSLParser.cpp1167 ASTNode::ID ifFalse; in ifStatement() local
1169 ifFalse = this->statement(); in ifStatement()
1170 if (!ifFalse) { in ifStatement()
1173 getNode(result).addChild(ifFalse); in ifStatement()
DSkSLByteCodeGenerator.cpp1143 ByteCode::Register ifFalse = this->writeExpression(*t.fIfFalse); in writeTernaryExpression() local
1151 this->write(ifFalse + i); in writeTernaryExpression()
/external/swiftshader/src/Reactor/
DNucleus.hpp215 static void createCondBr(Value *cond, BasicBlock *ifTrue, BasicBlock *ifFalse);
311 static Value *createSelect(Value *C, Value *ifTrue, Value *ifFalse);
DReactor.hpp3127 RValue<T> IfThenElse(RValue<Bool> condition, RValue<T> ifTrue, RValue<T> ifFalse) in IfThenElse() argument
3130 return RValue<T>(Nucleus::createSelect(condition.value, ifTrue.value, ifFalse.value)); in IfThenElse()
3134 RValue<T> IfThenElse(RValue<Bool> condition, const T &ifTrue, RValue<T> ifFalse) in IfThenElse() argument
3139 return RValue<T>(Nucleus::createSelect(condition.value, trueValue, ifFalse.value)); in IfThenElse()
3143 RValue<T> IfThenElse(RValue<Bool> condition, RValue<T> ifTrue, const T &ifFalse) in IfThenElse() argument
3146 Value *falseValue = ifFalse.loadValue(); in IfThenElse()
3152 RValue<T> IfThenElse(RValue<Bool> condition, const T &ifTrue, const T &ifFalse) in IfThenElse() argument
3156 Value *falseValue = ifFalse.loadValue(); in IfThenElse()
DSubzeroReactor.cpp1105 void Nucleus::createCondBr(Value *cond, BasicBlock *ifTrue, BasicBlock *ifFalse) in createCondBr() argument
1110 auto br = Ice::InstBr::create(::function, cond, ifTrue, ifFalse); in createCondBr()
1837 Value *Nucleus::createSelect(Value *C, Value *ifTrue, Value *ifFalse) in createSelect() argument
1840 ASSERT(ifTrue->getType() == ifFalse->getType()); in createSelect()
1843 auto *select = Ice::InstSelect::create(::function, result, C, ifTrue, ifFalse); in createSelect()
DLLVMReactor.cpp803 void Nucleus::createCondBr(Value *cond, BasicBlock *ifTrue, BasicBlock *ifFalse) in createCondBr() argument
807 jit->builder->CreateCondBr(V(cond), B(ifTrue), B(ifFalse)); in createCondBr()
1552 Value *Nucleus::createSelect(Value *c, Value *ifTrue, Value *ifFalse) in createSelect() argument
1555 return V(jit->builder->CreateSelect(V(c), V(ifTrue), V(ifFalse))); in createSelect()