Home
last modified time | relevance | path

Searched refs:getCondition (Results 1 – 25 of 167) sorted by relevance

1234567

/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DSimplifyLoopConditions.cpp138 if (!mFoundLoopToChange && node->getCondition()) in traverseLoop()
140 node->getCondition()->traverse(this); in traverseLoop()
165 CreateTempInitDeclarationNode(conditionVariable, node->getCondition()->deepCopy()); in traverseLoop()
174 CreateTempAssignmentNode(conditionVariable, node->getCondition()->deepCopy())); in traverseLoop()
204 CreateTempAssignmentNode(conditionVariable, node->getCondition()->deepCopy())); in traverseLoop()
238 if (node->getCondition()) in traverseLoop()
240 conditionInitializer = node->getCondition()->deepCopy(); in traverseLoop()
261 if (node->getCondition()) in traverseLoop()
264 CreateTempAssignmentNode(conditionVariable, node->getCondition()->deepCopy())); in traverseLoop()
DAddAndTrueToLoopCondition.cpp34 if (loop->getCondition() == nullptr) in visitLoop()
43 TIntermBinary *andOp = new TIntermBinary(EOpLogicalAnd, loop->getCondition(), trueValue); in visitLoop()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DGuardWidening.cpp81 static Value *getCondition(Instruction *I) { in getCondition() function
92 return cast<BranchInst>(I)->getCondition(); in getCondition()
262 widenCondCommon(getCondition(ToWiden), NewCondition, ToWiden, Result, in widenGuard()
314 assert(isa<ConstantInt>(getCondition(I)) && "Should be!"); in run()
334 if (isa<ConstantInt>(getCondition(Instr))) in eliminateInstrViaWidening()
372 LLVM_DEBUG(dbgs() << "Score between " << *getCondition(Instr) in eliminateInstrViaWidening()
373 << " and " << *getCondition(Candidate) << " is " in eliminateInstrViaWidening()
393 widenGuard(BestSoFar, getCondition(Instr), InvertCondition); in eliminateInstrViaWidening()
421 if (!isAvailableAt(getCondition(DominatedInstr), DominatingGuard)) in computeWideningScore()
432 if (isWideningCondProfitable(getCondition(DominatedInstr), in computeWideningScore()
[all …]
DSimpleLoopUnswitch.cpp378 if (L.isLoopInvariant(BI.getCondition())) { in unswitchTrivialBranch()
379 Invariants.push_back(BI.getCondition()); in unswitchTrivialBranch()
382 if (auto *CondInst = dyn_cast<Instruction>(BI.getCondition())) in unswitchTrivialBranch()
412 if (cast<Instruction>(BI.getCondition())->getOpcode() != Instruction::Or) in unswitchTrivialBranch()
415 if (cast<Instruction>(BI.getCondition())->getOpcode() != Instruction::And) in unswitchTrivialBranch()
493 assert(cast<Instruction>(BI.getCondition())->getOpcode() == in unswitchTrivialBranch()
497 assert(cast<Instruction>(BI.getCondition())->getOpcode() == in unswitchTrivialBranch()
593 Value *LoopCond = SI.getCondition(); in unswitchTrivialSwitch()
905 if (isa<Constant>(SI->getCondition())) in unswitchAllTrivialConditions()
935 if (!BI->isConditional() || isa<Constant>(BI->getCondition())) in unswitchAllTrivialConditions()
[all …]
DLoopUnswitch.cpp572 Value *Cond = BInst->getCondition(); in isUnreachableDueToPreviousUnswitching()
741 Value *LoopCond = FindLIVLoopCondition(BI->getCondition(), currentLoop, in processCurrentLoop()
751 Value *SC = SI->getCondition(); in processCurrentLoop()
815 Value *LoopCond = FindLIVLoopCondition(SI->getCondition(), currentLoop, in processCurrentLoop()
1097 } else if (BI->getCondition() == ConstantInt::getTrue(Context)) { in TryTrivialLoopUnswitch()
1099 } else if (BI->getCondition() == ConstantInt::getFalse(Context)) { in TryTrivialLoopUnswitch()
1108 ConstantInt *Cond = dyn_cast<ConstantInt>(SI->getCondition()); in TryTrivialLoopUnswitch()
1131 Value *LoopCond = FindLIVLoopCondition(BI->getCondition(), currentLoop, in TryTrivialLoopUnswitch()
1137 if (!LoopCond || LoopCond != BI->getCondition()) in TryTrivialLoopUnswitch()
1166 Value *LoopCond = FindLIVLoopCondition(SI->getCondition(), currentLoop, in TryTrivialLoopUnswitch()
[all …]
DLowerExpectIntrinsic.cpp59 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect()
252 ICmpInst *CmpI = dyn_cast<ICmpInst>(BSI.getCondition()); in handleBrSelExpect()
256 CI = dyn_cast<CallInst>(BSI.getCondition()); in handleBrSelExpect()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp274 CmpInst *Ci2 = dyn_cast<CmpInst>(SI2->getCondition()); in isProfitableToFoldUnconditional()
685 Cond = dyn_cast<Instruction>(SI->getCondition()); in EraseTerminatorAndDCECond()
688 Cond = dyn_cast<Instruction>(BI->getCondition()); in EraseTerminatorAndDCECond()
706 CV = SI->getCondition(); in isValueEqualityComparison()
708 if (BI->isConditional() && BI->getCondition()->hasOneUse()) in isValueEqualityComparison()
709 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) { in isValueEqualityComparison()
738 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); in GetValueEqualityComparisonCases()
983 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); in GetBranchWeights()
1414 Builder.CreateSelect(BI->getCondition(), BB1V, BB2V, in HoistThenElseCodeToIf()
1966 Value *BrCond = BI->getCondition(); in SpeculativelyExecuteBB()
[all …]
DGuardUtils.cpp75 CheckBI->setCondition(B.CreateAnd(CheckBI->getCondition(), WC, in makeGuardControlFlowExplicit()
101 Instruction *WCAnd = cast<Instruction>(WidenableBR->getCondition()); in widenWidenableBranch()
120 Instruction *WCAnd = cast<Instruction>(WidenableBR->getCondition()); in setWidenableBranchCond()
DFlattenCFG.cpp177 Value *PC = PBI->getCondition(); in FlattenParallelAndOr()
255 auto *CI = dyn_cast<CmpInst>(BI->getCondition()); in FlattenParallelAndOr()
284 Value *PC = PBI->getCondition(); in FlattenParallelAndOr()
293 Value *CC = PBI->getCondition(); in FlattenParallelAndOr()
448 Value *CC = PBI->getCondition(); in MergeIfRegion()
DPredicateInfo.cpp425 if (match(BI->getCondition(), m_And(m_Cmp(Pred, m_Value(), m_Value()), in processBranch()
427 match(BI->getCondition(), m_Or(m_Cmp(Pred, m_Value(), m_Value()), in processBranch()
429 auto *BinOp = cast<BinaryOperator>(BI->getCondition()); in processBranch()
436 ConditionsToProcess.push_back(BI->getCondition()); in processBranch()
437 } else if (isa<CmpInst>(BI->getCondition())) { in processBranch()
438 ConditionsToProcess.push_back(BI->getCondition()); in processBranch()
464 Value *Op = SI->getCondition(); in processSwitch()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/apple/
DAddAndTrueToLoopCondition.cpp35 if (loop->getCondition() == nullptr) in visitLoop()
44 TIntermBinary *andOp = new TIntermBinary(EOpLogicalAnd, loop->getCondition(), trueValue); in visitLoop()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DSparsePropagation.h302 getValueState(KeyInfo::getLatticeKeyFromValue(BI->getCondition())); in getFeasibleSuccessors()
305 KeyInfo::getLatticeKeyFromValue(BI->getCondition())); in getFeasibleSuccessors()
320 std::move(BCValue), BI->getCondition()->getType())); in getFeasibleSuccessors()
341 SCValue = getValueState(KeyInfo::getLatticeKeyFromValue(SI.getCondition())); in getFeasibleSuccessors()
344 KeyInfo::getLatticeKeyFromValue(SI.getCondition())); in getFeasibleSuccessors()
358 std::move(SCValue), SI.getCondition()->getType())); in getFeasibleSuccessors()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp64 if (!match(Sel.getCondition(), m_Cmp(Pred, m_Value(X), m_Constant(C)))) in foldSelectBinOpIdentity()
295 Value *Cond = SI.getCondition(); in foldSelectOpOp()
447 Value *NewSel = Builder.CreateSelect(SI.getCondition(), OOp, C); in foldSelectIntoOp()
478 Value *NewSel = Builder.CreateSelect(SI.getCondition(), C, OOp); in foldSelectIntoOp()
1531 const PHINode *CondPHI = cast<PHINode>(SI.getCondition()); in canSelectOperandBeMappingIntoPredBlock()
1622 Builder.CreateSelect(SI->getCondition(), SI->getFalseValue(), in foldSPFofSPF()
1681 Value *CondVal = SI.getCondition(); in foldAddSubSelect()
1756 Value *CondVal = SI.getCondition(); in foldOverflowingAddSubSelect()
1890 Value *Cond = Sel.getCondition(); in foldSelectExtConst()
1935 Value *CondVal = SI.getCondition(); in canonicalizeSelectToShuffle()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/
DOutputTree.cpp482 node->getCondition()->traverse(this); in visitTernary()
512 node->getCondition()->traverse(this); in visitIfElse()
550 if (node->getCondition() == nullptr) in visitCase()
619 if (node->getCondition()) in visitLoop()
622 node->getCondition()->traverse(this); in visitLoop()
DOutputGLSLBase.cpp838 node->getCondition()->traverse(this); in visitTernary()
852 node->getCondition()->traverse(this); in visitIfElse()
1082 if (node->getCondition()) in visitLoop()
1083 node->getCondition()->traverse(this); in visitLoop()
1095 ASSERT(node->getCondition() != nullptr); in visitLoop()
1096 node->getCondition()->traverse(this); in visitLoop()
1109 ASSERT(node->getCondition() != nullptr); in visitLoop()
1110 node->getCondition()->traverse(this); in visitLoop()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DOutputTree.cpp506 node->getCondition()->traverse(this); in visitTernary()
536 node->getCondition()->traverse(this); in visitIfElse()
574 if (node->getCondition() == nullptr) in visitCase()
643 if (node->getCondition()) in visitLoop()
646 node->getCondition()->traverse(this); in visitLoop()
DOutputGLSLBase.cpp790 node->getCondition()->traverse(this); in visitTernary()
804 node->getCondition()->traverse(this); in visitIfElse()
993 if (node->getCondition()) in visitLoop()
994 node->getCondition()->traverse(this); in visitLoop()
1006 ASSERT(node->getCondition() != nullptr); in visitLoop()
1007 node->getCondition()->traverse(this); in visitLoop()
1020 ASSERT(node->getCondition() != nullptr); in visitLoop()
1021 node->getCondition()->traverse(this); in visitLoop()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/
DFence.h40 GLenum getCondition() const { return mCondition; } in getCondition() function
70 GLenum getCondition() const { return mCondition; } in getCondition() function
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DFence.h42 GLenum getCondition() const { return mCondition; } in getCondition() function
72 GLenum getCondition() const { return mCondition; } in getCondition() function
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DControlHeightReduction.cpp919 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, in checkScopeHoistable()
940 bool IsHoistable = checkHoistValue(Branch->getCondition(), InsertPoint, in checkScopeHoistable()
973 assert(checkHoistValue(Branch->getCondition(), InsertPoint, in checkScopeHoistable()
981 assert(checkHoistValue(SI->getCondition(), InsertPoint, DT, in checkScopeHoistable()
1050 ConditionValues.insert(BI->getCondition()); in getCHRConditionValuesForRegion()
1053 ConditionValues.insert(SI->getCondition()); in getCHRConditionValuesForRegion()
1415 bool IsHoistable = checkHoistValue(BI->getCondition(), InsertPoint, DT, in setCHRRegions()
1427 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, DT, in setCHRRegions()
1513 hoistValue(BI->getCondition(), HoistPoint, R, Scope->HoistStopMap, in hoistScopeConditions()
1521 hoistValue(SI->getCondition(), HoistPoint, R, Scope->HoistStopMap, in hoistScopeConditions()
[all …]
/third_party/vk-gl-cts/modules/glshared/
DglsAttributeLocationTests.cpp136 if (iter->getCondition() != Cond::COND_NEVER && iter->getCondition() != Cond::COND_ALWAYS) in generateConditionUniformDefinitions()
137 conditions.insert(iter->getCondition().getName()); in generateConditionUniformDefinitions()
179 if (iter->getCondition() == Cond::COND_NEVER) in generateOutputCode()
195 else if (iter->getCondition() == Cond::COND_ALWAYS) in generateOutputCode()
208 …"\tif (u_" << iter->getCondition().getName() << (iter->getCondition().getNegate() ? " != " : " == … in generateOutputCode()
582 const bool isActive = attrib.getCondition() != Cond::COND_NEVER; in checkActiveAttribQuery()
616 …<< (attrib.getCondition() != Cond::COND_NEVER && expectedLocation != Attribute::LOC_UNDEF ? ", exp… in checkAttribLocationQuery()
619 if (attrib.getCondition() == Cond::COND_NEVER && location != -1) in checkAttribLocationQuery()
622 …if (attrib.getCondition() != Cond::COND_NEVER && expectedLocation != Attribute::LOC_UNDEF && expec… in checkAttribLocationQuery()
625 …isOk &= (attrib.getCondition() == Cond::COND_NEVER || expectedLocation == Attribute::LOC_UNDEF || … in checkAttribLocationQuery()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DSimplifyLoopConditions.cpp179 if (!mFoundLoopToChange && node->getCondition()) in traverseLoop()
181 node->getCondition()->traverse(this); in traverseLoop()
197 mLoop.condition = node->getCondition(); in traverseLoop()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/ObjCARC/
DProvenanceAnalysis.cpp47 if (A->getCondition() == SB->getCondition()) in relatedSelect()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DHardwareLoops.cpp351 if (BI->isUnconditional() || !isa<ICmpInst>(BI->getCondition())) in CanGenerateTest()
356 auto ICmp = cast<ICmpInst>(BI->getCondition()); in CanGenerateTest()
460 Value *OldCond = ExitBranch->getCondition(); in InsertLoopDec()
505 Value *OldCond = ExitBranch->getCondition(); in UpdateBranch()
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
Dspirvcapgenerator.py42 def getCondition(self, enable, parent): member in SpirvCapabilityOutputGenerator
70 condition = self.getCondition(enable, parent=enables)

1234567