[flang-commits] [flang] [Flang] Extracting internal constants from scalar literals (PR #73829)

Mats Petersson via flang-commits flang-commits at lists.llvm.org
Mon Dec 11 12:43:05 PST 2023


================
@@ -16,9 +16,7 @@
 
 // CHECK-LABEL: define void @_QPtest_proc_dummy_other(ptr
 // CHECK-SAME:              %[[VAL_0:.*]])
-// CHECK:         %[[VAL_1:.*]] = alloca i32, i64 1, align 4
----------------
Leporacanthicus wrote:

So, I don't think we have any control over alignment of global values. They are just "aligned as MLIR sees fit", which should work fine for align 4 on i32, but wouldn't work for an align 8 of i32, say. 

Do we even have access to alignment in FIR?  There's no mention in "FIRBuilder.cpp". 

https://github.com/llvm/llvm-project/pull/73829


More information about the flang-commits mailing list