[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

Bruno Cardoso Lopes via cfe-commits cfe-commits at lists.llvm.org
Wed May 28 14:50:37 PDT 2025


================
@@ -276,4 +276,46 @@ def ConstPtrAttr : CIR_Attr<"ConstPtr", "ptr", [TypedAttrInterface]> {
   }];
 }
 
+//===----------------------------------------------------------------------===//
+// ConstComplexAttr
+//===----------------------------------------------------------------------===//
+
+def ConstComplexAttr : CIR_Attr<"ConstComplex", "const_complex",
+                                [TypedAttrInterface]> {
+  let summary = "An attribute that contains a constant complex value";
+  let description = [{
+    The `#cir.const_complex` attribute contains a constant value of complex number
----------------
bcardosolopes wrote:

Ultra nit: 80-col

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


More information about the cfe-commits mailing list