[flang-commits] [flang] [flang][acc] Implement type categorization for FIR types (PR #126964)

Razvan Lupusoru via flang-commits flang-commits at lists.llvm.org
Wed Feb 12 14:07:34 PST 2025


================
@@ -224,4 +226,157 @@ OpenACCMappableModel<fir::BaseBoxType>::generateAccBounds(
   return {};
 }
 
+static bool isScalarLike(mlir::Type type) {
+  return type.isIntOrIndexOrFloat() ||
+         mlir::isa<mlir::ComplexType, fir::LogicalType>(type) ||
+         fir::isa_ref_type(type);
----------------
razvanlupusoru wrote:

Done

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


More information about the flang-commits mailing list