[all-commits] [llvm/llvm-project] a42380: [OMPIRBuilder] Add ordered directive to OMPBuilder

PeixinQiao via All-commits all-commits at lists.llvm.org
Thu Sep 2 18:40:11 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a42380ce837994725dd9b22c35412e0f4bd52431
      https://github.com/llvm/llvm-project/commit/a42380ce837994725dd9b22c35412e0f4bd52431
  Author: PeixinQiao <qiaopeixin at huawei.com>
  Date:   2021-09-03 (Fri, 03 Sep 2021)

  Changed paths:
    M clang/lib/CodeGen/CGStmtOpenMP.cpp
    M clang/lib/CodeGen/CodeGenFunction.h
    M clang/lib/Sema/SemaOpenMP.cpp
    M clang/test/OpenMP/ordered_codegen.cpp
    M clang/test/OpenMP/ordered_doacross_codegen.c
    M clang/test/OpenMP/ordered_doacross_codegen.cpp
    M llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp

  Log Message:
  -----------
  [OMPIRBuilder] Add ordered directive to OMPBuilder

Add support for ordered directive in the OpenMPIRBuilder.

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 LE or GE in openmp region by replacing unary increment
operation of the expression of the variable "Expr A" minus the variable
"Expr B" (++(Expr A - 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" (Expr A - Expr B + "1").

Reviewed By: Meinersbur, kiranchandramohan

Differential Revision: https://reviews.llvm.org/D107430




More information about the All-commits mailing list