================
@@ -240,6 +240,28 @@ template <typename LocationEnum> class MemoryEffectsBase {
return getWithoutLoc(Location::InaccessibleMem).doesNotAccessMemory();
}
+ bool isTargetMemLoc(IRMemLocation Loc) {
+ return static_cast<unsigned>(Loc) >=
+ static_cast<unsigned>(Location::FirstTarget);
+ }
+
+ // We need to check if target memory is the same for all locations.
+ // So it behaves the same as default read/write, but for Target
+ // locations only
+ bool targetMemSameForAll() {
----------------
antoniofrighetto wrote:
Also maybe s/targetMemSameForAll/isTargetMemLocSameForAll/.
https://github.com/llvm/llvm-project/pull/176968
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits