[all-commits] [llvm/llvm-project] 186a4b: [LLVM][OpenMP] Allow OpenMPOpt to handle non-OpenM...
Shilei Tian via All-commits
all-commits at lists.llvm.org
Sat Sep 23 19:34:21 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 186a4b3b657878ae2aea23caf684b6e103901162
https://github.com/llvm/llvm-project/commit/186a4b3b657878ae2aea23caf684b6e103901162
Author: Shilei Tian <i at tianshilei.me>
Date: 2023-09-23 (Sat, 23 Sep 2023)
Changed paths:
M llvm/include/llvm/Transforms/IPO/OpenMPOpt.h
M llvm/lib/Transforms/IPO/OpenMPOpt.cpp
A llvm/test/Transforms/OpenMP/bug66687.ll
Log Message:
-----------
[LLVM][OpenMP] Allow OpenMPOpt to handle non-OpenMP target regions (#67075)
Current OpenMPOpt assumes all kernels are OpenMP kernels (aka. with
"kernel"
attribute). This doesn't hold if we mix OpenMP code and CUDA code by
lingking
them together because CUDA kernels are not annotated with the attribute.
This
patch removes the assumption and added a new counter for those
non-OpenMP
kernels.
Fix #66687.
More information about the All-commits
mailing list