[clang] [CIR] Add assume_separate_storage operation (PR #149696)

Henrich Lauko via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 21 00:53:50 PDT 2025


================
@@ -3004,6 +3004,26 @@ def CIR_AssumeOp : CIR_Op<"assume"> {
   }];
 }
 
+def CIR_AssumeSepStorageOp : CIR_Op<"assume_separate_storage",
+                                    [SameTypeOperands]> {
+  let summary =
+      "Tell the optimizer that two pointers point to different allocations";
+  let description = [{
+    The `cir.assume.separate_storage` operation takes two pointers as arguments,
----------------
xlauko wrote:

```suggestion
    The `cir.assume_separate_storage` operation takes two pointers as arguments,
```

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


More information about the cfe-commits mailing list