This is an archive of the discontinued LLVM Phabricator instance.

[mlir][openacc] Use TableGen information for default enum
ClosedPublic

Authored by clementval on Dec 22 2020, 7:55 AM.

Details

Summary

Use TableGen and information in ACC.td for the Default enum in the OpenACC dialect.
This patch generalize what was done for OpenMP for directives.

Follow up patch after D93576

Diff Detail

Event Timeline

clementval created this revision.Dec 22 2020, 7:55 AM
clementval requested review of this revision.Dec 22 2020, 7:55 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
clementval edited the summary of this revision. (Show Details)Dec 22 2020, 8:41 AM

Thanks for the patience.

LGTM. One comment regarding doc generation before I approve.

Mehdi added a patch to OpenMP dialectCMake for building the Doc generation for the OpenMP dialect otherwise a bot will fail. I guess it is needed in the OpenACC CMake as well.
https://reviews.llvm.org/rG7b18716361a533023d7f5366add759038c8a7825

Thanks for the patience.

LGTM. One comment regarding doc generation before I approve.

Mehdi added a patch to OpenMP dialectCMake for building the Doc generation for the OpenMP dialect otherwise a bot will fail. I guess it is needed in the OpenACC CMake as well.
https://reviews.llvm.org/rG7b18716361a533023d7f5366add759038c8a7825

Thanks for the review. I saw it in the OpenMP CMakeLists.txt and I thought it was a bit weird to add dependency to the doc but make sense with the linked patch. Thanks!

Address review comment

This revision is now accepted and ready to land.Jan 12 2021, 12:26 AM