Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DSwitchLoweringUtils.cpp476 const ConstantInt *CaseVal = CC.Low; in sortAndRangeify() local
480 (CaseVal->getValue() - Clusters[DstIndex - 1].High->getValue()) == 1) { in sortAndRangeify()
483 Clusters[DstIndex - 1].High = CaseVal; in sortAndRangeify()
/external/llvm-project/llvm/lib/CodeGen/
DSwitchLoweringUtils.cpp479 const ConstantInt *CaseVal = CC.Low; in sortAndRangeify() local
483 (CaseVal->getValue() - Clusters[DstIndex - 1].High->getValue()) == 1) { in sortAndRangeify()
486 Clusters[DstIndex - 1].High = CaseVal; in sortAndRangeify()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp4530 const APInt &CaseVal = Case.getCaseValue()->getValue(); in eliminateDeadSwitchCases() local
4531 if (Known.Zero.intersects(CaseVal) || !Known.One.isSubsetOf(CaseVal) || in eliminateDeadSwitchCases()
4532 (CaseVal.getMinSignedBits() > MaxSignificantBitsInCond)) { in eliminateDeadSwitchCases()
4534 LLVM_DEBUG(dbgs() << "SimplifyCFG: switch case " << CaseVal in eliminateDeadSwitchCases()
4737 GetCaseResults(SwitchInst *SI, ConstantInt *CaseVal, BasicBlock *CaseDest, in GetCaseResults() argument
4747 ConstantPool.insert(std::make_pair(SI->getCondition(), CaseVal)); in GetCaseResults()
4808 static uintptr_t MapCaseToResult(ConstantInt *CaseVal, in MapCaseToResult() argument
4813 I.second.push_back(CaseVal); in MapCaseToResult()
4818 std::make_pair(Result, SmallVector<ConstantInt *, 4>(1, CaseVal))); in MapCaseToResult()
4833 ConstantInt *CaseVal = I.getCaseValue(); in InitializeUniqueCases() local
[all …]
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp4008 APInt CaseVal = Case.getCaseValue()->getValue(); in EliminateDeadSwitchCases() local
4009 if ((CaseVal & KnownZero) != 0 || (CaseVal & KnownOne) != KnownOne || in EliminateDeadSwitchCases()
4010 (CaseVal.getMinSignedBits() > MaxSignificantBitsInCond)) { in EliminateDeadSwitchCases()
4012 DEBUG(dbgs() << "SimplifyCFG: switch case " << CaseVal << " is dead.\n"); in EliminateDeadSwitchCases()
4210 GetCaseResults(SwitchInst *SI, ConstantInt *CaseVal, BasicBlock *CaseDest, in GetCaseResults() argument
4220 ConstantPool.insert(std::make_pair(SI->getCondition(), CaseVal)); in GetCaseResults()
4286 static void MapCaseToResult(ConstantInt *CaseVal, in MapCaseToResult() argument
4291 I.second.push_back(CaseVal); in MapCaseToResult()
4296 std::make_pair(Result, SmallVector<ConstantInt *, 4>(1, CaseVal))); in MapCaseToResult()
4309 ConstantInt *CaseVal = I.getCaseValue(); in InitializeUniqueCases() local
[all …]
/external/llvm-project/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp4684 const APInt &CaseVal = Case.getCaseValue()->getValue(); in eliminateDeadSwitchCases() local
4685 if (Known.Zero.intersects(CaseVal) || !Known.One.isSubsetOf(CaseVal) || in eliminateDeadSwitchCases()
4686 (CaseVal.getMinSignedBits() > MaxSignificantBitsInCond)) { in eliminateDeadSwitchCases()
4688 LLVM_DEBUG(dbgs() << "SimplifyCFG: switch case " << CaseVal in eliminateDeadSwitchCases()
4891 GetCaseResults(SwitchInst *SI, ConstantInt *CaseVal, BasicBlock *CaseDest, in GetCaseResults() argument
4901 ConstantPool.insert(std::make_pair(SI->getCondition(), CaseVal)); in GetCaseResults()
4962 static uintptr_t MapCaseToResult(ConstantInt *CaseVal, in MapCaseToResult() argument
4967 I.second.push_back(CaseVal); in MapCaseToResult()
4972 std::make_pair(Result, SmallVector<ConstantInt *, 4>(1, CaseVal))); in MapCaseToResult()
4987 ConstantInt *CaseVal = I.getCaseValue(); in InitializeUniqueCases() local
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DBasicTTIImpl.h353 const APInt &CaseVal = CI.getCaseValue()->getValue(); in getEstimatedNumberOfCaseClusters() local
354 if (CaseVal.sgt(MaxCaseVal)) in getEstimatedNumberOfCaseClusters()
355 MaxCaseVal = CaseVal; in getEstimatedNumberOfCaseClusters()
356 if (CaseVal.slt(MinCaseVal)) in getEstimatedNumberOfCaseClusters()
357 MinCaseVal = CaseVal; in getEstimatedNumberOfCaseClusters()
/external/llvm/lib/Transforms/Scalar/
DLoopUnswitch.cpp981 ConstantInt *CaseVal = i.getCaseValue(); in TryTrivialLoopUnswitch() local
985 if (BranchesInfo.isUnswitched(SI, CaseVal)) in TryTrivialLoopUnswitch()
988 CondVal = CaseVal; in TryTrivialLoopUnswitch()
/external/clang/lib/CodeGen/
DCGStmt.cpp1197 llvm::ConstantInt *CaseVal = in EmitCaseStmt() local
1212 SwitchInsn->addCase(CaseVal, Block.getBlock()); in EmitCaseStmt()
1228 SwitchInsn->addCase(CaseVal, CaseDest); in EmitCaseStmt()
1245 llvm::ConstantInt *CaseVal = in EmitCaseStmt() local
1255 SwitchInsn->addCase(CaseVal, CaseDest); in EmitCaseStmt()
/external/llvm-project/llvm/include/llvm/CodeGen/
DBasicTTIImpl.h338 const APInt &CaseVal = CI.getCaseValue()->getValue(); in getEstimatedNumberOfCaseClusters() local
339 if (CaseVal.sgt(MaxCaseVal)) in getEstimatedNumberOfCaseClusters()
340 MaxCaseVal = CaseVal; in getEstimatedNumberOfCaseClusters()
341 if (CaseVal.slt(MinCaseVal)) in getEstimatedNumberOfCaseClusters()
342 MinCaseVal = CaseVal; in getEstimatedNumberOfCaseClusters()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DLoopUnswitch.cpp1167 ConstantInt *CaseVal = Case.getCaseValue(); in tryTrivialLoopUnswitch() local
1171 if (BranchesInfo.isUnswitched(SI, CaseVal)) in tryTrivialLoopUnswitch()
1174 CondVal = CaseVal; in tryTrivialLoopUnswitch()
DSimpleLoopUnswitch.cpp776 ConstantInt *CaseVal = std::get<0>(ExitCase); in unswitchTrivialSwitch() local
779 NewSIW.addCase(CaseVal, UnswitchedBB, std::get<2>(ExitCase)); in unswitchTrivialSwitch()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopUnswitch.cpp1186 ConstantInt *CaseVal = Case.getCaseValue(); in TryTrivialLoopUnswitch() local
1190 if (BranchesInfo.isUnswitched(SI, CaseVal)) in TryTrivialLoopUnswitch()
1193 CondVal = CaseVal; in TryTrivialLoopUnswitch()
DSimpleLoopUnswitch.cpp752 ConstantInt *CaseVal = std::get<0>(ExitCase); in unswitchTrivialSwitch() local
755 NewSIW.addCase(CaseVal, UnswitchedBB, std::get<2>(ExitCase)); in unswitchTrivialSwitch()
/external/llvm-project/clang/lib/CodeGen/
DCGStmt.cpp1383 llvm::ConstantInt *CaseVal = in EmitCaseStmt() local
1400 SwitchInsn->addCase(CaseVal, Block.getBlock()); in EmitCaseStmt()
1416 SwitchInsn->addCase(CaseVal, CaseDest); in EmitCaseStmt()
1437 llvm::ConstantInt *CaseVal = in EmitCaseStmt() local
1451 SwitchInsn->addCase(CaseVal, CaseDest); in EmitCaseStmt()
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp2211 ConstantInt *CaseVal = i.getCaseValue(); in visitSwitchInst() local
2212 Constant *LHS = CaseVal; in visitSwitchInst()
2215 ? ConstantExpr::getZExt(CaseVal, Cond->getType()) in visitSwitchInst()
2216 : ConstantExpr::getSExt(CaseVal, Cond->getType()); in visitSwitchInst()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DIRTranslator.cpp446 const ConstantInt *CaseVal = I.getCaseValue(); in translateSwitch() local
450 Clusters.push_back(CaseCluster::range(CaseVal, CaseVal, Succ, Prob)); in translateSwitch()
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/
DIRTranslator.cpp681 const ConstantInt *CaseVal = I.getCaseValue(); in translateSwitch() local
685 Clusters.push_back(CaseCluster::range(CaseVal, CaseVal, Succ, Prob)); in translateSwitch()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp956 GenericValue CaseVal = getOperandValue(Case.getCaseValue(), SF); in visitSwitchInst() local
957 if (executeICMP_EQ(CondVal, CaseVal, ElTy).IntVal != 0) { in visitSwitchInst()
/external/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp903 GenericValue CaseVal = getOperandValue(i.getCaseValue(), SF); in visitSwitchInst() local
904 if (executeICMP_EQ(CondVal, CaseVal, ElTy).IntVal != 0) { in visitSwitchInst()
/external/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp958 GenericValue CaseVal = getOperandValue(Case.getCaseValue(), SF); in visitSwitchInst() local
959 if (executeICMP_EQ(CondVal, CaseVal, ElTy).IntVal != 0) { in visitSwitchInst()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp2396 const ConstantInt *CaseVal = CC.Low; in sortAndRangeify() local
2400 (CaseVal->getValue() - Clusters[DstIndex - 1].High->getValue()) == 1) { in sortAndRangeify()
2403 Clusters[DstIndex - 1].High = CaseVal; in sortAndRangeify()
9028 const ConstantInt *CaseVal = I.getCaseValue(); in visitSwitch() local
9032 Clusters.push_back(CaseCluster::range(CaseVal, CaseVal, Succ, Prob)); in visitSwitch()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp4435 ConstantInt *CaseVal = in parseFunctionBody() local
4438 if (!CaseVal || !DestBB) { in parseFunctionBody()
4442 SI->addCase(CaseVal, DestBB); in parseFunctionBody()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp5050 ConstantInt *CaseVal = in parseFunctionBody() local
5053 if (!CaseVal || !DestBB) { in parseFunctionBody()
5057 SI->addCase(CaseVal, DestBB); in parseFunctionBody()
/external/llvm-project/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp4537 ConstantInt *CaseVal = in parseFunctionBody() local
4540 if (!CaseVal || !DestBB) { in parseFunctionBody()
4544 SI->addCase(CaseVal, DestBB); in parseFunctionBody()
/external/clang/lib/Sema/
DSemaCodeComplete.cpp3875 Expr *CaseVal = Case->getLHS()->IgnoreParenCasts(); in CodeCompleteCase() local
3876 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CaseVal)) in CodeCompleteCase()

12