Home
last modified time | relevance | path

Searched refs:getCaseValue (Results 1 – 25 of 35) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLowerSwitch.cpp314 Cases.push_back(CaseRange(Case.getCaseValue(), Case.getCaseValue(), in Clusterify()
H A DSimplifyCFG.cpp832 Cases.push_back(ValueEqualityComparisonCase(Case.getCaseValue(), in getValueEqualityComparisonCases()
992 if (DeadCases.count(i->getCaseValue())) { in simplifyEqualityComparisonWithOnlyPredecessor()
5688 CasesA.push_back(Case.getCaseValue()); in turnSwitchRangeIntoICmp()
5694 CasesB.push_back(Case.getCaseValue()); in turnSwitchRangeIntoICmp()
5821 const APInt &CaseVal = Case.getCaseValue()->getValue(); in eliminateDeadSwitchCases()
5824 DeadCases.push_back(Case.getCaseValue()); in eliminateDeadSwitchCases()
5859 MissingCaseVal ^= Case.getCaseValue()->getValue().getLimitedValue(); in eliminateDeadSwitchCases()
5937 ConstantInt *CaseValue = Case.getCaseValue(); in forwardSwitchConditionToPHI()
6154 ConstantInt *CaseVal = I.getCaseValue(); in initializeUniqueCases()
6849 ConstantInt *MinCaseVal = CI->getCaseValue(); in switchToLookupTable()
[all …]
H A DPredicateInfo.cpp450 Op, SI->getParent(), TargetBlock, C.getCaseValue(), SI); in processSwitch()
H A DLocal.cpp212 if (It->getCaseValue() == CI) { in ConstantFoldTerminator()
313 FirstCase.getCaseValue(), "cond"); in ConstantFoldTerminator()
H A DSCCPSolver.cpp1213 const APInt &CaseValue = Case.getCaseValue()->getValue(); in getFeasibleSuccessors()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DCFGPrinter.h240 OS << Case.getCaseValue()->getValue();
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DTracker.cpp236 Cases.push_back({C.getCaseValue(), C.getCaseSuccessor()}); in SwitchRemoveCase()
/freebsd/contrib/llvm-project/llvm/tools/llvm-diff/lib/
H A DDifferenceEngine.cpp505 LCases[Case.getCaseValue()] = Case.getCaseSuccessor(); in diff()
508 const ConstantInt *CaseValue = Case.getCaseValue(); in diff()
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Syntax/
H A DNodes.h252 Expression *getCaseValue();
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp4128 if (!CR.contains(Case.getCaseValue()->getValue())) in simplifySwitchOnSelectUsingRanges()
4141 Constant *NewCase = ConstantExpr::getSub(Case.getCaseValue(), AddRHS); in visitSwitchInst()
4153 Constant *NewCase = ConstantExpr::getSub(SubLHS, Case.getCaseValue()); in visitSwitchInst()
4165 return Case.getCaseValue()->getValue().countr_zero() >= ShiftAmt; in visitSwitchInst()
4179 const APInt &CaseVal = Case.getCaseValue()->getValue(); in visitSwitchInst()
4195 const APInt &CaseVal = Case.getCaseValue()->getValue(); in visitSwitchInst()
4200 APInt TruncatedCase = Case.getCaseValue()->getValue().trunc(NewWidth); in visitSwitchInst()
4225 std::min(LeadingKnownZeros, C.getCaseValue()->getValue().countl_zero()); in visitSwitchInst()
4227 std::min(LeadingKnownOnes, C.getCaseValue()->getValue().countl_one()); in visitSwitchInst()
4243 APInt TruncatedCase = Case.getCaseValue()->getValue().trunc(NewWidth); in visitSwitchInst()
H A DInstCombinePHI.cpp1330 AddSucc(Case.getCaseValue(), Case.getCaseSuccessor()); in simplifyUsingControlFlow()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVStructurizer.cpp951 SI->case_begin()->getCaseValue()); in simplifyBranches()
989 SI->addCase(It->getCaseValue(), NewTarget); in splitSwitchCases()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DNodes.cpp236 syntax::Expression *syntax::CaseStatement::getCaseValue() { in getCaseValue() function in syntax::CaseStatement
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopSimplifyCFG.cpp68 if (Case.getCaseValue() == CI) in getOnlyLiveSuccessor()
H A DDFAJumpThreading.cpp1305 if (Case.getCaseValue()->getValue() == NextState) { in getNextCaseSuccessor()
H A DCorrelatedValuePropagation.cpp378 ConstantInt *Case = CI->getCaseValue(); in processSwitch()
H A DSimpleLoopUnswitch.cpp843 ExitCases.emplace_back(CaseI->getCaseValue(), CaseI->getCaseSuccessor(), W); in unswitchTrivialSwitch()
950 NewSIW.addCase(Case.getCaseValue(), NewPH, in unswitchTrivialSwitch()
H A DConstraintElimination.cpp1183 Value *V = Case.getCaseValue(); in addInfoFor()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanConstruction.cpp200 Ops.push_back(getOrCreateVPOperand(Case.getCaseValue())); in createVPInstructionsForVPBB()
/freebsd/contrib/llvm-project/llvm/lib/Passes/
H A DStandardInstrumentations.cpp2202 assert(C.getCaseValue() && "Expected to find case value."); in DCData()
2203 SmallString<20> Value = formatv("{0}", C.getCaseValue()->getSExtValue()); in DCData()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstructions.h3256 ConstantIntT *getCaseValue() const {
3469 return Case.getCaseValue() == C;
3491 CI = Case.getCaseValue();
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DSanitizerCoverage.cpp903 ConstantInt *C = It.getCaseValue(); in InjectTraceForSwitch()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h569 APInt MaxCaseVal = SI.case_begin()->getCaseValue()->getValue(); in getEstimatedNumberOfCaseClusters()
572 const APInt &CaseVal = CI.getCaseValue()->getValue(); in getEstimatedNumberOfCaseClusters()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLazyValueInfo.cpp1540 APInt CaseValue = Case.getCaseValue()->getValue(); in getEdgeValueLocal()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DVerifier.cpp3304 Check(Case.getCaseValue()->getType() == SwitchTy, in visitSwitchInst()
3306 Check(Constants.insert(Case.getCaseValue()).second, in visitSwitchInst()
3307 "Duplicate integer as switch case", &SI, Case.getCaseValue()); in visitSwitchInst()

12