[all-commits] [llvm/llvm-project] f90056: [OpenMP][AMDGPU] Refactor setting uniform work gro...

Dominik Adamski via All-commits all-commits at lists.llvm.org
Thu Apr 20 23:38:12 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f90056767828e499f4cdf568968e19cf8b6ab81b
      https://github.com/llvm/llvm-project/commit/f90056767828e499f4cdf568968e19cf8b6ab81b
  Author: Dominik Adamski <dominik.adamski at amd.com>
  Date:   2023-04-21 (Fri, 21 Apr 2023)

  Changed paths:
    M clang/lib/CodeGen/TargetInfo.cpp
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

  Log Message:
  -----------
  [OpenMP][AMDGPU] Refactor setting uniform work group size attribute

Work group size attribute was set in Clang specific class. That's why
we cannot reuse this code in Flang.

If we move setting of this attribute to OpenMPIRBuilder, then we can reuse this
code in Flang and Clang. Function createOffloadEntry from OpenMPIRBuilder is
already used by Clang (via OpenMPIRBuilder::createOffloadEntriesAndInfoMetadata
function).

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

Reviewed By: jdoerfert




More information about the All-commits mailing list