/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 4399 const APInt &CaseVal = Case.getCaseValue()->getValue(); in eliminateDeadSwitchCases() local 4400 if (Known.Zero.intersects(CaseVal) || !Known.One.isSubsetOf(CaseVal) || in eliminateDeadSwitchCases() 4401 (CaseVal.getMinSignedBits() > MaxSignificantBitsInCond)) { in eliminateDeadSwitchCases() 4403 LLVM_DEBUG(dbgs() << "SimplifyCFG: switch case " << CaseVal in eliminateDeadSwitchCases() 4626 GetCaseResults(SwitchInst *SI, ConstantInt *CaseVal, BasicBlock *CaseDest, in GetCaseResults() argument 4636 ConstantPool.insert(std::make_pair(SI->getCondition(), CaseVal)); in GetCaseResults() 4697 static uintptr_t MapCaseToResult(ConstantInt *CaseVal, in MapCaseToResult() argument 4702 I.second.push_back(CaseVal); in MapCaseToResult() 4707 std::make_pair(Result, SmallVector<ConstantInt *, 4>(1, CaseVal))); in MapCaseToResult() 4722 ConstantInt *CaseVal = I.getCaseValue(); in InitializeUniqueCases() local [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 4008 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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/ |
D | BasicTTIImpl.h | 279 const APInt &CaseVal = CI.getCaseValue()->getValue(); in getEstimatedNumberOfCaseClusters() local 280 if (CaseVal.sgt(MaxCaseVal)) in getEstimatedNumberOfCaseClusters() 281 MaxCaseVal = CaseVal; in getEstimatedNumberOfCaseClusters() 282 if (CaseVal.slt(MinCaseVal)) in getEstimatedNumberOfCaseClusters() 283 MinCaseVal = CaseVal; in getEstimatedNumberOfCaseClusters()
|
/external/clang/lib/CodeGen/ |
D | CGStmt.cpp | 1197 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/lib/Transforms/Scalar/ |
D | LoopUnswitch.cpp | 981 ConstantInt *CaseVal = i.getCaseValue(); in TryTrivialLoopUnswitch() local 985 if (BranchesInfo.isUnswitched(SI, CaseVal)) in TryTrivialLoopUnswitch() 988 CondVal = CaseVal; in TryTrivialLoopUnswitch()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | LoopUnswitch.cpp | 1153 ConstantInt *CaseVal = Case.getCaseValue(); in TryTrivialLoopUnswitch() local 1157 if (BranchesInfo.isUnswitched(SI, CaseVal)) in TryTrivialLoopUnswitch() 1160 CondVal = CaseVal; in TryTrivialLoopUnswitch()
|
D | SimpleLoopUnswitch.cpp | 666 ConstantInt *CaseVal = CasePair.first; in unswitchTrivialSwitch() local 669 NewSI->addCase(CaseVal, UnswitchedBB); in unswitchTrivialSwitch()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstructionCombining.cpp | 2211 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/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 674 GenericValue CaseVal = getOperandValue(I.getCaseValue(i), SF); in visitSwitchInst() local 675 if (executeICMP_EQ(CondVal, CaseVal, ElTy).IntVal != 0) { in visitSwitchInst()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstructionCombining.cpp | 1241 ConstantInt* CaseVal = SI.getCaseValue(i); in visitSwitchInst() local 1242 Constant* NewCaseVal = ConstantExpr::getSub(cast<Constant>(CaseVal), in visitSwitchInst()
|
/external/swiftshader/third_party/LLVM/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 2429 ConstantInt *CaseVal = in ParseFunctionBody() local 2432 if (CaseVal == 0 || DestBB == 0) { in ParseFunctionBody() 2436 SI->addCase(CaseVal, DestBB); in ParseFunctionBody()
|
/external/swiftshader/third_party/LLVM/lib/Target/CppBackend/ |
D | CPPBackend.cpp | 1067 const ConstantInt* CaseVal = SI->getCaseValue(i); in printInstruction() local 1070 << getOpName(CaseVal) << ", " in printInstruction()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 903 GenericValue CaseVal = getOperandValue(Case.getCaseValue(), SF); in visitSwitchInst() local 904 if (executeICMP_EQ(CondVal, CaseVal, ElTy).IntVal != 0) { in visitSwitchInst()
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 903 GenericValue CaseVal = getOperandValue(i.getCaseValue(), SF); in visitSwitchInst() local 904 if (executeICMP_EQ(CondVal, CaseVal, ElTy).IntVal != 0) { in visitSwitchInst()
|
/external/swiftshader/third_party/LLVM/lib/Target/CBackend/ |
D | CBackend.cpp | 2398 ConstantInt* CaseVal = SI.getCaseValue(i); in visitSwitchInst() local 2401 writeOperand(CaseVal); in visitSwitchInst()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.cpp | 2396 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-7.0/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 4062 ConstantInt *CaseVal = in parseFunctionBody() local 4065 if (!CaseVal || !DestBB) { in parseFunctionBody() 4069 SI->addCase(CaseVal, DestBB); in parseFunctionBody()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.cpp | 2580 const ConstantInt *CaseVal = CC.Low; in sortAndRangeify() local 2584 (CaseVal->getValue() - Clusters[DstIndex - 1].High->getValue()) == 1) { in sortAndRangeify() 2587 Clusters[DstIndex - 1].High = CaseVal; in sortAndRangeify() 10212 const ConstantInt *CaseVal = I.getCaseValue(); in visitSwitch() local 10216 Clusters.push_back(CaseCluster::range(CaseVal, CaseVal, Succ, Prob)); in visitSwitch()
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 5050 ConstantInt *CaseVal = in parseFunctionBody() local 5053 if (!CaseVal || !DestBB) { in parseFunctionBody() 5057 SI->addCase(CaseVal, DestBB); in parseFunctionBody()
|
/external/clang/lib/Sema/ |
D | SemaCodeComplete.cpp | 3875 Expr *CaseVal = Case->getLHS()->IgnoreParenCasts(); in CodeCompleteCase() local 3876 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CaseVal)) in CodeCompleteCase()
|