[all-commits] [llvm/llvm-project] ccc132: Introduce environment variables to deal with JIT IR

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Thu Jan 5 00:18:20 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ccc13241208f3b6975bbef384f0a01b1b6e83e8e
      https://github.com/llvm/llvm-project/commit/ccc13241208f3b6975bbef384f0a01b1b6e83e8e
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2023-01-05 (Thu, 05 Jan 2023)

  Changed paths:
    M openmp/docs/design/Runtimes.rst
    M openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp
    M openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp

  Log Message:
  -----------
  Introduce environment variables to deal with JIT IR

We can now dump the IR before and after JIT optimizations into the
files passed via `LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE` and
`LIBOMPTARGET_JIT_POST_OPT_IR_MODULE`, respectively.

Similarly, users can set `LIBOMPTARGET_JIT_REPLACEMENT_MODULE` to
replace the IR in the image with a custom IR module in a file.
All options take file paths, documentation was added.

Reviewed by: tianshilei1992

Differential revision: https://reviews.llvm.org/D140945




More information about the All-commits mailing list