[llvm] [AMDGPU] Check noalias.addrspace in mayAccessScratchThroughFlat (PR #151319)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 1 18:10:13 PDT 2025
================
@@ -1630,6 +1631,22 @@ getIntegerVecAttribute(const Function &F, StringRef Name, unsigned Size) {
return Vals;
}
+bool hasValueInRange(const MDNode *MD, unsigned Val) {
+ if (!MD)
+ return false;
+
+ assert((MD->getNumOperands() % 2 == 0) && "invalid number of operands!");
----------------
arsenm wrote:
This should already be checked by the IR verifier
https://github.com/llvm/llvm-project/pull/151319
More information about the llvm-commits
mailing list