This is an archive of the discontinued LLVM Phabricator instance.

[flang][openacc] Add OpenACC pointer interface to FIR pointer types
ClosedPublic

Authored by razvanlupusoru on Apr 17 2023, 12:29 PM.

Details

Summary

The OpenACC dialect data clauses require for variables appearing in data
operations to implement the PointerLikeType interface (similarly to
OpenMP dialect). Thus, this interface needs attached to FIR types.

Two of the FIR types, HeapType and LLVMPointerType, did not provide
getElementType - now they do by calling getEleTy. This cleans up the
interface attachment for both OpenACC and OpenMP dialects.

Diff Detail

Event Timeline

Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 17 2023, 12:29 PM
razvanlupusoru requested review of this revision.Apr 17 2023, 12:29 PM
This revision is now accepted and ready to land.Apr 17 2023, 12:50 PM
jeanPerier accepted this revision.Apr 18 2023, 5:11 AM

Rebased again now that its parent has landed:
https://reviews.llvm.org/D148389
Will wait for build status to be green before landing this one.