diff options
author | Fangrui Song <i@maskray.me> | 2022-08-09 04:06:52 +0000 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-08-09 04:06:52 +0000 |
commit | 0972a390b9c74cd994ad0250cf392aecb67502a3 (patch) | |
tree | dbfde26a6814965adbe72973f4b840bee78e8f43 /polly | |
parent | fc63c0542c8d6e5be07e059d03a73ae77f5155aa (diff) | |
download | llvm-0972a390b9c74cd994ad0250cf392aecb67502a3.zip llvm-0972a390b9c74cd994ad0250cf392aecb67502a3.tar.gz llvm-0972a390b9c74cd994ad0250cf392aecb67502a3.tar.bz2 |
LLVM_FALLTHROUGH => [[fallthrough]]. NFC
Diffstat (limited to 'polly')
-rw-r--r-- | polly/lib/Analysis/ScopBuilder.cpp | 8 | ||||
-rw-r--r-- | polly/lib/Analysis/ScopDetection.cpp | 2 | ||||
-rw-r--r-- | polly/lib/Support/VirtualInstruction.cpp | 2 | ||||
-rw-r--r-- | polly/lib/Transform/ForwardOpTree.cpp | 2 |
4 files changed, 7 insertions, 7 deletions
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<MemIntrinsic>(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<Instruction>(UseVal); |