[PATCH] [OPENMP] Loop collapsing and initial codegen for 'omp simd' directive

Alexander Musman alexander.musman at gmail.com
Wed Sep 3 22:36:20 PDT 2014


Hi doug.gregor, rsmith, hfinkel, rjmccall, ABataev, fraggamuffin, ejstotzer, cbergstrom, kkwli0, schandra,

This patch implements collapsing of the loops (in particular, in presense of clause 'collapse'). It calculates number of iterations N and expressions nesessary to calculate the nested loops counters values based on new iteration variable (that goes from 0 to N-1) in Sema. It also adds Codegen for 'omp simd', which uses (and tests) this feature.

http://reviews.llvm.org/D5184

Files:
  include/clang/AST/Stmt.h
  include/clang/AST/StmtOpenMP.h
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/AST/Stmt.cpp
  lib/CodeGen/CGStmtOpenMP.cpp
  lib/CodeGen/CodeGenFunction.h
  lib/Sema/SemaOpenMP.cpp
  lib/Serialization/ASTReaderStmt.cpp
  lib/Serialization/ASTWriterStmt.cpp
  test/OpenMP/for_loop_messages.cpp
  test/OpenMP/parallel_for_loop_messages.cpp
  test/OpenMP/simd_codegen.cpp
  test/OpenMP/simd_loop_messages.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5184.13240.patch
Type: text/x-patch
Size: 87942 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140904/fd723c16/attachment.bin>


More information about the cfe-commits mailing list