[PATCH] [OPENMP] Loop canonical form analysis (Sema)

Alexander Musman alexander.musman at gmail.com
Wed May 28 06:09:38 PDT 2014


Richard,

Yes, I think that assuming that the variable is random access iterator would work. It will still need to generate std::difference on them, but we can check that later, during building expressions for iteration space (that will be used for CodeGen). This also has an advantage that user may use his iterators without deriving from std classes.
I've removed corresponding checks and fixed processing `break` statements.

Thanks,
Alexander

http://reviews.llvm.org/D3778

Files:
  include/clang/Basic/DiagnosticSemaKinds.td
  include/clang/Sema/Scope.h
  include/clang/Sema/Sema.h
  lib/Parse/ParseOpenMP.cpp
  lib/Sema/Scope.cpp
  lib/Sema/SemaOpenMP.cpp
  lib/Sema/SemaStmt.cpp
  test/OpenMP/simd_loop_messages.cpp
  test/OpenMP/simd_misc_messages.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3778.9875.patch
Type: text/x-patch
Size: 50575 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140528/e8b6b720/attachment.bin>


More information about the cfe-commits mailing list