You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Flang][MLIR] Extend DataLAyout utilities to have basic GPU Module support
As there is now certain areas where we now have the possibility of having either a
ModuleOp or GPUModuleOp and both of these modules can have DataLayout's
and we may require utilising the DataLayout utilities in these areas I've taken the
liberty of trying to extend them for use with both.
Those with more knowledge of how they wish the GPUModuleOp's to interact
with their parent ModuleOp's DataLayout may have further alterations they
wish to make in the future, but for the moment, it'll simply utilise the basic
data layout construction which I believe combines parent and child datalayouts
from the ModuleOp and GPUModuleOp. If there is no GPUModuleOp
DataLayout it should default to the parent ModuleOp.
It's worth noting there is some weirdness if you have two module operations
defining builtin dialect DataLayout Entries, it appears the combinatorial
functionality for DataLayouts doesn't support the merging of these.
This behaviour is useful for areas like: https://github.com/llvm/llvm-project/pull/119585/files#diff-19fc4bcb38829d085e25d601d344bbd85bf7ef749ca359e348f4a7c750eae89dR1412 where we
have a crossroads between the two different module operations.
0 commit comments