[all-commits] [llvm/llvm-project] 75019f: [OpenMP][JIT] Fixed a couple of issues in the init...

Shilei Tian via All-commits all-commits at lists.llvm.org
Wed Dec 28 11:41:12 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 75019f18bd4f563a9335581bbc34e81876d80bf0
      https://github.com/llvm/llvm-project/commit/75019f18bd4f563a9335581bbc34e81876d80bf0
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2022-12-28 (Wed, 28 Dec 2022)

  Changed paths:
    M openmp/libomptarget/plugins-nextgen/common/PluginInterface/CMakeLists.txt
    M openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp
    M openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h

  Log Message:
  -----------
  [OpenMP][JIT] Fixed a couple of issues in the initial implementation of JIT

This patch fixes a couple of issues:
1. Instead of using `llvm_unreachable` for those base virtual functions, unknown
   value will be returned. The previous method could cause runtime error for those
   targets where the image is not compatible but JIT is not implemented.
2. Fixed the type in CMake that causes the `Target` CMake variable is undefined.

Reviewed By: ye-luo

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




More information about the All-commits mailing list