[clang] [CIR] Upstream support for pointer-to-method casts (PR #178004)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 26 10:03:28 PST 2026


================
@@ -2797,6 +2797,55 @@ def CIR_ExtractMemberOp : CIR_Op<"extract_member", [Pure]> {
   let hasVerifier = 1;
 }
 
+//===----------------------------------------------------------------------===//
+// InsertMemberOp
+//===----------------------------------------------------------------------===//
+
+def CIR_InsertMemberOp : CIR_Op<"insert_member", [
+  Pure, AllTypesMatch<["record", "result"]>
+]> {
+  let summary = "Overwrite the value of a member of a record value";
+  let description = [{
+    The `cir.insert_member` operation overwrites the value of a particular
+    member in the input record value, and returns the modified record value. The
----------------
erichkeane wrote:

does `value` add something here?  Its a little awkward sounding?

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


More information about the cfe-commits mailing list