[all-commits] [llvm/llvm-project] f0b701: [acc][flang] Checking scalar like variables when t...

Susan Tan (ス-ザン タン) via All-commits all-commits at lists.llvm.org
Tue Oct 14 17:53:38 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f0b701dfe4d786428a51b32b60bb7bf388140f0e
      https://github.com/llvm/llvm-project/commit/f0b701dfe4d786428a51b32b60bb7bf388140f0e
  Author: Susan Tan (ス-ザン タン) <zujunt at nvidia.com>
  Date:   2025-10-14 (Tue, 14 Oct 2025)

  Changed paths:
    M flang/lib/Optimizer/OpenACC/Support/FIROpenACCTypeInterfaces.cpp
    A flang/test/Fir/OpenACC/openacc-type-categories-declare-storage.mlir

  Log Message:
  -----------
  [acc][flang] Checking scalar like variables when there's storage operand to fir.declare (#163439)

currently this variable 
```
%7 = fir.declare %6 storage(%4[0]) {uniq_name = "_QFEpi"} : (!fir.ref<f32>, !fir.ref<!fir.array<4xi8>>) -> !fir.ref<f32>
[2:19]
```
is categorized as a scalar type when it really should be an aggregate
type, because it is part of !fir.ref<!fir.array<4xi8>>

This MR adds a classification to capture the storage operand in
fir.declare.



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