This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Make PSV instances static members
ClosedPublic

Authored by arsenm on Apr 18 2022, 2:56 PM.

Details

Reviewers
rampitec
Group Reviewers
Restricted Project

Diff Detail

Event Timeline

arsenm created this revision.Apr 18 2022, 2:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 18 2022, 2:56 PM
arsenm requested review of this revision.Apr 18 2022, 2:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 18 2022, 2:56 PM
Herald added a subscriber: wdng. · View Herald Transcript

Probably would be better to let targets define their own instances of PseudoSourceValueManager

arsenm updated this revision to Diff 433397.Jun 1 2022, 7:39 AM

Don't use unique_ptr since it's no longer dependent on the subtarget

arsenm edited the summary of this revision. (Show Details)Jun 6 2022, 5:53 AM
rampitec accepted this revision.Jun 6 2022, 9:01 AM
rampitec added a subscriber: rampitec.

LGTM

This revision is now accepted and ready to land.Jun 6 2022, 9:01 AM
foad added inline comments.Jun 6 2022, 9:04 AM
llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
34

It doesn't look like these constructors really need an AMDGPUTargetMachine. Couldn't they all take an LLVMTargetMachine instead?

arsenm added inline comments.Jun 6 2022, 12:34 PM
llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
34

I usually just keep it as the target machine in target code since it's always known