This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][NFCI] Use the libFrontend DefaultKind in Clang
ClosedPublic

Authored by atmnpatel on Feb 12 2020, 3:38 PM.

Details

Summary

This swaps out the OpenMPDefaultClauseKind enum with a
llvm::omp::DefaultKind enum which is stored in OMPConstants.h.

This should not change any functionality.

Diff Detail

Event Timeline

atmnpatel created this revision.Feb 12 2020, 3:38 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 12 2020, 3:38 PM

One question (below) otherwise this looks good.

llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
360

Why 2, 3, 4? Do we really need to specify the value here? If not, remove the Value part everywhere, or replace it with unsigned(Enum), and we should be fine.

Removes specified values in favor of defaults in the DefaultKind enum.

atmnpatel marked an inline comment as done.Feb 12 2020, 10:10 PM
This revision is now accepted and ready to land.Feb 12 2020, 10:49 PM

I am unable to commit this myself, can someone commit for me?

I am unable to commit this myself, can someone commit for me?

I'll do that later. Ping me if I forget please.

This revision was automatically updated to reflect the committed changes.