From 0972a390b9c74cd994ad0250cf392aecb67502a3 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 9 Aug 2022 04:06:52 +0000 Subject: LLVM_FALLTHROUGH => [[fallthrough]]. NFC --- polly/lib/Analysis/ScopBuilder.cpp | 8 ++++---- polly/lib/Analysis/ScopDetection.cpp | 2 +- polly/lib/Support/VirtualInstruction.cpp | 2 +- polly/lib/Transform/ForwardOpTree.cpp | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'polly') diff --git a/polly/lib/Analysis/ScopBuilder.cpp b/polly/lib/Analysis/ScopBuilder.cpp index ab8e5ad..1817797 100644 --- a/polly/lib/Analysis/ScopBuilder.cpp +++ b/polly/lib/Analysis/ScopBuilder.cpp @@ -1655,7 +1655,7 @@ bool ScopBuilder::buildAccessCallInst(MemAccInst Inst, ScopStmt *Stmt) { return true; case FMRB_OnlyReadsArgumentPointees: ReadOnly = true; - LLVM_FALLTHROUGH; + [[fallthrough]]; case FMRB_OnlyWritesArgumentPointees: case FMRB_OnlyAccessesArgumentPointees: { auto AccType = ReadOnly ? MemoryAccess::READ : MemoryAccess::MAY_WRITE; @@ -2385,7 +2385,7 @@ void ScopBuilder::ensureValueRead(Value *V, ScopStmt *UserStmt) { if (!ModelReadOnlyScalars) break; - LLVM_FALLTHROUGH; + [[fallthrough]]; case VirtualUse::Inter: // Do not create another MemoryAccess for reloading the value if one already @@ -2482,7 +2482,7 @@ static MemoryAccess::ReductionType getReductionType(const BinaryOperator *BinOp, case Instruction::FAdd: if (!BinOp->isFast()) return MemoryAccess::RT_NONE; - LLVM_FALLTHROUGH; + [[fallthrough]]; case Instruction::Add: return MemoryAccess::RT_ADD; case Instruction::Or: @@ -2494,7 +2494,7 @@ static MemoryAccess::ReductionType getReductionType(const BinaryOperator *BinOp, case Instruction::FMul: if (!BinOp->isFast()) return MemoryAccess::RT_NONE; - LLVM_FALLTHROUGH; + [[fallthrough]]; case Instruction::Mul: if (DisableMultiplicativeReductions) return MemoryAccess::RT_NONE; diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index e22f8bd..99e9396 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -783,7 +783,7 @@ bool ScopDetection::isValidIntrinsicInst(IntrinsicInst &II, if (!isValidAccess(&II, AF, BP, Context)) return false; } - LLVM_FALLTHROUGH; + [[fallthrough]]; case Intrinsic::memset: AF = SE.getSCEVAtScope(cast(II).getDest(), L); if (!AF->isZero()) { diff --git a/polly/lib/Support/VirtualInstruction.cpp b/polly/lib/Support/VirtualInstruction.cpp index 07f8ff5..e570d8d 100644 --- a/polly/lib/Support/VirtualInstruction.cpp +++ b/polly/lib/Support/VirtualInstruction.cpp @@ -300,7 +300,7 @@ static void walkReachable(Scop *S, LoopInfo *LI, // enabled. if (!VUse.getMemoryAccess()) break; - LLVM_FALLTHROUGH; + [[fallthrough]]; case VirtualUse::Inter: assert(VUse.getMemoryAccess()); WorklistAccs.push_back(VUse.getMemoryAccess()); diff --git a/polly/lib/Transform/ForwardOpTree.cpp b/polly/lib/Transform/ForwardOpTree.cpp index fd4052f..2bed3e3 100644 --- a/polly/lib/Transform/ForwardOpTree.cpp +++ b/polly/lib/Transform/ForwardOpTree.cpp @@ -801,7 +801,7 @@ public: // reuse the information about UseStmt for DefStmt DefStmt = UseStmt; - LLVM_FALLTHROUGH; + [[fallthrough]]; case VirtualUse::Inter: Instruction *Inst = cast(UseVal); -- cgit v1.1