[llvm] [offload] Fix typos discovered by codespell (PR #125119)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 30 13:29:05 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 fdfd97959e91af46fc8b35cb07208db26ccf75e7 6144d2b0d7cbdaef1d153b670b5f8691d7d37624 --extensions c,h,cpp -- offload/DeviceRTL/include/Configuration.h offload/DeviceRTL/include/Mapping.h offload/DeviceRTL/include/State.h offload/DeviceRTL/include/Synchronization.h offload/DeviceRTL/src/Configuration.cpp offload/DeviceRTL/src/Misc.cpp offload/DeviceRTL/src/Reduction.cpp offload/DeviceRTL/src/Synchronization.cpp offload/DeviceRTL/src/Workshare.cpp offload/include/OpenMP/OMPT/Callback.h offload/include/PluginManager.h offload/include/device.h offload/include/omptarget.h offload/liboffload/src/OffloadLib.cpp offload/plugins-nextgen/amdgpu/src/rtl.cpp offload/plugins-nextgen/common/include/GlobalHandler.h offload/plugins-nextgen/common/include/JIT.h offload/plugins-nextgen/common/include/PluginInterface.h offload/plugins-nextgen/common/include/RPC.h offload/plugins-nextgen/common/src/GlobalHandler.cpp offload/plugins-nextgen/common/src/PluginInterface.cpp offload/plugins-nextgen/cuda/src/rtl.cpp offload/plugins-nextgen/host/dynamic_ffi/ffi.h offload/src/OpenMP/API.cpp offload/src/OpenMP/Mapping.cpp offload/src/PluginManager.cpp offload/src/device.cpp offload/src/interface.cpp offload/src/omptarget.cpp offload/test/api/omp_target_memcpy_async1.c offload/test/mapping/target_uses_allocator.c offload/test/offloading/parallel_target_teams_reduction_max.cpp offload/test/offloading/parallel_target_teams_reduction_min.cpp offload/test/offloading/struct_mapping_with_pointers.cpp offload/test/unified_shared_memory/associate_ptr.c offload/test/unified_shared_memory/close_member.c offload/tools/kernelreplay/llvm-omp-kernel-replay.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/offload/plugins-nextgen/common/include/GlobalHandler.h b/offload/plugins-nextgen/common/include/GlobalHandler.h
index bb0e907ecc..823e51133c 100644
--- a/offload/plugins-nextgen/common/include/GlobalHandler.h
+++ b/offload/plugins-nextgen/common/include/GlobalHandler.h
@@ -1,4 +1,5 @@
-//===- GlobalHandler.h - Target independent global & environment handling --===//
+//===- GlobalHandler.h - Target independent global & environment handling
+//--===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
diff --git a/offload/plugins-nextgen/host/dynamic_ffi/ffi.h b/offload/plugins-nextgen/host/dynamic_ffi/ffi.h
index 9fd3c43b75..80aa512236 100644
--- a/offload/plugins-nextgen/host/dynamic_ffi/ffi.h
+++ b/offload/plugins-nextgen/host/dynamic_ffi/ffi.h
@@ -38,8 +38,8 @@ typedef enum {
   FFI_BAD_ARGTYPE
 } ffi_status;
 
-// These are target dependent so we set them manually for each ABI by referencing
-// the FFI source.
+// These are target dependent so we set them manually for each ABI by
+// referencing the FFI source.
 typedef enum ffi_abi {
 #if (defined(_M_X64) || defined(__x86_64__))
   FFI_DEFAULT_ABI = 2, // FFI_UNIX64.

``````````

</details>


https://github.com/llvm/llvm-project/pull/125119


More information about the llvm-commits mailing list