[PATCH] D139646: AMDGPU: Check if operand with vgpr RC contains reg when printing

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 8 10:09:13 PST 2022


Petar.Avramovic added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp:678
+        StringRef RCName(MRI.getRegClassName(RC));
+        if (RCName.contains("VReg_")) {
+          O << "/*Invalid register, operand has \'" << RCName
----------------
I don't know what is going on here but if we check for other classes there is a lot of errors. Related to registers with special name not being member of register class, common error is that M0 is not in SReg_32.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139646/new/

https://reviews.llvm.org/D139646



More information about the llvm-commits mailing list