[flang-commits] [flang] [flang][cuda] Extends matching distance computation (PR #91810)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Fri May 10 14:12:16 PDT 2024


================
@@ -2501,8 +2501,13 @@ static constexpr int cudaInfMatchingValue{std::numeric_limits<int>::max()};
 
 // Compute the matching distance as described in section 3.2.3 of the CUDA
 // Fortran references.
-static int GetMatchingDistance(const characteristics::DummyArgument &dummy,
+static int GetMatchingDistance(const common::LanguageFeatureControl &features,
+    const characteristics::DummyArgument &dummy,
     const std::optional<ActualArgument> &actual) {
+  bool isGpuManaged = features.IsEnabled(common::LanguageFeature::GpuManaged);
----------------
klausler wrote:

Please use braced initialization in semantics.

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


More information about the flang-commits mailing list