[flang-commits] [clang] [flang] [llvm] [flang] Add -finit-local= to initialize automatic variables (PR #216164)
Daniel Chen via flang-commits
flang-commits at lists.llvm.org
Thu Sep 3 04:49:35 PDT 2026
================
@@ -0,0 +1,65 @@
+! LLVM IR-level regression test for volatile byte-fill stores.
+! Verifies that volatile locals produce "store volatile" in LLVM IR for
+! every byte written by the -finit-local= byte-fill paths.
----------------
DanielCChen wrote:
Added `test_volatile_char_fixed` (`character(10), volatile`) and `test_volatile_char_runtime` (`character(n), volatile`) to `finit-local-volatile-llvm.f90`, each checking `store volatile i8` under both `HEX` and `ZERO` prefixes. The zero mode emits a single `fir.zero_bits` store for fixed-length and a loop for runtime-length; both lower to `store volatile i8` in LLVM IR. Updated the file header to enumerate all covered paths.
https://github.com/llvm/llvm-project/pull/216164
More information about the flang-commits
mailing list