[all-commits] [llvm/llvm-project] c384e7: [OpenMP][IR] Set correct alignment for internal va...

Hao Jin via All-commits all-commits at lists.llvm.org
Fri Aug 11 12:21:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c384e79675fe44cd2651dbd9d506d0a421c37533
      https://github.com/llvm/llvm-project/commit/c384e79675fe44cd2651dbd9d506d0a421c37533
  Author: Hao Jin <hao.jin at huawei.com>
  Date:   2023-08-11 (Fri, 11 Aug 2023)

  Changed paths:
    M clang/lib/CodeGen/CGOpenMPRuntime.cpp
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp

  Log Message:
  -----------
  [OpenMP][IR] Set correct alignment for internal variables

OpenMP runtime functions assume the pointers are aligned to sizeof(pointer),
but it is being aligned incorrectly. Fix with the proper alignment in the IR builder.

Reviewed By: tianshilei1992

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




More information about the All-commits mailing list