[all-commits] [llvm/llvm-project] 355dbb: [flang][FIR] enable fir.box_addr codegen inside fi...
jeanPerier via All-commits
all-commits at lists.llvm.org
Mon Sep 8 01:15:44 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 355dbbc37c7221b5c8d55278b021b8b60c19ff2d
https://github.com/llvm/llvm-project/commit/355dbbc37c7221b5c8d55278b021b8b60c19ff2d
Author: jeanPerier <jperier at nvidia.com>
Date: 2025-09-08 (Mon, 08 Sep 2025)
Changed paths:
M flang/lib/Optimizer/CodeGen/CodeGen.cpp
A flang/test/Fir/box_addr-codegen-in-global.fir
Log Message:
-----------
[flang][FIR] enable fir.box_addr codegen inside fir.global (#157120)
FIR lowering of the fir.box type inside fir.global is special (it is an
actual descriptor struct value instead of being a descriptor in memory)
and causes builtin.unrealized_conversion_cast to be inserted under the
hood by MLIR dialect conversion framework after each operation producing
a fir.box is translated. These builtin.unrealized_conversion_cast must
be removed before the code generation of operation of using the fir.box
in order to get the right "by value" code generation required in global
initial value definitions.
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