Commonblock names are not variables, but they can be marked as
threadprivate in OpenMP. This requires the commonblock name to
be bound to the address of the Commonblock. hlfir.declares are
not required for these, but we should be able to retrieve the
mlir Value corresponding to the Commonblock. This patch enables
this by special casing the Commonblocks like procedures.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
The atlernative implementations are :
-> Have separate API functions in the converter for binding and retrieving mlir Values for non-variable symbols.
-> Making the hlfir variable op interface aware of commonblocks (This did not make sense since commonblocks are not variables).