[clang] [llvm] Extend MemoryEffects to Support Target-Specific Memory Locations (PR #148650)

Paul Walker via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 23 07:36:10 PDT 2025


================
@@ -232,7 +243,10 @@ template <typename LocationEnum> class MemoryEffectsBase {
 
   /// Whether this function only (at most) accesses inaccessible memory.
   bool onlyAccessesInaccessibleMem() const {
-    return getWithoutLoc(Location::InaccessibleMem).doesNotAccessMemory();
+    return getWithoutLoc(IRMemLocation::TargetMem0)
+        .getWithoutLoc(IRMemLocation::TargetMem1)
----------------
paulwalker-arm wrote:

To be consistent `onlyAccessesInaccessibleOrArgMem` also needs the same additions.

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


More information about the llvm-commits mailing list