llvm.org GIT mirror llvm / c0ade05
Silence a bunch of implicit fallthrough warnings git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321114 91177308-0d34-0410-b5e6-96231b3b80d8 Adrian Prantl 2 years ago
17 changed file(s) with 22 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
20322032 }
20332033 }
20342034 // else fallthrough
2035 LLVM_FALLTHROUGH;
20352036
20362037 // The MC library also has a right-shift operator, but it isn't consistently
20372038 // signed or unsigned between different targets.
1020010200 case ISD::SETLT:
1020110201 case ISD::SETLE:
1020210202 std::swap(TrueOpnd, FalseOpnd);
10203 // Fall through
10203 LLVM_FALLTHROUGH;
1020410204 case ISD::SETOGT:
1020510205 case ISD::SETUGT:
1020610206 case ISD::SETOGE:
251251 if (!ResourcesModel->canReserveResources(&TII->get(
252252 SU->getNode()->getMachineOpcode())))
253253 return false;
254 break;
254255 case TargetOpcode::EXTRACT_SUBREG:
255256 case TargetOpcode::INSERT_SUBREG:
256257 case TargetOpcode::SUBREG_TO_REG:
8282 !FormValue.isFormClass(DWARFFormValue::FC_Flag)) ||
8383 FormValue.getForm() == dwarf::DW_FORM_sdata)
8484 return false;
85 break;
8586 default:
8687 break;
8788 }
77 //===----------------------------------------------------------------------===//
88
99 #include "llvm/Demangle/Demangle.h"
10 #include "llvm/Support/Compiler.h"
1011
1112 // This file exports a single function: llvm::itanium_demangle.
1213 // It also has no dependencies on the rest of llvm. It is implemented this way
19461947 break;
19471948 }
19481949 }
1949 // falls through
1950 LLVM_FALLTHROUGH;
19501951 default:
19511952 // must check for builtin-types before class-enum-types to avoid
19521953 // ambiguities with operator-names
137137 default:
138138 break;
139139 }
140 break;
140141 case ELF::EM_BPF:
141142 switch (Type) {
142143 #include "llvm/BinaryFormat/ELFRelocs/BPF.def"
738738 case ARM::ArchKind::ARMV8_2A:
739739 case ARM::ArchKind::ARMV8_3A:
740740 return ARM::ProfileKind::A;
741 LLVM_FALLTHROUGH;
742741 case ARM::ArchKind::ARMV2:
743742 case ARM::ArchKind::ARMV2A:
744743 case ARM::ArchKind::ARMV3:
51345134 return selectAtomicCmpXchg(cast(I));
51355135 }
51365136
5137 // fall-back to target-independent instruction selection.
5138 return selectOperator(I, I->getOpcode());
51395137 // Silence warnings.
51405138 (void)&CC_AArch64_DarwinPCS_VarArg;
51415139 (void)&CC_AArch64_Win64_VarArg;
5140
5141 // fall-back to target-independent instruction selection.
5142 return selectOperator(I, I->getOpcode());
51425143 }
51435144
51445145 namespace llvm {
14151415 case MVT::i8:
14161416 case MVT::i16:
14171417 needsExt = true;
1418 // Intentional fall-through.
1418 LLVM_FALLTHROUGH;
14191419 case MVT::i32:
14201420 if (isThumb2) {
14211421 if (!UseImm)
1374013740 case AtomicOrdering::SequentiallyConsistent:
1374113741 if (!Inst->hasAtomicStore())
1374213742 return nullptr; // Nothing to do
13743 /*FALLTHROUGH*/
13743 LLVM_FALLTHROUGH;
1374413744 case AtomicOrdering::Release:
1374513745 case AtomicOrdering::AcquireRelease:
1374613746 if (Subtarget->preferISHSTBarriers())
23852385 case ARM::VLD4q32_UPD:
23862386 if (!Check(S, DecodeDPRRegisterClass(Inst, (Rd+2)%32, Address, Decoder)))
23872387 return MCDisassembler::Fail;
2388 break;
23882389 default:
23892390 break;
23902391 }
33253326 case ARM::t2STRs:
33263327 if (Rn == 15)
33273328 return MCDisassembler::Fail;
3329 break;
33283330 default:
33293331 break;
33303332 }
33903392 break;
33913393 case ARM::t2LDRSBs:
33923394 Inst.setOpcode(ARM::t2PLIs);
3395 break;
33933396 default:
33943397 break;
33953398 }
38533856 case ARM::t2STRHi12:
38543857 if (Rn == 15)
38553858 return MCDisassembler::Fail;
3859 break;
38563860 default:
38573861 break;
38583862 }
862862 case Instruction::GetElementPtr:
863863 if (cast(I)->hasAllZeroIndices())
864864 continue;
865 break;
865866 default:
866867 break;
867868 }
13451345 Constant *Bit = importConstant(Slot, CSByConstantArg.first, "bit", Int8Ty,
13461346 ResByArg.Bit);
13471347 applyVirtualConstProp(CSByConstantArg.second, "", Byte, Bit);
1348 break;
13481349 }
13491350 default:
13501351 break;
40164016 // seed additional demotion, we save the truncated value.
40174017 case Instruction::Trunc:
40184018 Roots.push_back(I->getOperand(0));
4019 break;
40194020 case Instruction::ZExt:
40204021 case Instruction::SExt:
40214022 break;
716716 if (addComma)
717717 OS << ",";
718718 OS << "Attribute::InaccessibleMemOrArgMemOnly";
719 break;
719720 case CodeGenIntrinsic::ReadWriteMem:
720721 break;
721722 }