[Mlir-commits] [llvm] [mlir] [IR][ModRef] Introduce `errno` memory	location (PR #120783)
    Nikita Popov 
    llvmlistbot at llvm.org
       
    Wed Feb 12 12:34:59 PST 2025
    
    
  
================
@@ -139,6 +141,16 @@ template <typename LocationEnum> class MemoryEffectsBase {
     return MemoryEffectsBase(Location::InaccessibleMem, MR);
   }
 
+  /// Create MemoryEffectsBase that can only access errno memory.
+  static MemoryEffectsBase errnoMemOnly(ModRefInfo MR = ModRefInfo::ModRef) {
+    return MemoryEffectsBase(Location::ErrnoMem, MR);
+  }
+
+  /// Create MemoryEffectsBase that can only access default memory.
+  static MemoryEffectsBase defaultMemOnly(ModRefInfo MR = ModRefInfo::ModRef) {
----------------
nikic wrote:
```suggestion
  static MemoryEffectsBase otherMemOnly(ModRefInfo MR = ModRefInfo::ModRef) {
```
To keep terminology consistent?
https://github.com/llvm/llvm-project/pull/120783
    
    
More information about the Mlir-commits
mailing list