[flang-commits] [flang] [flang][cuda] Resolve generic tie‑breaks using per‑arg CUDA distance (PR #181038)

Valentin Clement バレンタイン クレメン via flang-commits flang-commits at lists.llvm.org
Thu Feb 12 17:54:22 PST 2026


================
@@ -2799,6 +2799,31 @@ static bool CheckCompatibleArguments(
 
 static constexpr int cudaInfMatchingValue{std::numeric_limits<int>::max()};
 
+struct CudaMatchingDistance {
+  std::vector<int> perArg;
+  bool isInfinite{false};
+};
+
+static int CompareCudaMatchingDistance(
----------------
clementval wrote:

Adding a comment would be nice. 

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


More information about the flang-commits mailing list