Skip to content

Commit 1aee40e

Browse files
committed
avoid direct usage of AnalysisImpl scope
1 parent f83c85a commit 1aee40e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

llvm/lib/Target/AMDGPU/AMDGPUMCResourceInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void MCResourceInfo::assignResourceInfoExpr(
164164

165165
void MCResourceInfo::gatherResourceInfo(
166166
const MachineFunction &MF,
167-
const AMDGPUResourceUsageAnalysisImpl::SIFunctionResourceInfo &FRI,
167+
const AMDGPUResourceUsageAnalysisWrapperPass::ResultT &FRI,
168168
MCContext &OutContext) {
169169
// Worst case VGPR use for non-hardware-entrypoints.
170170
MCSymbol *MaxVGPRSym = getMaxVGPRSymbol(OutContext);

llvm/lib/Target/AMDGPU/AMDGPUMCResourceInfo.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ class MCResourceInfo {
9090
/// transitive maximum or accumulative. For example, if A calls B and B's VGPR
9191
/// usage exceeds A's, A should be assigned B's VGPR usage. Furthermore,
9292
/// functions with indirect calls should be assigned the module level maximum.
93-
void gatherResourceInfo(
94-
const MachineFunction &MF,
95-
const AMDGPUResourceUsageAnalysisImpl::SIFunctionResourceInfo &FRI,
96-
MCContext &OutContext);
93+
void
94+
gatherResourceInfo(const MachineFunction &MF,
95+
const AMDGPUResourceUsageAnalysisWrapperPass::ResultT &FRI,
96+
MCContext &OutContext);
9797

9898
const MCExpr *createTotalNumVGPRs(const MachineFunction &MF, MCContext &Ctx);
9999
const MCExpr *createTotalNumSGPRs(const MachineFunction &MF, bool hasXnack,

0 commit comments

Comments
 (0)