/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | SwitchLoweringUtils.cpp | 482 const ConstantInt *CaseVal = CC.Low; in sortAndRangeify() local 486 (CaseVal->getValue() - Clusters[DstIndex - 1].High->getValue()) == 1) { in sortAndRangeify() 489 Clusters[DstIndex - 1].High = CaseVal; in sortAndRangeify()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | SimplifyCFG.cpp | 5671 const APInt &CaseVal = Case.getCaseValue()->getValue(); in eliminateDeadSwitchCases() local 5672 if (Known.Zero.intersects(CaseVal) || !Known.One.isSubsetOf(CaseVal) || in eliminateDeadSwitchCases() 5673 (CaseVal.getSignificantBits() > MaxSignificantBitsInCond)) { in eliminateDeadSwitchCases() 5677 LLVM_DEBUG(dbgs() << "SimplifyCFG: switch case " << CaseVal in eliminateDeadSwitchCases() 5908 getCaseResults(SwitchInst *SI, ConstantInt *CaseVal, BasicBlock *CaseDest, in getCaseResults() argument 5918 ConstantPool.insert(std::make_pair(SI->getCondition(), CaseVal)); in getCaseResults() 5979 static size_t mapCaseToResult(ConstantInt *CaseVal, in mapCaseToResult() argument 5984 I.second.push_back(CaseVal); in mapCaseToResult() 5989 std::make_pair(Result, SmallVector<ConstantInt *, 4>(1, CaseVal))); in mapCaseToResult() 6005 ConstantInt *CaseVal = I.getCaseValue(); in initializeUniqueCases() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
H A D | AggressiveInstCombine.cpp | 1156 ConstantInt *CaseVal = ConstantInt::get(ByteTy, Str[I]); in foldMemChr() local 1157 if (!Cases.insert(CaseVal).second) in foldMemChr() 1162 SI->addCase(CaseVal, BBCase); in foldMemChr()
|
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/ |
H A D | IRMutator.cpp | 485 uint64_t CaseVal = getUniqueCaseValue(CasesTaken, MaxCaseVal, IB); in mutate() local 487 ConstantInt *OnValue = ConstantInt::get(IntTy, CaseVal); in mutate()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGStmt.cpp | 1718 llvm::ConstantInt *CaseVal = in EmitCaseStmt() local 1732 APValue(llvm::APSInt(CaseVal->getValue()))); in EmitCaseStmt() 1750 SwitchInsn->addCase(CaseVal, Block.getBlock()); in EmitCaseStmt() 1766 SwitchInsn->addCase(CaseVal, CaseDest); in EmitCaseStmt() 1787 llvm::ConstantInt *CaseVal = in EmitCaseStmt() local 1801 SwitchInsn->addCase(CaseVal, CaseDest); in EmitCaseStmt()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | BasicTTIImpl.h | 475 const APInt &CaseVal = CI.getCaseValue()->getValue(); in getEstimatedNumberOfCaseClusters() local 476 if (CaseVal.sgt(MaxCaseVal)) in getEstimatedNumberOfCaseClusters() 477 MaxCaseVal = CaseVal; in getEstimatedNumberOfCaseClusters() 478 if (CaseVal.slt(MinCaseVal)) in getEstimatedNumberOfCaseClusters() 479 MinCaseVal = CaseVal; in getEstimatedNumberOfCaseClusters()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstructionCombining.cpp | 3789 const APInt &CaseVal = Case.getCaseValue()->getValue(); in visitSwitchInst() local 3790 APInt ShiftedCase = Shl->hasNoSignedWrap() ? CaseVal.ashr(ShiftAmt) in visitSwitchInst() 3791 : CaseVal.lshr(ShiftAmt); in visitSwitchInst() 3805 const APInt &CaseVal = Case.getCaseValue()->getValue(); in visitSwitchInst() local 3806 return IsZExt ? CaseVal.isIntN(NewWidth) in visitSwitchInst() 3807 : CaseVal.isSignedIntN(NewWidth); in visitSwitchInst()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/ |
H A D | Execution.cpp | 922 GenericValue CaseVal = getOperandValue(Case.getCaseValue(), SF); in visitSwitchInst() local 923 if (executeICMP_EQ(CondVal, CaseVal, ElTy).IntVal != 0) { in visitSwitchInst()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | IRTranslator.cpp | 701 const ConstantInt *CaseVal = I.getCaseValue(); in translateSwitch() local 705 Clusters.push_back(CaseCluster::range(CaseVal, CaseVal, Succ, Prob)); in translateSwitch()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | SimpleLoopUnswitch.cpp | 930 ConstantInt *CaseVal = std::get<0>(ExitCase); in unswitchTrivialSwitch() local 933 NewSIW.addCase(CaseVal, UnswitchedBB, std::get<2>(ExitCase)); in unswitchTrivialSwitch()
|
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
H A D | BitcodeReader.cpp | 5697 ConstantInt *CaseVal = dyn_cast_or_null<ConstantInt>( in parseFunctionBody() local 5700 if (!CaseVal || !DestBB) { in parseFunctionBody() 5704 SI->addCase(CaseVal, DestBB); in parseFunctionBody()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaCodeComplete.cpp | 6044 Expr *CaseVal = Case->getLHS()->IgnoreParenCasts(); in CodeCompleteCase() local 6045 if (auto *DRE = dyn_cast<DeclRefExpr>(CaseVal)) in CodeCompleteCase()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAGBuilder.cpp | 12314 const ConstantInt *CaseVal = I.getCaseValue(); in visitSwitch() local 12318 Clusters.push_back(CaseCluster::range(CaseVal, CaseVal, Succ, Prob)); in visitSwitch()
|