[clang] [CIR] Add CIR vtable attribute (PR #154415)
Henrich Lauko via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 20 00:39:36 PDT 2025
================
@@ -496,6 +496,46 @@ def CIR_GlobalViewAttr : CIR_Attr<"GlobalView", "global_view", [
}];
}
+//===----------------------------------------------------------------------===//
+// VTableAttr
+//===----------------------------------------------------------------------===//
+
+def VTableAttr : CIR_Attr<"VTable", "vtable", [TypedAttrInterface]> {
+ let summary = "Represents a C++ vtable";
+ let description = [{
+ Wraps a #cir.const_record containing vtable data.
----------------
xlauko wrote:
I don't get how this wraps record, since it wraps vtable array?
https://github.com/llvm/llvm-project/pull/154415
More information about the cfe-commits
mailing list