[all-commits] [llvm/llvm-project] 24a36c: [OpenMP][Offloading] Replace all calls to `isSPMDM...
Shilei Tian via All-commits
all-commits at lists.llvm.org
Wed Jun 30 12:40:11 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 24a36ce58b773332dbb28df87270251686c9430d
https://github.com/llvm/llvm-project/commit/24a36ce58b773332dbb28df87270251686c9430d
Author: Shilei Tian <tianshilei1992 at gmail.com>
Date: 2021-06-30 (Wed, 30 Jun 2021)
Changed paths:
M openmp/libomptarget/deviceRTLs/common/src/data_sharing.cu
M openmp/libomptarget/deviceRTLs/common/src/libcall.cu
M openmp/libomptarget/deviceRTLs/common/src/loop.cu
M openmp/libomptarget/deviceRTLs/common/src/omptarget.cu
M openmp/libomptarget/deviceRTLs/common/src/support.cu
M openmp/libomptarget/deviceRTLs/common/support.h
Log Message:
-----------
[OpenMP][Offloading] Replace all calls to `isSPMDMode` with `__kmpc_is_spmd_exec_mode`
In our ongoing work, we are using `AbstractAttributor` to deduct execution model
of device functions, and potententially remove unnecessary function calls to
`__kmpc_is_spmd_exec_mode`. In current device runtime, we have mixed use of
`isSPMDMode` and `__kmpc_is_spmd_exec_mode`, but in fact in `__kmpc_is_spmd_exec_mode`
it simply calls `isSPMDMode`. Since all functions starting with `__kmpc` is C
function, which doesn't have things like name mangling. It is more optimization
friendly. In this patch, we simply replaced all calls to `isSPMDMode` with
`__kmpc_is_spmd_exec_mode` to pave the way for the optimization.
Reviewed By: JonChesterfield
Differential Revision: https://reviews.llvm.org/D105211
More information about the All-commits
mailing list