[llvm-branch-commits] [llvm] [AMDGPU] Serialize WWM_REG vreg flag (PR #110229)

Matt Arsenault via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Oct 8 00:02:33 PDT 2024


================
@@ -454,6 +454,16 @@ class SIRegisterInfo final : public AMDGPUGenRegisterInfo {
   // No check if the subreg is supported by the current RC is made.
   unsigned getSubRegAlignmentNumBits(const TargetRegisterClass *RC,
                                      unsigned SubReg) const;
+
+  std::optional<uint8_t> getVRegFlagValue(StringRef Name) const override {
+    if (Name == "WWM_REG") {
+      return AMDGPU::VirtRegFlag::WWM_REG;
+    }
+    return {};
----------------
arsenm wrote:

```suggestion
    return Name == "WWM_REG" ? AMDGPU::VirtRegFlag::WWM_REG : {};
```

https://github.com/llvm/llvm-project/pull/110229


More information about the llvm-branch-commits mailing list