Home
last modified time | relevance | path

Searched refs:trueBlock (Results 1 – 25 of 28) sorted by relevance

12

/external/llvm-project/mlir/lib/Dialect/SPIRV/
DSPIRVCanonicalization.cpp316 auto *trueBlock = brConditionalOp.getSuccessor(0); in matchAndRewrite() local
320 if (failed(canCanonicalizeSelection(trueBlock, falseBlock, mergeBlock))) in matchAndRewrite()
323 auto trueValue = getSrcValue(trueBlock); in matchAndRewrite()
325 auto ptrValue = getDstPtr(trueBlock); in matchAndRewrite()
327 cast<spirv::StoreOp>(trueBlock->front())->getAttrs(); in matchAndRewrite()
347 LogicalResult canCanonicalizeSelection(Block *trueBlock, Block *falseBlock,
374 Block *trueBlock, Block *falseBlock, Block *mergeBlock) const { in canCanonicalizeSelection() argument
376 if ((std::distance(trueBlock->begin(), trueBlock->end()) != 2) || in canCanonicalizeSelection()
381 auto trueBrStoreOp = dyn_cast<spirv::StoreOp>(trueBlock->front()); in canCanonicalizeSelection()
383 dyn_cast<spirv::BranchOp>(*std::next(trueBlock->begin())); in canCanonicalizeSelection()
/external/deqp-deps/glslang/glslang/MachineIndependent/
DIntermTraverse.cpp206 if (trueBlock) in traverse()
207 trueBlock->traverse(it); in traverse()
211 if (trueBlock) in traverse()
212 trueBlock->traverse(it); in traverse()
DIntermediate.cpp2447 TIntermTyped* TIntermediate::addSelection(TIntermTyped* cond, TIntermTyped* trueBlock, TIntermTyped… in addSelection() argument
2451 if (trueBlock->getBasicType() == EbtVoid && falseBlock->getBasicType() == EbtVoid) { in addSelection()
2452 TIntermNodePair pair = { trueBlock, falseBlock }; in addSelection()
2463 auto children = addPairConversion(EOpSequence, trueBlock, falseBlock); in addSelection()
2464 trueBlock = std::get<0>(children); in addSelection()
2467 if (trueBlock == nullptr || falseBlock == nullptr) in addSelection()
2472 TType targetVectorType(trueBlock->getType().getBasicType(), EvqTemporary, in addSelection()
2475 trueBlock = addUniShapeConversion(EOpMix, targetVectorType, trueBlock); in addSelection()
2479 if (falseBlock->getType() != trueBlock->getType()) in addSelection()
2485 mix = growAggregate(mix, trueBlock); in addSelection()
[all …]
/external/swiftshader/src/OpenGL/compiler/
DIntermTraverse.cpp205 if (trueBlock) in traverse()
206 trueBlock->traverse(it); in traverse()
210 if (trueBlock) in traverse()
211 trueBlock->traverse(it); in traverse()
Dintermediate.h613 …TIntermTyped(TType(EbtVoid, EbpUndefined)), condition(cond), trueBlock(trueB), falseBlock(falseB) … in TIntermSelection()
615 TIntermTyped(type), condition(cond), trueBlock(trueB), falseBlock(falseB) in TIntermSelection()
624 TIntermNode* getTrueBlock() const { return trueBlock; } in getTrueBlock()
630 TIntermNode* trueBlock; variable
Dlocalintermediate.h43 …TIntermTyped* addSelection(TIntermTyped* cond, TIntermTyped* trueBlock, TIntermTyped* falseBlock, …
DOutputASM.cpp1745 TIntermNode *trueBlock = node->getTrueBlock(); in visitSelection() local
1759 trueBlock->traverse(this); in visitSelection()
1760 copy(node, trueBlock); in visitSelection()
1770 trueBlock->traverse(this); in visitSelection()
1772 emit(sw::Shader::OPCODE_SELECT, node, condition, trueBlock, falseBlock); in visitSelection()
1778 if(trueBlock) in visitSelection()
1780 trueBlock->traverse(this); in visitSelection()
1781 copy(node, trueBlock); in visitSelection()
1802 if(trueBlock) in visitSelection()
1804 trueBlock->traverse(this); in visitSelection()
[all …]
DIntermediate.cpp659 TIntermTyped* TIntermediate::addSelection(TIntermTyped* cond, TIntermTyped* trueBlock, TIntermTyped… in addSelection() argument
661 if (trueBlock->getType() != falseBlock->getType()) in addSelection()
670 …if (cond->getAsConstantUnion() && trueBlock->getAsConstantUnion() && falseBlock->getAsConstantUnio… in addSelection()
672 return trueBlock; in addSelection()
680 TIntermSelection* node = new TIntermSelection(cond, trueBlock, falseBlock, trueBlock->getType()); in addSelection()
DParseHelper.cpp3719 TIntermTyped *TParseContext::addTernarySelection(TIntermTyped *cond, TIntermTyped *trueBlock, TInte… in addTernarySelection() argument
3724 if(trueBlock->getType() != falseBlock->getType()) in addTernarySelection()
3726 binaryOpError(loc, ":", trueBlock->getCompleteString(), falseBlock->getCompleteString()); in addTernarySelection()
3733 if(trueBlock->isArray() || trueBlock->getBasicType() == EbtStruct) in addTernarySelection()
3739 return intermediate.addSelection(cond, trueBlock, falseBlock, loc); in addTernarySelection()
DParseHelper.h240 …TIntermTyped *addTernarySelection(TIntermTyped *cond, TIntermTyped *trueBlock, TIntermTyped *false…
/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/
DIntermTraverse.cpp206 if (trueBlock) in traverse()
207 trueBlock->traverse(it); in traverse()
211 if (trueBlock) in traverse()
212 trueBlock->traverse(it); in traverse()
DIntermediate.cpp2447 TIntermTyped* TIntermediate::addSelection(TIntermTyped* cond, TIntermTyped* trueBlock, TIntermTyped… in addSelection() argument
2451 if (trueBlock->getBasicType() == EbtVoid && falseBlock->getBasicType() == EbtVoid) { in addSelection()
2452 TIntermNodePair pair = { trueBlock, falseBlock }; in addSelection()
2463 auto children = addPairConversion(EOpSequence, trueBlock, falseBlock); in addSelection()
2464 trueBlock = std::get<0>(children); in addSelection()
2467 if (trueBlock == nullptr || falseBlock == nullptr) in addSelection()
2472 TType targetVectorType(trueBlock->getType().getBasicType(), EvqTemporary, in addSelection()
2475 trueBlock = addUniShapeConversion(EOpMix, targetVectorType, trueBlock); in addSelection()
2479 if (falseBlock->getType() != trueBlock->getType()) in addSelection()
2485 mix = growAggregate(mix, trueBlock); in addSelection()
[all …]
/external/angle/src/compiler/translator/tree_util/
DRewriteSampleMaskVariable.cpp152 TIntermBlock *trueBlock = new TIntermBlock(); in RewriteSampleMask() local
159 trueBlock->appendStatement(assignment); in RewriteSampleMask()
161 TIntermIfElse *multiSampleOrNot = new TIntermIfElse(equalTo, trueBlock, nullptr); in RewriteSampleMask()
DReplaceClipCullDistanceVariable.cpp228 TIntermBlock *trueBlock = new TIntermBlock(); in assignFuncWithEnableFlags() local
229 trueBlock->appendStatement(assignment); in assignFuncWithEnableFlags()
236 return new TIntermIfElse(nonZero, trueBlock, falseBlock); in assignFuncWithEnableFlags()
/external/angle/src/compiler/translator/tree_ops/d3d/
DUnfoldShortCircuitToIf.cpp151 TIntermBlock *trueBlock = new TIntermBlock(); in visitTernary() local
154 trueBlock->getSequence()->push_back(trueAssignment); in visitTernary()
162 new TIntermIfElse(node->getCondition()->getAsTyped(), trueBlock, falseBlock); in visitTernary()
/external/skqp/src/sksl/
DSkSLJIT.cpp328 LLVMBasicBlockRef trueBlock = LLVMAppendBasicBlockInContext( in getLValue() local
339 LLVMBuildCondBr(builder, fTest, trueBlock, falseBlock); in getLValue()
340 fJIT.setBlock(builder, trueBlock); in getLValue()
350 LLVMBasicBlockRef incomingBlocks[2] = { trueBlock, falseBlock }; in getLValue()
356 LLVMBasicBlockRef trueBlock = LLVMAppendBasicBlockInContext( in getLValue() local
367 LLVMBuildCondBr(builder, fTest, trueBlock, falseBlock); in getLValue()
368 fJIT.setBlock(builder, trueBlock); in getLValue()
1000 LLVMBasicBlockRef trueBlock = LLVMAppendBasicBlockInContext(fContext, fCurrentFunction, in compileTernary() local
1006 LLVMBuildCondBr(builder, test, trueBlock, falseBlock); in compileTernary()
1007 this->setBlock(builder, trueBlock); in compileTernary()
[all …]
/external/angle/third_party/vulkan-deps/glslang/src/glslang/Include/
Dintermediate.h1686 TIntermTyped(EbtVoid), condition(cond), trueBlock(trueB), falseBlock(falseB), in TIntermSelection()
1690 TIntermTyped(type), condition(cond), trueBlock(trueB), falseBlock(falseB), in TIntermSelection()
1696 virtual TIntermNode* getTrueBlock() const { return trueBlock; } in getTrueBlock()
1697 virtual void setTrueBlock(TIntermTyped* tb) { trueBlock = tb; } in setTrueBlock()
1713 TIntermNode* trueBlock; variable
/external/deqp-deps/glslang/glslang/Include/
Dintermediate.h1666 TIntermTyped(EbtVoid), condition(cond), trueBlock(trueB), falseBlock(falseB), in TIntermSelection()
1670 TIntermTyped(type), condition(cond), trueBlock(trueB), falseBlock(falseB), in TIntermSelection()
1675 virtual TIntermNode* getTrueBlock() const { return trueBlock; } in getTrueBlock()
1690 TIntermNode* trueBlock; variable
/external/llvm-project/mlir/include/mlir/Dialect/SPIRV/
DSPIRVControlFlowOps.td137 OpBuilderDAG<(ins "Value":$condition, "Block *":$trueBlock,
149 weightsAttr, trueBlock, falseBlock);
/external/angle/src/compiler/translator/
DBuildSPIRV.h350 spirv::IdRef trueBlock,
DBuildSPIRV.cpp1595 spirv::IdRef trueBlock, in writeBranchConditional() argument
1606 spirv::WriteBranchConditional(getSpirvCurrentFunctionBlock(), conditionValue, trueBlock, in writeBranchConditional()
DOutputSPIRV.cpp1689 const spirv::IdRef trueBlock = node->getOp() == EOpLogicalAnd ? ifBlock : mergeBlock; in startShortCircuit() local
1694 mBuilder.writeBranchConditional(left, trueBlock, falseBlock, mergeBlock); in startShortCircuit()
4787 spirv::IdRef trueBlock = mergeBlock; in visitIfElse() local
4793 trueBlock = conditional->blockIds[nextBlockIndex++]; in visitIfElse()
4800 mBuilder.writeBranchConditional(conditionValue, trueBlock, falseBlock, mergeBlock); in visitIfElse()
/external/swiftshader/src/Shader/
DVertexProgram.cpp1349 BasicBlock *trueBlock = Nucleus::createBasicBlock(); in IFb() local
1352 branch(condition, trueBlock, falseBlock); in IFb()
1398 BasicBlock *trueBlock = Nucleus::createBasicBlock(); in IF() local
1403 branch(notAllFalse, trueBlock, falseBlock); in IF()
DPixelProgram.cpp1665 BasicBlock *trueBlock = Nucleus::createBasicBlock(); in IFb() local
1668 branch(condition, trueBlock, falseBlock); in IFb()
1714 BasicBlock *trueBlock = Nucleus::createBasicBlock(); in IF() local
1719 branch(notAllFalse, trueBlock, falseBlock); in IF()
/external/llvm-project/mlir/lib/Conversion/SPIRVToLLVM/
DConvertSPIRVToLLVM.cpp1134 Block *trueBlock = condBrOp.getTrueBlock(); in matchAndRewrite() local
1137 rewriter.create<LLVM::CondBrOp>(loc, condBrOp.condition(), trueBlock, in matchAndRewrite()

12