[all-commits] [llvm/llvm-project] 368fbc: [flang] Lower volatile class types (#138607)

Asher Mancinelli via All-commits all-commits at lists.llvm.org
Tue May 6 07:38:22 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 368fbc21631a16b66a2a5609271c467a025a08b9
      https://github.com/llvm/llvm-project/commit/368fbc21631a16b66a2a5609271c467a025a08b9
  Author: Asher Mancinelli <ashermancinelli at gmail.com>
  Date:   2025-05-06 (Tue, 06 May 2025)

  Changed paths:
    M flang/lib/Lower/ConvertExprToHLFIR.cpp
    A flang/test/Lower/volatile-derived-type-pointer.f90

  Log Message:
  -----------
  [flang] Lower volatile class types (#138607)

So far, only boxes and references have had their volatile attribute set
during lowering. This patch enables the volatility of classes to be
properly represented in the ir, same as box and ref.

For simple cases, not much needs to change in the codegen or conversion
patterns because the prior work on volatile refs/boxes propagates
volatility already. I am running further testing with the strict
verification enabled to find remaining cases of incorrect/missing
volatile propagation.



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