[llvm] [Lint][AMDGPU] No store to const addrspace (PR #109181)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 23 21:46:07 PDT 2024
================
@@ -93,6 +93,33 @@ inline bool isExtendedGlobalAddrSpace(unsigned AS) {
AS == AMDGPUAS::CONSTANT_ADDRESS_32BIT ||
AS > AMDGPUAS::MAX_AMDGPU_ADDRESS;
}
+
+inline bool isConstantAddressSpace(unsigned AS) {
+ switch (AS) {
+ using namespace AMDGPUAS;
----------------
arsenm wrote:
```suggestion
using namespace AMDGPUAS;
switch (AS) {
```
https://github.com/llvm/llvm-project/pull/109181
More information about the llvm-commits
mailing list