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

Razvan Lupusoru via flang-commits flang-commits at lists.llvm.org
Thu Jan 8 09:58:14 PST 2026


================
@@ -86,6 +87,25 @@ struct OutlineRematerializationModel
     : public mlir::acc::OutlineRematerializationOpInterface::ExternalModel<
           OutlineRematerializationModel<Op>, Op> {};
 
+/// External model to implement FortranVariableOpInterface for acc::CacheOp.
+struct CacheFortranVariableModel
----------------
razvanlupusoru wrote:

This is an interesting idea indeed to attach this interface to `acc.cache`. However, it seems it is incomplete - no information is actually recorded. Can you please clarify what the problem is having hlfir.declare/fir.declare encode this information? We do this for other cases include data and private clauses.

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


More information about the flang-commits mailing list