summaryrefslogtreecommitdiff
path: root/llvm/lib/Target/AMDGPU/SIProgramInfo.cpp
diff options
context:
space:
mode:
authorKoakuma <koachan@protonmail.com>2024-07-08 19:19:54 +0700
committerKoakuma <koachan@protonmail.com>2024-07-08 19:19:54 +0700
commit5c4fdc2fd5898ebd9e89999a4f4b8aa289ca637f (patch)
treef3b92a07f3dfc6e70f36d1000605f36a3c15af46 /llvm/lib/Target/AMDGPU/SIProgramInfo.cpp
parentdbda8e2f2cd8764e0badd983915d62a2c3377f4d (diff)
parente9b8cd0c806db00f0981fb36717077c941426302 (diff)
Created using spr 1.3.5 [skip ci]
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIProgramInfo.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/SIProgramInfo.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIProgramInfo.cpp b/llvm/lib/Target/AMDGPU/SIProgramInfo.cpp
index 0d40816cdd4b..212edff09783 100644
--- a/llvm/lib/Target/AMDGPU/SIProgramInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/SIProgramInfo.cpp
@@ -161,45 +161,6 @@ static const MCExpr *MaskShift(const MCExpr *Val, uint32_t Mask, uint32_t Shift,
return Val;
}
-uint64_t SIProgramInfo::getComputePGMRSrc1(const GCNSubtarget &ST) const {
- int64_t VBlocks, SBlocks;
- VGPRBlocks->evaluateAsAbsolute(VBlocks);
- SGPRBlocks->evaluateAsAbsolute(SBlocks);
-
- uint64_t Reg = S_00B848_VGPRS(static_cast<uint64_t>(VBlocks)) |
- S_00B848_SGPRS(static_cast<uint64_t>(SBlocks)) |
- getComputePGMRSrc1Reg(*this, ST);
-
- return Reg;
-}
-
-uint64_t SIProgramInfo::getPGMRSrc1(CallingConv::ID CC,
- const GCNSubtarget &ST) const {
- if (AMDGPU::isCompute(CC)) {
- return getComputePGMRSrc1(ST);
- }
- int64_t VBlocks, SBlocks;
- VGPRBlocks->evaluateAsAbsolute(VBlocks);
- SGPRBlocks->evaluateAsAbsolute(SBlocks);
-
- return getPGMRSrc1Reg(*this, CC, ST) |
- S_00B848_VGPRS(static_cast<uint64_t>(VBlocks)) |
- S_00B848_SGPRS(static_cast<uint64_t>(SBlocks));
-}
-
-uint64_t SIProgramInfo::getComputePGMRSrc2() const {
- int64_t ScratchEn;
- ScratchEnable->evaluateAsAbsolute(ScratchEn);
- return ScratchEn | getComputePGMRSrc2Reg(*this);
-}
-
-uint64_t SIProgramInfo::getPGMRSrc2(CallingConv::ID CC) const {
- if (AMDGPU::isCompute(CC))
- return getComputePGMRSrc2();
-
- return 0;
-}
-
const MCExpr *SIProgramInfo::getComputePGMRSrc1(const GCNSubtarget &ST,
MCContext &Ctx) const {
uint64_t Reg = getComputePGMRSrc1Reg(*this, ST);