[flang-commits] [clang] [flang] [flang] Added driver options for arrays repacking. (PR #134002)
Tarun Prabhu via flang-commits
flang-commits at lists.llvm.org
Wed Apr 2 06:58:26 PDT 2025
================
@@ -6974,6 +7019,22 @@ defm loop_versioning : BoolOptionWithoutMarshalling<"f", "version-loops-for-stri
PosFlag<SetTrue, [], [ClangOption], "Create unit-strided versions of loops">,
NegFlag<SetFalse, [], [ClangOption], "Do not create unit-strided loops (default)">>;
+defm stack_repack_arrays
+ : BoolOptionWithoutMarshalling<
+ "f", "stack-repack-arrays",
+ PosFlag<SetTrue, [], [],
+ "Attempt to allocate array temporaries created under "
+ "-frepack-arrays on the stack">,
+ NegFlag<
+ SetFalse, [], [],
+ "Allocate -frepack-arrays temporaries on the heap (default)">>,
+ DocBrief<[{Controls whether the array temporaries created under
+**-frepack-arrays** are allocated on the stack or on the heap.
+
+By default, the heap is used. Allocations of the polymorphic types
----------------
tarunprabhu wrote:
```suggestion
By default, the heap is used. Allocations of polymorphic types
```
https://github.com/llvm/llvm-project/pull/134002
More information about the flang-commits
mailing list