[clang] [CIR] Add VTTAddrPointOp (PR #155048)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 25 06:51:44 PDT 2025


================
@@ -1906,6 +1906,70 @@ def CIR_VTableGetVirtualFnAddrOp : CIR_Op<"vtable.get_virtual_fn_addr", [
   }];
 }
 
+//===----------------------------------------------------------------------===//
+// VTTAddrPointOp
+//===----------------------------------------------------------------------===//
+
+def CIR_VTTAddrPointOp : CIR_Op<"vtt.address_point", [
+  Pure, DeclareOpInterfaceMethods<SymbolUserOpInterface>
+]> {
+  let summary = "Get the VTT address point";
+  let description = [{
+    The `vtt.address_point` operation retrieves an element from the VTT,
----------------
erichkeane wrote:

We should still probably define `VTT` once in this paragraph :)  Not everyone reading this is going to have read EVERYTHING, so the summary/first use should say 'Virtual Table Table' (or whatever it is).

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


More information about the cfe-commits mailing list