[flang-commits] [flang] [mlir] [mlir][debug] Allow multiple DIGlobalVariableExpression on globals. (PR #111981)

Abid Qadeer via flang-commits flang-commits at lists.llvm.org
Fri Oct 11 06:47:49 PDT 2024


================
@@ -2089,7 +2089,7 @@ void GlobalOp::build(OpBuilder &builder, OperationState &result, Type type,
                      Attribute value, uint64_t alignment, unsigned addrSpace,
                      bool dsoLocal, bool threadLocal, SymbolRefAttr comdat,
                      ArrayRef<NamedAttribute> attrs,
-                     DIGlobalVariableExpressionAttr dbgExpr) {
+                     ArrayRef<Attribute> dbgExprs) {
----------------
abidh wrote:

I tried this but it did not work. The `DIGlobalVariableExpressionArrayAttr` becomes an ArrayAttr and that takes an `ArrayRef<Attribute>` and compiler does not allow `ArrayRef<DIGlobalVariableExpressionAttr>` to be passed for that. I thought doing manual conversion was not worth the gain.

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


More information about the flang-commits mailing list