Skip to content

Commit fd922c4

Browse files
authored
[CodeGen] Add const to getAddrModeArguments argument. NFC. (#122335)
1 parent 66a88f6 commit fd922c4

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

llvm/include/llvm/CodeGen/TargetLowering.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2795,9 +2795,9 @@ class TargetLoweringBase {
27952795
/// possible to be done in the address mode for that operand. This hook lets
27962796
/// targets also pass back when this should be done on intrinsics which
27972797
/// load/store.
2798-
virtual bool getAddrModeArguments(IntrinsicInst * /*I*/,
2799-
SmallVectorImpl<Value*> &/*Ops*/,
2800-
Type *&/*AccessTy*/) const {
2798+
virtual bool getAddrModeArguments(const IntrinsicInst * /*I*/,
2799+
SmallVectorImpl<Value *> & /*Ops*/,
2800+
Type *& /*AccessTy*/) const {
28012801
return false;
28022802
}
28032803

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ void SITargetLowering::CollectTargetIntrinsicOperands(
14861486
}
14871487
}
14881488

1489-
bool SITargetLowering::getAddrModeArguments(IntrinsicInst *II,
1489+
bool SITargetLowering::getAddrModeArguments(const IntrinsicInst *II,
14901490
SmallVectorImpl<Value *> &Ops,
14911491
Type *&AccessTy) const {
14921492
Value *Ptr = nullptr;

llvm/lib/Target/AMDGPU/SIISelLowering.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ class SITargetLowering final : public AMDGPUTargetLowering {
315315
SmallVectorImpl<SDValue> &Ops,
316316
SelectionDAG &DAG) const override;
317317

318-
bool getAddrModeArguments(IntrinsicInst * /*I*/,
319-
SmallVectorImpl<Value*> &/*Ops*/,
320-
Type *&/*AccessTy*/) const override;
318+
bool getAddrModeArguments(const IntrinsicInst *I,
319+
SmallVectorImpl<Value *> &Ops,
320+
Type *&AccessTy) const override;
321321

322322
bool isLegalFlatAddressingMode(const AddrMode &AM, unsigned AddrSpace) const;
323323
bool isLegalGlobalAddressingMode(const AddrMode &AM) const;

0 commit comments

Comments
 (0)