[flang-commits] [flang] [llvm] [flang][cuda] Add support for derived-type component with managed/unified attributes (PR #177409)
Valentin Clement バレンタイン クレメン via flang-commits
flang-commits at lists.llvm.org
Thu Jan 22 11:15:04 PST 2026
clementval wrote:
> It would be nice if the device/managed/unified distinctions could be maintained elsewhere, but it would be bad to change the layout or size of the derived type component information table entry type. If you can find an unused byte in there (due to alignment padding, perhaps), please use that instead.
Looking at the structure, I think there is some padding I could use between `rank_` and `offset_`. Let me know if that feels wrong @klausler.
```
Offset Size Field
------ ---- -----
0 104 name_ (StaticDescriptor<0>)
104 1 genre_
105 1 category_
106 1 kind_
107 1 rank_
108 4 [PADDING]
112 8 offset_
120 12 characterLen_ (Value: 1 byte genre + 4 bytes TypeParameterValue + 3 padding)
```
https://github.com/llvm/llvm-project/pull/177409
More information about the flang-commits
mailing list