/external/llvm-project/mlir/lib/Dialect/SPIRV/ |
D | SPIRVCanonicalization.cpp | 316 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/ |
D | IntermTraverse.cpp | 206 if (trueBlock) in traverse() 207 trueBlock->traverse(it); in traverse() 211 if (trueBlock) in traverse() 212 trueBlock->traverse(it); in traverse()
|
D | Intermediate.cpp | 2447 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/ |
D | IntermTraverse.cpp | 205 if (trueBlock) in traverse() 206 trueBlock->traverse(it); in traverse() 210 if (trueBlock) in traverse() 211 trueBlock->traverse(it); in traverse()
|
D | intermediate.h | 613 …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
|
D | localintermediate.h | 43 …TIntermTyped* addSelection(TIntermTyped* cond, TIntermTyped* trueBlock, TIntermTyped* falseBlock, …
|
D | OutputASM.cpp | 1745 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 …]
|
D | Intermediate.cpp | 659 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()
|
D | ParseHelper.cpp | 3719 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()
|
D | ParseHelper.h | 240 …TIntermTyped *addTernarySelection(TIntermTyped *cond, TIntermTyped *trueBlock, TIntermTyped *false…
|
/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/ |
D | IntermTraverse.cpp | 206 if (trueBlock) in traverse() 207 trueBlock->traverse(it); in traverse() 211 if (trueBlock) in traverse() 212 trueBlock->traverse(it); in traverse()
|
D | Intermediate.cpp | 2447 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/ |
D | RewriteSampleMaskVariable.cpp | 152 TIntermBlock *trueBlock = new TIntermBlock(); in RewriteSampleMask() local 159 trueBlock->appendStatement(assignment); in RewriteSampleMask() 161 TIntermIfElse *multiSampleOrNot = new TIntermIfElse(equalTo, trueBlock, nullptr); in RewriteSampleMask()
|
D | ReplaceClipCullDistanceVariable.cpp | 228 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/ |
D | UnfoldShortCircuitToIf.cpp | 151 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/ |
D | SkSLJIT.cpp | 328 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/ |
D | intermediate.h | 1686 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/ |
D | intermediate.h | 1666 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/ |
D | SPIRVControlFlowOps.td | 137 OpBuilderDAG<(ins "Value":$condition, "Block *":$trueBlock, 149 weightsAttr, trueBlock, falseBlock);
|
/external/angle/src/compiler/translator/ |
D | BuildSPIRV.h | 350 spirv::IdRef trueBlock,
|
D | BuildSPIRV.cpp | 1595 spirv::IdRef trueBlock, in writeBranchConditional() argument 1606 spirv::WriteBranchConditional(getSpirvCurrentFunctionBlock(), conditionValue, trueBlock, in writeBranchConditional()
|
D | OutputSPIRV.cpp | 1689 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/ |
D | VertexProgram.cpp | 1349 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()
|
D | PixelProgram.cpp | 1665 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/ |
D | ConvertSPIRVToLLVM.cpp | 1134 Block *trueBlock = condBrOp.getTrueBlock(); in matchAndRewrite() local 1137 rewriter.create<LLVM::CondBrOp>(loc, condBrOp.condition(), trueBlock, in matchAndRewrite()
|