[flang-commits] [flang] [flang][cuda] Update attribute compatibily check for unified matching rule (PR #90679)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Tue Apr 30 16:10:29 PDT 2024


================
@@ -114,8 +114,9 @@ static constexpr IgnoreTKRSet ignoreTKRAll{IgnoreTKR::Type, IgnoreTKR::Kind,
     IgnoreTKR::Rank, IgnoreTKR::Device, IgnoreTKR::Managed};
 std::string AsFortran(IgnoreTKRSet);
 
-bool AreCompatibleCUDADataAttrs(
-    std::optional<CUDADataAttr>, std::optional<CUDADataAttr>, IgnoreTKRSet);
+bool AreCompatibleCUDADataAttrs(std::optional<CUDADataAttr>,
+    std::optional<CUDADataAttr>, IgnoreTKRSet,
+    bool allowUnifiedMatchingRule = false);
----------------
klausler wrote:

It would be more future-proof to not define a default value for this new flag argument.

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


More information about the flang-commits mailing list