This is an archive of the discontinued LLVM Phabricator instance.

[clang][OpenMP] Augment ForStmt/CXXForRangeStmt for OpenMP canonical loops.
AbandonedPublic

Authored by Meinersbur on Jan 26 2021, 7:26 PM.

Details

Summary

Alternative version of D94973. Instead of a new AST node of kind OMPCanonicalLoop that acts as parent of a ForStmt or CXXForRangeStmt, introduce a new superclass for both classes for storying the properties for an OpenMP canonical loop.

This was suggested by @ABataev following the same approach taken in D83261 for directives. In this patch, the equivalent of OMPChildren is LoopChildren and the class corresponding to OMPExecutableDirective is MaybeCanonicalLoopStmt.

Diff Detail

Event Timeline

Meinersbur created this revision.Jan 26 2021, 7:26 PM
Meinersbur requested review of this revision.Jan 26 2021, 7:26 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 26 2021, 7:26 PM
martong removed a subscriber: martong.Jan 27 2021, 12:58 AM
Meinersbur retitled this revision from [clang][OpenMP] Augment ForStmt/CXXForRangeStmt for OpenMP canonicial loop. to [clang][OpenMP] Augment ForStmt/CXXForRangeStmt for OpenMP canonical loops..Feb 1 2021, 6:35 PM
craig.topper resigned from this revision.Feb 26 2021, 1:30 PM
Meinersbur abandoned this revision.Jun 10 2021, 11:46 AM

Obsolete since D94973 was committed.