[all-commits] [llvm/llvm-project] 1e92e2: [MLIR][OpenMP] Added MLIR translation support for ...

Akash Banerjee via All-commits all-commits at lists.llvm.org
Fri Aug 4 07:39:08 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1e92e25cb4a96d4997028632bb577c1698694891
      https://github.com/llvm/llvm-project/commit/1e92e25cb4a96d4997028632bb577c1698694891
  Author: Akash Banerjee <Akash.Banerjee at amd.com>
  Date:   2023-08-04 (Fri, 04 Aug 2023)

  Changed paths:
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    M mlir/test/Target/LLVMIR/omptarget-llvm.mlir

  Log Message:
  -----------
  [MLIR][OpenMP] Added MLIR translation support for use_device clauses

Added MLIR support for translating use_device_ptr and use_device_addr clauses for LLVMIR lowering.

  - use_device_ptr: The mapped variables marked with use_device_ptr are accessed through a copy of the base pointer mappers. The mapper is copied onto a new temporary pointer variable.
  - use_device_addr: The mapped variables marked with use_device_addr are accessed directly through the base pointer mappers.
  - If mapping information is not provided explicitly then default map_type of alloc/release is assumed and the map_size is set to 0.

Depends on D152554

Reviewed By: kiranchandramohan, raghavendhra

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




More information about the All-commits mailing list