[all-commits] [llvm/llvm-project] 8d1787: [OMPIRBuilder] Added `createTeams` (#66807)

Shraiysh via All-commits all-commits at lists.llvm.org
Sun Sep 24 14:23:57 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d17875acba650ef7b3fa516fd09633a50dd0427
      https://github.com/llvm/llvm-project/commit/8d17875acba650ef7b3fa516fd09633a50dd0427
  Author: Shraiysh <Shraiysh.Vaishay at amd.com>
  Date:   2023-09-24 (Sun, 24 Sep 2023)

  Changed paths:
    M llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp

  Log Message:
  -----------
  [OMPIRBuilder] Added `createTeams` (#66807)

This patch adds basic support for `omp teams` to the OpenMPIRBuilder.

The outlined function after code extraction is called from a wrapper
function with appropriate arguments. This wrapper function is passed to
the runtime calls.

This approach is different from the Clang approach - clang directly
emits the runtime call to the outlined function. The outlining utility
(OutlineInfo) simply outlines the code and generates a function call to
the outlined function. After the function has been generated by the
outlining utility, there is no easy way to alter the function arguments
without meddling with the outlining itself. Hence the wrapper function
approach is taken.




More information about the All-commits mailing list