[flang-commits] [flang] [flang][acc] Implement cache directive lowering (PR #174897)

Valentin Clement バレンタイン クレメン via flang-commits flang-commits at lists.llvm.org
Thu Jan 8 10:20:48 PST 2026


================
@@ -4837,12 +4837,180 @@ genACC(Fortran::lower::AbstractConverter &converter,
       atomicConstruct.u);
 }
 
+/// Generate acc.bounds for cache directive. Handles:
+/// - Single element: arr(i) or arr(5)
+/// - Full range: arr(lower:upper)
+/// - Missing upper: arr(lower:) - uses array's upper bound
+/// - Missing lower: arr(:upper) - uses array's lower bound
+static void
+genCacheBounds(Fortran::lower::AbstractConverter &converter,
----------------
clementval wrote:

Why does cache needs it's own utility to generate bounds? 

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


More information about the flang-commits mailing list