Skip to content

Commit f68de4c

Browse files
committed
Make instruction param const.
Change-Id: Iede7601d616f29dff3e04182d94e9a5f233ccf66
1 parent ec246cf commit f68de4c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

llvm/include/llvm/CodeGen/TargetLowering.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2245,7 +2245,7 @@ class LLVM_ABI TargetLoweringBase {
22452245

22462246
/// Whether AtomicExpandPass should automatically insert a trailing fence
22472247
/// without reducing the ordering for this atomic. Defaults to false.
2248-
virtual bool storeNeedsSeqCstTrailingFence(Instruction *I) const {
2248+
virtual bool storeNeedsSeqCstTrailingFence(const Instruction *I) const {
22492249
return false;
22502250
}
22512251

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29447,7 +29447,7 @@ bool AArch64TargetLowering::shouldInsertFencesForAtomic(
2944729447
}
2944829448

2944929449
bool AArch64TargetLowering::storeNeedsSeqCstTrailingFence(
29450-
Instruction *I) const {
29450+
const Instruction *I) const {
2945129451
// Store-Release instructions only provide seq_cst guarantees when paired with
2945229452
// Load-Acquire instructions. MSVC CRT does not use these instructions to
2945329453
// implement seq_cst loads and stores, so we need additional explicit fences

llvm/lib/Target/AArch64/AArch64ISelLowering.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ class AArch64TargetLowering : public TargetLowering {
349349
bool isOpSuitableForLSE128(const Instruction *I) const;
350350
bool isOpSuitableForRCPC3(const Instruction *I) const;
351351
bool shouldInsertFencesForAtomic(const Instruction *I) const override;
352-
bool storeNeedsSeqCstTrailingFence(Instruction *I) const override;
352+
bool storeNeedsSeqCstTrailingFence(const Instruction *I) const override;
353353

354354
TargetLoweringBase::AtomicExpansionKind
355355
shouldExpandAtomicLoadInIR(LoadInst *LI) const override;

0 commit comments

Comments
 (0)