[llvm] [AMDGPU] NFC: Add helper to query archVGPR (PR #102690)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 9 15:37:24 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 03936534b520ba28be37de7e24c59ba28d0c10d7 51d8ce47e287bbe991dfa3cadbb25dfe43cfb2b1 --extensions h -- llvm/lib/Target/AMDGPU/GCNRegPressure.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/AMDGPU/GCNRegPressure.h b/llvm/lib/Target/AMDGPU/GCNRegPressure.h
index 08102a3524..a0cb52841f 100644
--- a/llvm/lib/Target/AMDGPU/GCNRegPressure.h
+++ b/llvm/lib/Target/AMDGPU/GCNRegPressure.h
@@ -54,7 +54,7 @@ struct GCNRegPressure {
     }
     return std::max(Value[VGPR32], Value[AGPR32]);
   }
-  unsigned getArchVGPRNum() const { return Value[VGPR32];}
+  unsigned getArchVGPRNum() const { return Value[VGPR32]; }
 
   unsigned getAGPRNum() const { return Value[AGPR32]; }
 

``````````

</details>


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


More information about the llvm-commits mailing list