This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Initial parsing and semantic analysis support for 'strict' modifier with 'grainsize' clause of 'taskloop' construct
ClosedPublic

Authored by mdfazlay on Nov 17 2022, 8:07 AM.

Details

Summary

This patch gives basic parsing and semantic analysis support for 'strict' modifier with 'grainsize' clause of 'taskloop' construct introduced in OpenMP 5.1 ( section 2.12.2)

Diff Detail

Event Timeline

mdfazlay created this revision.Nov 17 2022, 8:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 17 2022, 8:07 AM
mdfazlay requested review of this revision.Nov 17 2022, 8:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 17 2022, 8:07 AM
mdfazlay edited the summary of this revision. (Show Details)Nov 17 2022, 8:11 AM
  1. Add full diff context
  2. Add unsuccessful tests for the modifier (parsing and sema)
clang/lib/Parse/ParseOpenMP.cpp
3811

Use actual type instead of auto here

clang/lib/Sema/SemaOpenMP.cpp
16812

Add a message here

mdfazlay updated this revision to Diff 476191.EditedNov 17 2022, 11:26 AM
mdfazlay marked 2 inline comments as done.
  1. Add full diff context
  2. Add unsuccessful tests for the modifier (parsing and sema)
  1. Done
  2. I am not quite sure about it. We have two new tests for ast and message. We did test the unsuccessful tests in the message test. Can you please elaborate on this one?

Looks like you dud not add corresponding definitions to llvm/Frontend

mdfazlay updated this revision to Diff 476197.EditedNov 17 2022, 11:40 AM

Added static_cast<OpenMPGrainsizeClauseModifier> before getOpenMPSimpleClauseType(..) in ParseOpenMP.cpp

Looks like you dud not add corresponding definitions to llvm/Frontend

Do you mean in llvm/include/llvm/Frontend/OpenMP/OMP.td file?

Looks like you dud not add corresponding definitions to llvm/Frontend

Do you mean in llvm/include/llvm/Frontend/OpenMP/OMP.td file?

Yes

mdfazlay updated this revision to Diff 476259.Nov 17 2022, 3:51 PM

Added corresponding definitions in llvm/include/llvm/Frontend/OpenMP/OMP.td file.

Herald added a project: Restricted Project. · View Herald TranscriptNov 17 2022, 3:51 PM
This revision is now accepted and ready to land.Nov 17 2022, 4:09 PM