[all-commits] [llvm/llvm-project] 160ff8: [OpenMP][AMDGCN] Support OpenMP offloading for AMD...

Saiyedul Islam via All-commits all-commits at lists.llvm.org
Sun Aug 2 22:55:22 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 160ff83765ac284f3c7dd7b25d4ef105b9952ac0
      https://github.com/llvm/llvm-project/commit/160ff83765ac284f3c7dd7b25d4ef105b9952ac0
  Author: Saiyedul Islam <Saiyedul.Islam at amd.com>
  Date:   2020-08-03 (Mon, 03 Aug 2020)

  Changed paths:
    M clang/lib/CodeGen/CGExpr.cpp
    A clang/lib/CodeGen/CGOpenMPRuntimeAMDGCN.cpp
    A clang/lib/CodeGen/CGOpenMPRuntimeAMDGCN.h
    M clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
    M clang/lib/CodeGen/CGOpenMPRuntimeGPU.h
    M clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
    M clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.h
    M clang/lib/CodeGen/CMakeLists.txt
    M clang/lib/CodeGen/CodeGenModule.cpp
    A clang/test/OpenMP/amdgcn_target_codegen.cpp
    A clang/test/OpenMP/amdgcn_target_init_temp_alloca.cpp

  Log Message:
  -----------
  [OpenMP][AMDGCN] Support OpenMP offloading for AMDGCN architecture - Part 3

Provides AMDGCN and NVPTX specific specialization of getGPUWarpSize,
getGPUThreadID, and getGPUNumThreads methods. Adds tests for AMDGCN
codegen for these methods in generic and simd modes. Also changes the
precondition in InitTempAlloca to be slightly more permissive. Useful for
AMDGCN OpenMP codegen where allocas are created with a cast to an
address space.

Reviewed By: ABataev

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




More information about the All-commits mailing list