[flang-commits] [flang] [mlir] [OpenMP] [MLIR] [Flang] Replace all uses of variables in ALLOCATE directive to use new value which is created. (PR #212361)
Pranav Bhandarkar via flang-commits
flang-commits at lists.llvm.org
Thu Jul 30 04:31:01 PDT 2026
================
@@ -115,3 +115,77 @@ llvm.func @test_allocate_array_global() {
omp.allocate_free (%z : !llvm.ptr) allocator(%alloc6 : i32)
llvm.return
}
+
+// -----
+
+// Verifies that array size is correctly calculated from a stack alloca:
----------------
bhandarkar-pranav wrote:
nit: It would be nice to add a test that exercises `getDynamicAllocatedSize`. It would test the `mul` instructions that that function would have to generate for dynamically allocated objects.
https://github.com/llvm/llvm-project/pull/212361
More information about the flang-commits
mailing list