Lines Matching defs:Case
3737 for (auto Case : SI.cases())
3738 if (!CR.contains(Case.getCaseValue()->getValue()))
3750 for (auto Case : SI.cases()) {
3751 Constant *NewCase = ConstantExpr::getSub(Case.getCaseValue(), AddRHS);
3754 Case.setValue(cast<ConstantInt>(NewCase));
3762 for (auto Case : SI.cases()) {
3763 Constant *NewCase = ConstantExpr::getSub(SubLHS, Case.getCaseValue());
3766 Case.setValue(cast<ConstantInt>(NewCase));
3774 all_of(SI.cases(), [&](const auto &Case) {
3775 return Case.getCaseValue()->getValue().countr_zero() >= ShiftAmt;
3788 for (auto Case : SI.cases()) {
3789 const APInt &CaseVal = Case.getCaseValue()->getValue();
3792 Case.setValue(ConstantInt::get(SI.getContext(), ShiftedCase));
3804 if (all_of(SI.cases(), [&](const auto &Case) {
3805 const APInt &CaseVal = Case.getCaseValue()->getValue();
3809 for (auto &Case : SI.cases()) {
3810 APInt TruncatedCase = Case.getCaseValue()->getValue().trunc(NewWidth);
3811 Case.setValue(ConstantInt::get(SI.getContext(), TruncatedCase));
3852 for (auto Case : SI.cases()) {
3853 APInt TruncatedCase = Case.getCaseValue()->getValue().trunc(NewWidth);
3854 Case.setValue(ConstantInt::get(SI.getContext(), TruncatedCase));