You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
external
Newtonsoft.Json
api-doc-tools
api-snapshot
aspnetwebstack
bdwgc
binary-reference-assemblies
bockbuild
boringssl
cecil
cecil-legacy
corefx
corert
helix-binaries
ikdasm
ikvm
illinker-test-assets
linker
llvm-project
clang
clang-tools-extra
compiler-rt
eng
libcxx
libcxxabi
libunwind
lld
lldb
llvm
bindings
cmake
docs
examples
include
lib
Analysis
AsmParser
BinaryFormat
Bitcode
CodeGen
DebugInfo
Demangle
ExecutionEngine
FuzzMutate
Fuzzer
IR
IRReader
LTO
LineEditor
Linker
MC
Object
ObjectYAML
Option
Passes
ProfileData
Support
TableGen
Target
AArch64
AMDGPU
AsmParser
Disassembler
InstPrinter
MCTargetDesc
TargetInfo
Utils
AMDGPU.h
AMDGPU.td
AMDGPUAliasAnalysis.cpp
AMDGPUAliasAnalysis.h
AMDGPUAlwaysInlinePass.cpp
AMDGPUAnnotateKernelFeatures.cpp
AMDGPUAnnotateUniformValues.cpp
AMDGPUArgumentUsageInfo.cpp
AMDGPUArgumentUsageInfo.h
AMDGPUAsmPrinter.cpp
AMDGPUAsmPrinter.h
AMDGPUCallLowering.cpp
AMDGPUCallLowering.h
AMDGPUCallingConv.td
AMDGPUCodeGenPrepare.cpp
AMDGPUFrameLowering.cpp
AMDGPUFrameLowering.h
AMDGPUGenRegisterBankInfo.def
AMDGPUISelDAGToDAG.cpp
AMDGPUISelLowering.cpp.REMOVED.git-id
AMDGPUISelLowering.h
AMDGPUInline.cpp
AMDGPUInstrInfo.cpp
AMDGPUInstrInfo.h
AMDGPUInstrInfo.td
AMDGPUInstructionSelector.cpp
AMDGPUInstructionSelector.h
AMDGPUInstructions.td
AMDGPUIntrinsicInfo.cpp
AMDGPUIntrinsicInfo.h
AMDGPUIntrinsics.td
AMDGPULegalizerInfo.cpp
AMDGPULegalizerInfo.h
AMDGPULibCalls.cpp
AMDGPULibFunc.cpp
AMDGPULibFunc.h
AMDGPULowerIntrinsics.cpp
AMDGPUMCInstLower.cpp
AMDGPUMCInstLower.h
AMDGPUMachineCFGStructurizer.cpp.REMOVED.git-id
AMDGPUMachineFunction.cpp
AMDGPUMachineFunction.h
AMDGPUMachineModuleInfo.cpp
AMDGPUMachineModuleInfo.h
AMDGPUMacroFusion.cpp
AMDGPUMacroFusion.h
AMDGPUOpenCLEnqueuedBlockLowering.cpp
AMDGPUOpenCLImageTypeLoweringPass.cpp
AMDGPUPTNote.h
AMDGPUPromoteAlloca.cpp
AMDGPURegAsmNames.inc.cpp
AMDGPURegisterBankInfo.cpp
AMDGPURegisterBankInfo.h
AMDGPURegisterBanks.td
AMDGPURegisterInfo.cpp
AMDGPURegisterInfo.h
AMDGPURegisterInfo.td
AMDGPURewriteOutArguments.cpp
AMDGPUSubtarget.cpp
AMDGPUSubtarget.h
AMDGPUTargetMachine.cpp
AMDGPUTargetMachine.h
AMDGPUTargetObjectFile.cpp
AMDGPUTargetObjectFile.h
AMDGPUTargetTransformInfo.cpp
AMDGPUTargetTransformInfo.h
AMDGPUUnifyDivergentExitNodes.cpp
AMDGPUUnifyMetadata.cpp
AMDILCFGStructurizer.cpp
AMDKernelCodeT.h
BUFInstructions.td
CMakeLists.txt
CaymanInstructions.td
DSInstructions.td
EvergreenInstructions.td
FLATInstructions.td
GCNHazardRecognizer.cpp
GCNHazardRecognizer.h
GCNILPSched.cpp
GCNIterativeScheduler.cpp
GCNIterativeScheduler.h
GCNMinRegStrategy.cpp
GCNProcessors.td
GCNRegPressure.cpp
GCNRegPressure.h
GCNSchedStrategy.cpp
GCNSchedStrategy.h
LLVMBuild.txt
MIMGInstructions.td
Processors.td
R600ClauseMergePass.cpp
R600ControlFlowFinalizer.cpp
R600Defines.h
R600EmitClauseMarkers.cpp
R600ExpandSpecialInstrs.cpp
R600FrameLowering.cpp
R600FrameLowering.h
R600ISelLowering.cpp
R600ISelLowering.h
R600InstrFormats.td
R600InstrInfo.cpp
R600InstrInfo.h
R600Instructions.td
R600Intrinsics.td
R600MachineFunctionInfo.cpp
R600MachineFunctionInfo.h
R600MachineScheduler.cpp
R600MachineScheduler.h
R600OptimizeVectorRegisters.cpp
R600Packetizer.cpp
R600Processors.td
R600RegisterInfo.cpp
R600RegisterInfo.h
R600RegisterInfo.td
R600Schedule.td
R700Instructions.td
SIAnnotateControlFlow.cpp
SIDebuggerInsertNops.cpp
SIDefines.h
SIFixSGPRCopies.cpp
SIFixVGPRCopies.cpp
SIFixWWMLiveness.cpp
SIFoldOperands.cpp
SIFrameLowering.cpp
SIFrameLowering.h
SIISelLowering.cpp.REMOVED.git-id
SIISelLowering.h
SIInsertSkips.cpp
SIInsertWaitcnts.cpp
SIInsertWaits.cpp
SIInstrFormats.td
SIInstrInfo.cpp.REMOVED.git-id
SIInstrInfo.h
SIInstrInfo.td
SIInstructions.td
SIIntrinsics.td
SILoadStoreOptimizer.cpp
SILowerControlFlow.cpp
SILowerI1Copies.cpp
SIMachineFunctionInfo.cpp
SIMachineFunctionInfo.h
SIMachineScheduler.cpp
SIMachineScheduler.h
SIMemoryLegalizer.cpp
SIOptimizeExecMasking.cpp
SIOptimizeExecMaskingPreRA.cpp
SIPeepholeSDWA.cpp
SIRegisterInfo.cpp
SIRegisterInfo.h
SIRegisterInfo.td
SISchedule.td
SIShrinkInstructions.cpp
SIWholeQuadMode.cpp
SMInstructions.td
SOPInstructions.td
VIInstrFormats.td
VIInstructions.td
VOP1Instructions.td
VOP2Instructions.td
VOP3Instructions.td
VOP3PInstructions.td
VOPCInstructions.td
VOPInstructions.td
ARC
ARM
AVR
BPF
Hexagon
Lanai
MSP430
Mips
NVPTX
Nios2
PowerPC
RISCV
Sparc
SystemZ
WebAssembly
X86
XCore
CMakeLists.txt
LLVMBuild.txt
README.txt
Target.cpp
TargetIntrinsicInfo.cpp
TargetLoweringObjectFile.cpp
TargetMachine.cpp
TargetMachineC.cpp
Testing
ToolDrivers
Transforms
WindowsManifest
XRay
CMakeLists.txt
LLVMBuild.txt
projects
resources
runtimes
scripts
test
tools
unittests
utils
.arcconfig
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in
version.txt.in
nuget
openmp
polly
Directory.Build.props
Directory.Build.targets
NuGet.config
azure-pipelines.yml
build.cmd
build.sh
dir.common.props
global.json
llvm.proj
mxe-Win64.cmake.in
nuget-buildtasks
nunit-lite
roslyn-binaries
rx
xunit-binaries
how-to-bump-roslyn-binaries.md
ikvm-native
llvm
m4
man
mcs
mono
msvc
netcore
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h
296 lines
9.5 KiB
C++
296 lines
9.5 KiB
C++
![]() |
//===- SIMachineFunctionInfo.cpp - SI Machine Function Info ---------------===//
|
||
|
//
|
||
|
// The LLVM Compiler Infrastructure
|
||
|
//
|
||
|
// This file is distributed under the University of Illinois Open Source
|
||
|
// License. See LICENSE.TXT for details.
|
||
|
//
|
||
|
//===----------------------------------------------------------------------===//
|
||
|
|
||
|
#include "SIMachineFunctionInfo.h"
|
||
|
#include "AMDGPUArgumentUsageInfo.h"
|
||
|
#include "AMDGPUSubtarget.h"
|
||
|
#include "SIRegisterInfo.h"
|
||
|
#include "Utils/AMDGPUBaseInfo.h"
|
||
|
#include "llvm/ADT/Optional.h"
|
||
|
#include "llvm/CodeGen/MachineBasicBlock.h"
|
||
|
#include "llvm/CodeGen/MachineFrameInfo.h"
|
||
|
#include "llvm/CodeGen/MachineFunction.h"
|
||
|
#include "llvm/CodeGen/MachineRegisterInfo.h"
|
||
|
#include "llvm/IR/CallingConv.h"
|
||
|
#include "llvm/IR/Function.h"
|
||
|
#include <cassert>
|
||
|
#include <vector>
|
||
|
|
||
|
#define MAX_LANES 64
|
||
|
|
||
|
using namespace llvm;
|
||
|
|
||
|
SIMachineFunctionInfo::SIMachineFunctionInfo(const MachineFunction &MF)
|
||
|
: AMDGPUMachineFunction(MF),
|
||
|
PrivateSegmentBuffer(false),
|
||
|
DispatchPtr(false),
|
||
|
QueuePtr(false),
|
||
|
KernargSegmentPtr(false),
|
||
|
DispatchID(false),
|
||
|
FlatScratchInit(false),
|
||
|
GridWorkgroupCountX(false),
|
||
|
GridWorkgroupCountY(false),
|
||
|
GridWorkgroupCountZ(false),
|
||
|
WorkGroupIDX(false),
|
||
|
WorkGroupIDY(false),
|
||
|
WorkGroupIDZ(false),
|
||
|
WorkGroupInfo(false),
|
||
|
PrivateSegmentWaveByteOffset(false),
|
||
|
WorkItemIDX(false),
|
||
|
WorkItemIDY(false),
|
||
|
WorkItemIDZ(false),
|
||
|
ImplicitBufferPtr(false),
|
||
|
ImplicitArgPtr(false),
|
||
|
GITPtrHigh(0xffffffff) {
|
||
|
const SISubtarget &ST = MF.getSubtarget<SISubtarget>();
|
||
|
const Function &F = MF.getFunction();
|
||
|
FlatWorkGroupSizes = ST.getFlatWorkGroupSizes(F);
|
||
|
WavesPerEU = ST.getWavesPerEU(F);
|
||
|
|
||
|
if (!isEntryFunction()) {
|
||
|
// Non-entry functions have no special inputs for now, other registers
|
||
|
// required for scratch access.
|
||
|
ScratchRSrcReg = AMDGPU::SGPR0_SGPR1_SGPR2_SGPR3;
|
||
|
ScratchWaveOffsetReg = AMDGPU::SGPR4;
|
||
|
FrameOffsetReg = AMDGPU::SGPR5;
|
||
|
StackPtrOffsetReg = AMDGPU::SGPR32;
|
||
|
|
||
|
ArgInfo.PrivateSegmentBuffer =
|
||
|
ArgDescriptor::createRegister(ScratchRSrcReg);
|
||
|
ArgInfo.PrivateSegmentWaveByteOffset =
|
||
|
ArgDescriptor::createRegister(ScratchWaveOffsetReg);
|
||
|
|
||
|
if (F.hasFnAttribute("amdgpu-implicitarg-ptr"))
|
||
|
ImplicitArgPtr = true;
|
||
|
} else {
|
||
|
if (F.hasFnAttribute("amdgpu-implicitarg-ptr"))
|
||
|
KernargSegmentPtr = true;
|
||
|
}
|
||
|
|
||
|
CallingConv::ID CC = F.getCallingConv();
|
||
|
if (CC == CallingConv::AMDGPU_KERNEL || CC == CallingConv::SPIR_KERNEL) {
|
||
|
if (!F.arg_empty())
|
||
|
KernargSegmentPtr = true;
|
||
|
WorkGroupIDX = true;
|
||
|
WorkItemIDX = true;
|
||
|
} else if (CC == CallingConv::AMDGPU_PS) {
|
||
|
PSInputAddr = AMDGPU::getInitialPSInputAddr(F);
|
||
|
}
|
||
|
|
||
|
if (ST.debuggerEmitPrologue()) {
|
||
|
// Enable everything.
|
||
|
WorkGroupIDX = true;
|
||
|
WorkGroupIDY = true;
|
||
|
WorkGroupIDZ = true;
|
||
|
WorkItemIDX = true;
|
||
|
WorkItemIDY = true;
|
||
|
WorkItemIDZ = true;
|
||
|
} else {
|
||
|
if (F.hasFnAttribute("amdgpu-work-group-id-x"))
|
||
|
WorkGroupIDX = true;
|
||
|
|
||
|
if (F.hasFnAttribute("amdgpu-work-group-id-y"))
|
||
|
WorkGroupIDY = true;
|
||
|
|
||
|
if (F.hasFnAttribute("amdgpu-work-group-id-z"))
|
||
|
WorkGroupIDZ = true;
|
||
|
|
||
|
if (F.hasFnAttribute("amdgpu-work-item-id-x"))
|
||
|
WorkItemIDX = true;
|
||
|
|
||
|
if (F.hasFnAttribute("amdgpu-work-item-id-y"))
|
||
|
WorkItemIDY = true;
|
||
|
|
||
|
if (F.hasFnAttribute("amdgpu-work-item-id-z"))
|
||
|
WorkItemIDZ = true;
|
||
|
}
|
||
|
|
||
|
const MachineFrameInfo &FrameInfo = MF.getFrameInfo();
|
||
|
bool MaySpill = ST.isVGPRSpillingEnabled(F);
|
||
|
bool HasStackObjects = FrameInfo.hasStackObjects();
|
||
|
|
||
|
if (isEntryFunction()) {
|
||
|
// X, XY, and XYZ are the only supported combinations, so make sure Y is
|
||
|
// enabled if Z is.
|
||
|
if (WorkItemIDZ)
|
||
|
WorkItemIDY = true;
|
||
|
|
||
|
if (HasStackObjects || MaySpill) {
|
||
|
PrivateSegmentWaveByteOffset = true;
|
||
|
|
||
|
// HS and GS always have the scratch wave offset in SGPR5 on GFX9.
|
||
|
if (ST.getGeneration() >= AMDGPUSubtarget::GFX9 &&
|
||
|
(CC == CallingConv::AMDGPU_HS || CC == CallingConv::AMDGPU_GS))
|
||
|
ArgInfo.PrivateSegmentWaveByteOffset
|
||
|
= ArgDescriptor::createRegister(AMDGPU::SGPR5);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
bool IsCOV2 = ST.isAmdCodeObjectV2(MF);
|
||
|
if (IsCOV2) {
|
||
|
if (HasStackObjects || MaySpill)
|
||
|
PrivateSegmentBuffer = true;
|
||
|
|
||
|
if (F.hasFnAttribute("amdgpu-dispatch-ptr"))
|
||
|
DispatchPtr = true;
|
||
|
|
||
|
if (F.hasFnAttribute("amdgpu-queue-ptr"))
|
||
|
QueuePtr = true;
|
||
|
|
||
|
if (F.hasFnAttribute("amdgpu-dispatch-id"))
|
||
|
DispatchID = true;
|
||
|
} else if (ST.isMesaGfxShader(MF)) {
|
||
|
if (HasStackObjects || MaySpill)
|
||
|
ImplicitBufferPtr = true;
|
||
|
}
|
||
|
|
||
|
if (F.hasFnAttribute("amdgpu-kernarg-segment-ptr"))
|
||
|
KernargSegmentPtr = true;
|
||
|
|
||
|
if (ST.hasFlatAddressSpace() && isEntryFunction() && IsCOV2) {
|
||
|
// TODO: This could be refined a lot. The attribute is a poor way of
|
||
|
// detecting calls that may require it before argument lowering.
|
||
|
if (HasStackObjects || F.hasFnAttribute("amdgpu-flat-scratch"))
|
||
|
FlatScratchInit = true;
|
||
|
}
|
||
|
|
||
|
Attribute A = F.getFnAttribute("amdgpu-git-ptr-high");
|
||
|
StringRef S = A.getValueAsString();
|
||
|
if (!S.empty())
|
||
|
S.consumeInteger(0, GITPtrHigh);
|
||
|
}
|
||
|
|
||
|
unsigned SIMachineFunctionInfo::addPrivateSegmentBuffer(
|
||
|
const SIRegisterInfo &TRI) {
|
||
|
ArgInfo.PrivateSegmentBuffer =
|
||
|
ArgDescriptor::createRegister(TRI.getMatchingSuperReg(
|
||
|
getNextUserSGPR(), AMDGPU::sub0, &AMDGPU::SReg_128RegClass));
|
||
|
NumUserSGPRs += 4;
|
||
|
return ArgInfo.PrivateSegmentBuffer.getRegister();
|
||
|
}
|
||
|
|
||
|
unsigned SIMachineFunctionInfo::addDispatchPtr(const SIRegisterInfo &TRI) {
|
||
|
ArgInfo.DispatchPtr = ArgDescriptor::createRegister(TRI.getMatchingSuperReg(
|
||
|
getNextUserSGPR(), AMDGPU::sub0, &AMDGPU::SReg_64RegClass));
|
||
|
NumUserSGPRs += 2;
|
||
|
return ArgInfo.DispatchPtr.getRegister();
|
||
|
}
|
||
|
|
||
|
unsigned SIMachineFunctionInfo::addQueuePtr(const SIRegisterInfo &TRI) {
|
||
|
ArgInfo.QueuePtr = ArgDescriptor::createRegister(TRI.getMatchingSuperReg(
|
||
|
getNextUserSGPR(), AMDGPU::sub0, &AMDGPU::SReg_64RegClass));
|
||
|
NumUserSGPRs += 2;
|
||
|
return ArgInfo.QueuePtr.getRegister();
|
||
|
}
|
||
|
|
||
|
unsigned SIMachineFunctionInfo::addKernargSegmentPtr(const SIRegisterInfo &TRI) {
|
||
|
ArgInfo.KernargSegmentPtr
|
||
|
= ArgDescriptor::createRegister(TRI.getMatchingSuperReg(
|
||
|
getNextUserSGPR(), AMDGPU::sub0, &AMDGPU::SReg_64RegClass));
|
||
|
NumUserSGPRs += 2;
|
||
|
return ArgInfo.KernargSegmentPtr.getRegister();
|
||
|
}
|
||
|
|
||
|
unsigned SIMachineFunctionInfo::addDispatchID(const SIRegisterInfo &TRI) {
|
||
|
ArgInfo.DispatchID = ArgDescriptor::createRegister(TRI.getMatchingSuperReg(
|
||
|
getNextUserSGPR(), AMDGPU::sub0, &AMDGPU::SReg_64RegClass));
|
||
|
NumUserSGPRs += 2;
|
||
|
return ArgInfo.DispatchID.getRegister();
|
||
|
}
|
||
|
|
||
|
unsigned SIMachineFunctionInfo::addFlatScratchInit(const SIRegisterInfo &TRI) {
|
||
|
ArgInfo.FlatScratchInit = ArgDescriptor::createRegister(TRI.getMatchingSuperReg(
|
||
|
getNextUserSGPR(), AMDGPU::sub0, &AMDGPU::SReg_64RegClass));
|
||
|
NumUserSGPRs += 2;
|
||
|
return ArgInfo.FlatScratchInit.getRegister();
|
||
|
}
|
||
|
|
||
|
unsigned SIMachineFunctionInfo::addImplicitBufferPtr(const SIRegisterInfo &TRI) {
|
||
|
ArgInfo.ImplicitBufferPtr = ArgDescriptor::createRegister(TRI.getMatchingSuperReg(
|
||
|
getNextUserSGPR(), AMDGPU::sub0, &AMDGPU::SReg_64RegClass));
|
||
|
NumUserSGPRs += 2;
|
||
|
return ArgInfo.ImplicitBufferPtr.getRegister();
|
||
|
}
|
||
|
|
||
|
static bool isCalleeSavedReg(const MCPhysReg *CSRegs, MCPhysReg Reg) {
|
||
|
for (unsigned I = 0; CSRegs[I]; ++I) {
|
||
|
if (CSRegs[I] == Reg)
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
/// Reserve a slice of a VGPR to support spilling for FrameIndex \p FI.
|
||
|
bool SIMachineFunctionInfo::allocateSGPRSpillToVGPR(MachineFunction &MF,
|
||
|
int FI) {
|
||
|
std::vector<SpilledReg> &SpillLanes = SGPRToVGPRSpills[FI];
|
||
|
|
||
|
// This has already been allocated.
|
||
|
if (!SpillLanes.empty())
|
||
|
return true;
|
||
|
|
||
|
const SISubtarget &ST = MF.getSubtarget<SISubtarget>();
|
||
|
const SIRegisterInfo *TRI = ST.getRegisterInfo();
|
||
|
MachineFrameInfo &FrameInfo = MF.getFrameInfo();
|
||
|
MachineRegisterInfo &MRI = MF.getRegInfo();
|
||
|
unsigned WaveSize = ST.getWavefrontSize();
|
||
|
|
||
|
unsigned Size = FrameInfo.getObjectSize(FI);
|
||
|
assert(Size >= 4 && Size <= 64 && "invalid sgpr spill size");
|
||
|
assert(TRI->spillSGPRToVGPR() && "not spilling SGPRs to VGPRs");
|
||
|
|
||
|
int NumLanes = Size / 4;
|
||
|
|
||
|
const MCPhysReg *CSRegs = TRI->getCalleeSavedRegs(&MF);
|
||
|
|
||
|
// Make sure to handle the case where a wide SGPR spill may span between two
|
||
|
// VGPRs.
|
||
|
for (int I = 0; I < NumLanes; ++I, ++NumVGPRSpillLanes) {
|
||
|
unsigned LaneVGPR;
|
||
|
unsigned VGPRIndex = (NumVGPRSpillLanes % WaveSize);
|
||
|
|
||
|
if (VGPRIndex == 0) {
|
||
|
LaneVGPR = TRI->findUnusedRegister(MRI, &AMDGPU::VGPR_32RegClass, MF);
|
||
|
if (LaneVGPR == AMDGPU::NoRegister) {
|
||
|
// We have no VGPRs left for spilling SGPRs. Reset because we will not
|
||
|
// partially spill the SGPR to VGPRs.
|
||
|
SGPRToVGPRSpills.erase(FI);
|
||
|
NumVGPRSpillLanes -= I;
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
Optional<int> CSRSpillFI;
|
||
|
if (FrameInfo.hasCalls() && CSRegs && isCalleeSavedReg(CSRegs, LaneVGPR)) {
|
||
|
// TODO: Should this be a CreateSpillStackObject? This is technically a
|
||
|
// weird CSR spill.
|
||
|
CSRSpillFI = FrameInfo.CreateStackObject(4, 4, false);
|
||
|
}
|
||
|
|
||
|
SpillVGPRs.push_back(SGPRSpillVGPRCSR(LaneVGPR, CSRSpillFI));
|
||
|
|
||
|
// Add this register as live-in to all blocks to avoid machine verifer
|
||
|
// complaining about use of an undefined physical register.
|
||
|
for (MachineBasicBlock &BB : MF)
|
||
|
BB.addLiveIn(LaneVGPR);
|
||
|
} else {
|
||
|
LaneVGPR = SpillVGPRs.back().VGPR;
|
||
|
}
|
||
|
|
||
|
SpillLanes.push_back(SpilledReg(LaneVGPR, VGPRIndex));
|
||
|
}
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
void SIMachineFunctionInfo::removeSGPRToVGPRFrameIndices(MachineFrameInfo &MFI) {
|
||
|
for (auto &R : SGPRToVGPRSpills)
|
||
|
MFI.RemoveStackObject(R.first);
|
||
|
}
|