[clang] [CIR] Upstream DynamicCastOp (PR #161734)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 3 16:53:09 PDT 2025
================
@@ -601,6 +601,60 @@ def CIR_VTableAttr : CIR_Attr<"VTable", "vtable", [TypedAttrInterface]> {
}];
}
+//===----------------------------------------------------------------------===//
+// DynamicCastInfoAttr
+//===----------------------------------------------------------------------===//
+
+def CIR_DynamicCastInfoAttr : CIR_Attr<"DynamicCastInfo", "dyn_cast_info"> {
+ let summary = "ABI specific information about a dynamic cast";
+ let description = [{
+ Provide ABI specific information about a dynamic cast operation.
+
+ The `srcRtti` and the `destRtti` parameters give the RTTI of the source
----------------
andykaylor wrote:
It would be good to settle on one consistent style. A quick regex search of the source code leaves me with the impression that both CIR and MLIR dialects in general are pretty evenly split as to which style they use. I don't know if that reflects a transition over time or if it's just an accident. I see that a couple of dialects have declared for snake_case (which gets transformed to camelCase during code generation).
https://github.com/llvm/llvm-project/pull/161734
More information about the cfe-commits
mailing list