[llvm] [OpenMP] Replace use of target address space with <gpuintrin.h> local (PR #126119)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 7 07:50:31 PST 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff d9500f5032312776c69e4bf41722d62ef9c76e49 d83539bc81ac608f85d34961426e9bd5f8a4fded --extensions h,cpp -- offload/DeviceRTL/include/DeviceTypes.h offload/DeviceRTL/include/State.h offload/DeviceRTL/src/Configuration.cpp offload/DeviceRTL/src/Mapping.cpp offload/DeviceRTL/src/Reduction.cpp offload/DeviceRTL/src/State.cpp offload/DeviceRTL/src/Synchronization.cpp offload/DeviceRTL/src/Workshare.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/offload/DeviceRTL/include/DeviceTypes.h b/offload/DeviceRTL/include/DeviceTypes.h
index a44dcd12c4..2e5d92380f 100644
--- a/offload/DeviceRTL/include/DeviceTypes.h
+++ b/offload/DeviceRTL/include/DeviceTypes.h
@@ -12,9 +12,9 @@
#ifndef OMPTARGET_TYPES_H
#define OMPTARGET_TYPES_H
+#include <gpuintrin.h>
#include <stddef.h>
#include <stdint.h>
-#include <gpuintrin.h>
template <typename T> using Private = __gpu_private T;
template <typename T> using Constant = __gpu_constant T;
``````````
</details>
https://github.com/llvm/llvm-project/pull/126119
More information about the llvm-commits
mailing list