mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Silence a bunch of implicit fallthrough warnings
llvm-svn: 321114
This commit is contained in:
parent
7019d036e5
commit
b116a83925
@ -4368,6 +4368,7 @@ static Optional<BinaryOp> MatchBinaryOp(Value *V, DominatorTree &DT) {
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
|
@ -2033,6 +2033,7 @@ const MCExpr *AsmPrinter::lowerConstant(const Constant *CV) {
|
||||
}
|
||||
}
|
||||
// else fallthrough
|
||||
LLVM_FALLTHROUGH;
|
||||
|
||||
// The MC library also has a right-shift operator, but it isn't consistently
|
||||
// signed or unsigned between different targets.
|
||||
|
@ -10201,7 +10201,7 @@ SDValue DAGCombiner::visitFMUL(SDNode *N) {
|
||||
case ISD::SETLT:
|
||||
case ISD::SETLE:
|
||||
std::swap(TrueOpnd, FalseOpnd);
|
||||
// Fall through
|
||||
LLVM_FALLTHROUGH;
|
||||
case ISD::SETOGT:
|
||||
case ISD::SETUGT:
|
||||
case ISD::SETOGE:
|
||||
|
@ -252,6 +252,7 @@ bool ResourcePriorityQueue::isResourceAvailable(SUnit *SU) {
|
||||
if (!ResourcesModel->canReserveResources(&TII->get(
|
||||
SU->getNode()->getMachineOpcode())))
|
||||
return false;
|
||||
break;
|
||||
case TargetOpcode::EXTRACT_SUBREG:
|
||||
case TargetOpcode::INSERT_SUBREG:
|
||||
case TargetOpcode::SUBREG_TO_REG:
|
||||
|
@ -83,6 +83,7 @@ bool DWARFAcceleratorTable::validateForms() {
|
||||
!FormValue.isFormClass(DWARFFormValue::FC_Flag)) ||
|
||||
FormValue.getForm() == dwarf::DW_FORM_sdata)
|
||||
return false;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -8,6 +8,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/Demangle/Demangle.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
|
||||
// This file exports a single function: llvm::itanium_demangle.
|
||||
// It also has no dependencies on the rest of llvm. It is implemented this way
|
||||
@ -1947,7 +1948,7 @@ static const char *parse_type(const char *first, const char *last, C &db) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
// falls through
|
||||
LLVM_FALLTHROUGH;
|
||||
default:
|
||||
// must check for builtin-types before class-enum-types to avoid
|
||||
// ambiguities with operator-names
|
||||
|
@ -1674,6 +1674,7 @@ static ICmpInst::Predicate evaluateICmpRelation(Constant *V1, Constant *V2,
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
|
@ -138,6 +138,7 @@ StringRef llvm::object::getELFRelocationTypeName(uint32_t Machine,
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case ELF::EM_BPF:
|
||||
switch (Type) {
|
||||
#include "llvm/BinaryFormat/ELFRelocs/BPF.def"
|
||||
|
@ -739,7 +739,6 @@ ARM::ProfileKind ARM::parseArchProfile(StringRef Arch) {
|
||||
case ARM::ArchKind::ARMV8_2A:
|
||||
case ARM::ArchKind::ARMV8_3A:
|
||||
return ARM::ProfileKind::A;
|
||||
LLVM_FALLTHROUGH;
|
||||
case ARM::ArchKind::ARMV2:
|
||||
case ARM::ArchKind::ARMV2A:
|
||||
case ARM::ArchKind::ARMV3:
|
||||
|
@ -5135,11 +5135,12 @@ bool AArch64FastISel::fastSelectInstruction(const Instruction *I) {
|
||||
return selectAtomicCmpXchg(cast<AtomicCmpXchgInst>(I));
|
||||
}
|
||||
|
||||
// fall-back to target-independent instruction selection.
|
||||
return selectOperator(I, I->getOpcode());
|
||||
// Silence warnings.
|
||||
(void)&CC_AArch64_DarwinPCS_VarArg;
|
||||
(void)&CC_AArch64_Win64_VarArg;
|
||||
|
||||
// fall-back to target-independent instruction selection.
|
||||
return selectOperator(I, I->getOpcode());
|
||||
}
|
||||
|
||||
namespace llvm {
|
||||
|
@ -1416,7 +1416,7 @@ bool ARMFastISel::ARMEmitCmp(const Value *Src1Value, const Value *Src2Value,
|
||||
case MVT::i8:
|
||||
case MVT::i16:
|
||||
needsExt = true;
|
||||
// Intentional fall-through.
|
||||
LLVM_FALLTHROUGH;
|
||||
case MVT::i32:
|
||||
if (isThumb2) {
|
||||
if (!UseImm)
|
||||
|
@ -13741,7 +13741,7 @@ Instruction *ARMTargetLowering::emitLeadingFence(IRBuilder<> &Builder,
|
||||
case AtomicOrdering::SequentiallyConsistent:
|
||||
if (!Inst->hasAtomicStore())
|
||||
return nullptr; // Nothing to do
|
||||
/*FALLTHROUGH*/
|
||||
LLVM_FALLTHROUGH;
|
||||
case AtomicOrdering::Release:
|
||||
case AtomicOrdering::AcquireRelease:
|
||||
if (Subtarget->preferISHSTBarriers())
|
||||
|
@ -2386,6 +2386,7 @@ static DecodeStatus DecodeVLDInstruction(MCInst &Inst, unsigned Insn,
|
||||
case ARM::VLD4q32_UPD:
|
||||
if (!Check(S, DecodeDPRRegisterClass(Inst, (Rd+2)%32, Address, Decoder)))
|
||||
return MCDisassembler::Fail;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@ -3326,6 +3327,7 @@ static DecodeStatus DecodeT2AddrModeSOReg(MCInst &Inst, unsigned Val,
|
||||
case ARM::t2STRs:
|
||||
if (Rn == 15)
|
||||
return MCDisassembler::Fail;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@ -3391,6 +3393,7 @@ static DecodeStatus DecodeT2LoadShift(MCInst &Inst, unsigned Insn,
|
||||
break;
|
||||
case ARM::t2LDRSBs:
|
||||
Inst.setOpcode(ARM::t2PLIs);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@ -3854,6 +3857,7 @@ static DecodeStatus DecodeT2AddrModeImm12(MCInst &Inst, unsigned Val,
|
||||
case ARM::t2STRHi12:
|
||||
if (Rn == 15)
|
||||
return MCDisassembler::Fail;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -863,6 +863,7 @@ int PartialInlinerImpl::computeBBInlineCost(BasicBlock *BB) {
|
||||
case Instruction::GetElementPtr:
|
||||
if (cast<GetElementPtrInst>(I)->hasAllZeroIndices())
|
||||
continue;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -1346,6 +1346,7 @@ void DevirtModule::importResolution(VTableSlot Slot, VTableSlotInfo &SlotInfo) {
|
||||
Constant *Bit = importConstant(Slot, CSByConstantArg.first, "bit", Int8Ty,
|
||||
ResByArg.Bit);
|
||||
applyVirtualConstProp(CSByConstantArg.second, "", Byte, Bit);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
|
@ -4017,6 +4017,7 @@ static bool collectValuesToDemote(Value *V, SmallPtrSetImpl<Value *> &Expr,
|
||||
// seed additional demotion, we save the truncated value.
|
||||
case Instruction::Trunc:
|
||||
Roots.push_back(I->getOperand(0));
|
||||
break;
|
||||
case Instruction::ZExt:
|
||||
case Instruction::SExt:
|
||||
break;
|
||||
|
@ -717,6 +717,7 @@ void IntrinsicEmitter::EmitAttributes(const CodeGenIntrinsicTable &Ints,
|
||||
if (addComma)
|
||||
OS << ",";
|
||||
OS << "Attribute::InaccessibleMemOrArgMemOnly";
|
||||
break;
|
||||
case CodeGenIntrinsic::ReadWriteMem:
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user