[PATCH] D95496: [clang][OpenMP] Augment ForStmt/CXXForRangeStmt for OpenMP canonicial loop.

Michael Kruse via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 26 19:26:35 PST 2021


Meinersbur created this revision.
Meinersbur added reviewers: jdoerfert, AMDChirag, anchu-rajendran, kiranchandramohan, SouraVX, ftynse, kiranktp, fghanim, ABataev, craig.topper, dblaikie, rsmith, aaron.ballman.
Herald added subscribers: dexonsmith, martong, guansong, hiraditya, yaxunl.
Herald added a reviewer: shafik.
Meinersbur requested review of this revision.
Herald added subscribers: llvm-commits, sstefan1.
Herald added projects: clang, LLVM.

Alternative version of D94973 <https://reviews.llvm.org/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 <https://reviews.llvm.org/D83261> for directives. In this patch, the equivalent of OMPChildren is LoopChildren and the class corresponding to OMPExecutableDirective is MaybeCanonicalLoopStmt.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D95496

Files:
  clang/include/clang/AST/Stmt.h
  clang/include/clang/AST/StmtCXX.h
  clang/include/clang/Basic/StmtNodes.td
  clang/include/clang/Sema/Sema.h
  clang/lib/AST/ASTImporter.cpp
  clang/lib/AST/Stmt.cpp
  clang/lib/AST/StmtCXX.cpp
  clang/lib/CodeGen/CGStmt.cpp
  clang/lib/CodeGen/CGStmtOpenMP.cpp
  clang/lib/CodeGen/CodeGenFunction.h
  clang/lib/Parse/ParseOpenMP.cpp
  clang/lib/Sema/SemaExpr.cpp
  clang/lib/Sema/SemaOpenMP.cpp
  clang/lib/Sema/SemaStmt.cpp
  clang/lib/Sema/TreeTransform.h
  clang/lib/Serialization/ASTReaderStmt.cpp
  clang/lib/Serialization/ASTWriterStmt.cpp
  clang/test/OpenMP/irbuilder_for_iterator.cpp
  clang/test/OpenMP/irbuilder_for_rangefor.cpp
  clang/test/OpenMP/irbuilder_for_unsigned.c
  llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
  llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95496.319450.patch
Type: text/x-patch
Size: 95456 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210127/413025f2/attachment-0001.bin>


More information about the cfe-commits mailing list