[PATCH] D107430: [OMPIRBuilder] Add ordered without depend and simd clause to OMPBuilder

Peixin Qiao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 4 00:54:23 PDT 2021


peixin created this revision.
peixin added reviewers: sscalpone, jdoerfert, kiranchandramohan, clementval, richard.barton.arm, sameeranjoshi, praveen, SouraVX, arnamoy10, bryanpkc, Chuanfeng, Leporacanthicus, fghanim.
peixin added a project: LLVM.
Herald added a subscriber: hiraditya.
peixin requested review of this revision.
Herald added subscribers: llvm-commits, cfe-commits, sstefan1.
Herald added a project: clang.

Add support for ordered directive without depend and simd clause in the
OpenMPIRBuilder for OpenMP 1.0 target.

This patch also modidies clang to use the ordered directive when the
option -fopenmp-enable-irbuilder is enabled.

Also fix one ICE when parsing one canonical for loop with the relational
operator LR or GE in openmp region by replacing unary increment
operation of the expression of the variable "Expr A" minus the variable
"Expr B" with binary addition operation of the experssion of the variable
"Expr A" minus the variable "Expr B" and the expression with constant
value "1".


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D107430

Files:
  clang/lib/CodeGen/CGStmtOpenMP.cpp
  clang/lib/Sema/SemaOpenMP.cpp
  clang/test/OpenMP/ordered_codegen.cpp
  llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
  llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
  llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107430.363988.patch
Type: text/x-patch
Size: 108576 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210804/a40aedb4/attachment-0001.bin>


More information about the llvm-commits mailing list