[Mlir-commits] [flang] [mlir] [MLIR][LLVMIR] Add support for the full form of global_{ctor, dtor} (PR #133176)
Tobias Gysi
llvmlistbot at llvm.org
Thu Mar 27 00:13:32 PDT 2025
================
@@ -9,29 +9,38 @@ llvm.func @ctor() {
llvm.return
}
-// expected-error at +1{{mismatch between the number of ctors and the number of priorities}}
-llvm.mlir.global_ctors {ctors = [@ctor], priorities = []}
+// expected-error at +1{{ctors, priorities and data must have the same number of elements}}
----------------
gysit wrote:
```suggestion
// expected-error at +1{{ctors, priorities, and data must have the same number of elements}}
```
ultra nit: sorry for the comma nit picking but I couldn't resist.
Johannes recently added this detailed explanation on an internal PR :)

https://github.com/llvm/llvm-project/pull/133176
More information about the Mlir-commits
mailing list