[PATCH] D65158: [AMDGPU] Add all vgpr classes to AMDGPUOperand::isVReg()
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 23 11:09:02 PDT 2019
rampitec created this revision.
rampitec added a reviewer: arsenm.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl.
I am not aware of any problems because of this, but two register
classes are missing.
https://reviews.llvm.org/D65158
Files:
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
Index: lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
===================================================================
--- lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
+++ lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
@@ -275,8 +275,10 @@
isRegClass(AMDGPU::VReg_64RegClassID) ||
isRegClass(AMDGPU::VReg_96RegClassID) ||
isRegClass(AMDGPU::VReg_128RegClassID) ||
+ isRegClass(AMDGPU::VReg_160RegClassID) ||
isRegClass(AMDGPU::VReg_256RegClassID) ||
- isRegClass(AMDGPU::VReg_512RegClassID);
+ isRegClass(AMDGPU::VReg_512RegClassID) ||
+ isRegClass(AMDGPU::VReg_1024RegClassID);
}
bool isVReg32() const {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65158.211337.patch
Type: text/x-patch
Size: 709 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190723/69728ab3/attachment.bin>
More information about the llvm-commits
mailing list