Skip to content

Commit

Permalink
[CodeGen] Add const to getAddrModeArguments argument. NFC. (#122335)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfoad authored Jan 10, 2025
1 parent 66a88f6 commit fd922c4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions llvm/include/llvm/CodeGen/TargetLowering.h
Original file line number Diff line number Diff line change
Expand Up @@ -2795,9 +2795,9 @@ class TargetLoweringBase {
/// possible to be done in the address mode for that operand. This hook lets
/// targets also pass back when this should be done on intrinsics which
/// load/store.
virtual bool getAddrModeArguments(IntrinsicInst * /*I*/,
SmallVectorImpl<Value*> &/*Ops*/,
Type *&/*AccessTy*/) const {
virtual bool getAddrModeArguments(const IntrinsicInst * /*I*/,
SmallVectorImpl<Value *> & /*Ops*/,
Type *& /*AccessTy*/) const {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/AMDGPU/SIISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@ void SITargetLowering::CollectTargetIntrinsicOperands(
}
}

bool SITargetLowering::getAddrModeArguments(IntrinsicInst *II,
bool SITargetLowering::getAddrModeArguments(const IntrinsicInst *II,
SmallVectorImpl<Value *> &Ops,
Type *&AccessTy) const {
Value *Ptr = nullptr;
Expand Down
6 changes: 3 additions & 3 deletions llvm/lib/Target/AMDGPU/SIISelLowering.h
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@ class SITargetLowering final : public AMDGPUTargetLowering {
SmallVectorImpl<SDValue> &Ops,
SelectionDAG &DAG) const override;

bool getAddrModeArguments(IntrinsicInst * /*I*/,
SmallVectorImpl<Value*> &/*Ops*/,
Type *&/*AccessTy*/) const override;
bool getAddrModeArguments(const IntrinsicInst *I,
SmallVectorImpl<Value *> &Ops,
Type *&AccessTy) const override;

bool isLegalFlatAddressingMode(const AddrMode &AM, unsigned AddrSpace) const;
bool isLegalGlobalAddressingMode(const AddrMode &AM) const;
Expand Down

0 comments on commit fd922c4

Please sign in to comment.