[all-commits] [llvm/llvm-project] f16983: [flang][acc] Ensure fir.class is handled in type c...

Razvan Lupusoru via All-commits all-commits at lists.llvm.org
Mon Jun 30 15:04:35 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f16983f7d0f827fbd131606b04880734ca325ca6
      https://github.com/llvm/llvm-project/commit/f16983f7d0f827fbd131606b04880734ca325ca6
  Author: Razvan Lupusoru <razvan.lupusoru at gmail.com>
  Date:   2025-06-30 (Mon, 30 Jun 2025)

  Changed paths:
    M flang/lib/Optimizer/OpenACC/FIROpenACCTypeInterfaces.cpp
    A flang/test/Fir/OpenACC/openacc-type-categories-class.f90
    M flang/test/lib/OpenACC/TestOpenACCInterfaces.cpp

  Log Message:
  -----------
  [flang][acc] Ensure fir.class is handled in type categorization (#146174)

fir.class is treated similarly as fir.box - but it has one key
distinction which is that it doesn't hold an element type. Thus the
categorization logic was mishandling this case for this reason (and also
the fact that it assumed that a base object is always a fir.ref).

This PR improves this handling and adds appropriate test exercising both
a class and a class field to ensure categorization works.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list