[PATCH] D124531: CodeGen: Move getAddressSpaceForPseudoSourceKind into TargetMachine
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 27 08:49:05 PDT 2022
arsenm created this revision.
arsenm added reviewers: jsjodin, hfinkel, tstellar, arphaman, sunfish, marcello.maggioni, MatzeB.
Herald added subscribers: hsmhsm, foad, kerbowa, hiraditya, tpr, nhaehnle, jvesely.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.
Avoid the dependency on TargetInstrInfo, which depends on the subtarget
and therefore the individual function.
Currently AMDGPU is constructing PseudoSourceValue instances in MachineFunctionInfo.
In order to facilitate copying MachineFunctionInfo, we need to stop allocating these
there. Alternatively we could allow targets to subclass PseudoSourceValueManager,
and allocate them similarly to MachineFunctionInfo.
https://reviews.llvm.org/D124531
Files:
llvm/include/llvm/CodeGen/MachineMemOperand.h
llvm/include/llvm/CodeGen/PseudoSourceValue.h
llvm/include/llvm/CodeGen/TargetInstrInfo.h
llvm/include/llvm/Target/TargetMachine.h
llvm/lib/CodeGen/MachineFunction.cpp
llvm/lib/CodeGen/PseudoSourceValue.cpp
llvm/lib/Target/AMDGPU/AMDGPUMIRFormatter.cpp
llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h
llvm/lib/Target/AMDGPU/R600InstrInfo.cpp
llvm/lib/Target/AMDGPU/R600InstrInfo.h
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
llvm/lib/Target/AMDGPU/SIInstrInfo.h
llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124531.425531.patch
Type: text/x-patch
Size: 21474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220427/430b55cf/attachment-0001.bin>
More information about the llvm-commits
mailing list