This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][NFC] Refactor code for interop parts of 'init' and 'append_args' clauses
ClosedPublic

Authored by mikerice on Aug 18 2022, 1:16 PM.

Details

Summary

The 'init' clause allows an interop-modifier of prefer_type(list) and
and interop-types 'target' and 'targetsync'.

The 'append_args' clause uses an append-op that also includes
interop-types ('target' and 'targetsync') and will allow
a prefer_type list in the next OpenMP version.

This change adds a helper struct OMPInteropInfo and uses it in the parsing
of both the 'init' and 'append_args' clauses.

One OMPInteropInfo object represents the info in a single 'init' clause.

Since 'append_args' allows a variable number of interop items it will
require an array of OMPInteropInfo objects once that is supported.

Diff Detail

Event Timeline

mikerice created this revision.Aug 18 2022, 1:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2022, 1:16 PM
mikerice requested review of this revision.Aug 18 2022, 1:16 PM
This revision is now accepted and ready to land.Aug 18 2022, 1:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2022, 5:14 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript