[clang] [llvm] [Offload][NFC] Remove `omp_` prefix from offloading entries (PR #88071)

via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 8 17:17:05 PDT 2024


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 1950ebd17bbf1f2ad2a3799cd5966412ccfee9c4 651ebdc8b9875bc336aed345d61df8a9395fd6d7 -- clang/test/OpenMP/declare_target_link_codegen.cpp clang/test/OpenMP/declare_target_visibility_codegen.cpp clang/test/OpenMP/target_codegen_registration.cpp clang/test/OpenMP/target_indirect_codegen.cpp llvm/lib/Frontend/Offloading/Utility.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Frontend/Offloading/Utility.cpp b/llvm/lib/Frontend/Offloading/Utility.cpp
index ea7bfa88e0..919b9462e3 100644
--- a/llvm/lib/Frontend/Offloading/Utility.cpp
+++ b/llvm/lib/Frontend/Offloading/Utility.cpp
@@ -40,8 +40,8 @@ offloading::getOffloadingEntryInitializer(Module &M, Constant *Addr,
 
   Constant *AddrName = ConstantDataArray::getString(M.getContext(), Name);
 
-  StringRef Prefix = Triple.isNVPTX() ? "$offloading$entry_name"
-                                      : ".offloading.entry_name";
+  StringRef Prefix =
+      Triple.isNVPTX() ? "$offloading$entry_name" : ".offloading.entry_name";
 
   // Create the constant string used to look up the symbol in the device.
   auto *Str =

``````````

</details>


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


More information about the cfe-commits mailing list