File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -29447,7 +29447,7 @@ bool AArch64TargetLowering::shouldInsertFencesForAtomic(
2944729447}
2944829448
2944929449bool 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
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments