[flang-commits] [flang] [flang] Add FIR attributes and apply them to dummy arguments (PR #115686)

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Mon Nov 11 03:41:31 PST 2024


================
@@ -1116,8 +1116,12 @@ class Fortran::lower::CallInterfaceImpl {
       addMLIRAttr(fir::getContiguousAttrName());
     if (obj.attrs.test(Attrs::Value))
       isValueAttr = true; // TODO: do we want an mlir::Attribute as well?
-    if (obj.attrs.test(Attrs::Volatile))
+    if (obj.attrs.test(Attrs::Volatile)) {
       TODO(loc, "VOLATILE in procedure interface");
+      addMLIRAttr(fir::getVolatileAttrName());
+    }
+    if (obj.attrs.test(Attrs::Asynchronous))
----------------
tblah wrote:

Please could you also update the comment on line 1110

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


More information about the flang-commits mailing list