mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
Remove a few more calls to TargetMachine::getSubtarget from the
R600 port. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229804 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -39,8 +39,8 @@ SIMachineFunctionInfo::SpilledReg SIMachineFunctionInfo::getSpilledReg(
|
||||
unsigned FrameIndex,
|
||||
unsigned SubIdx) {
|
||||
const MachineFrameInfo *FrameInfo = MF->getFrameInfo();
|
||||
const SIRegisterInfo *TRI = static_cast<const SIRegisterInfo*>(
|
||||
MF->getTarget().getSubtarget<AMDGPUSubtarget>().getRegisterInfo());
|
||||
const SIRegisterInfo *TRI = static_cast<const SIRegisterInfo *>(
|
||||
MF->getSubtarget<AMDGPUSubtarget>().getRegisterInfo());
|
||||
MachineRegisterInfo &MRI = MF->getRegInfo();
|
||||
int64_t Offset = FrameInfo->getObjectOffset(FrameIndex);
|
||||
Offset += SubIdx * 4;
|
||||
@@ -70,7 +70,7 @@ SIMachineFunctionInfo::SpilledReg SIMachineFunctionInfo::getSpilledReg(
|
||||
|
||||
unsigned SIMachineFunctionInfo::getMaximumWorkGroupSize(
|
||||
const MachineFunction &MF) const {
|
||||
const AMDGPUSubtarget &ST = MF.getTarget().getSubtarget<AMDGPUSubtarget>();
|
||||
const AMDGPUSubtarget &ST = MF.getSubtarget<AMDGPUSubtarget>();
|
||||
// FIXME: We should get this information from kernel attributes if it
|
||||
// is available.
|
||||
return getShaderType() == ShaderType::COMPUTE ? 256 : ST.getWavefrontSize();
|
||||
|
||||
Reference in New Issue
Block a user