This is an archive of the discontinued LLVM Phabricator instance.

[flang][openacc] Fix device_num and device_type clauses for init directive
ClosedPublic

Authored by clementval on Sep 30 2020, 7:30 AM.

Details

Summary

This patch fix the device_num and device_type clauses used in the init clause. device_num was not
spelled correctly in the parser and was to restrictive with scalarIntConstantExpr instead of scalarIntExpr.
device_type is now taking a list of ScalarIntExpr.

Diff Detail

Event Timeline

clementval created this revision.Sep 30 2020, 7:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 30 2020, 7:30 AM
clementval requested review of this revision.Sep 30 2020, 7:30 AM
clementval added a project: Restricted Project.Sep 30 2020, 7:30 AM
This revision is now accepted and ready to land.Oct 6 2020, 2:16 PM
This revision was landed with ongoing or failed builds.Oct 6 2020, 6:27 PM
This revision was automatically updated to reflect the committed changes.