[llvm] [opt][HIPSTDPAR] Handle `__hipstdpar_hidden_malloc` (PR #123150)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 15 18:18:55 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 8ac35bda18229e28e1638756a5187aa2608a4b50 b60773af8dbda229b1450726c67ade113de0ae05 --extensions cpp -- llvm/lib/Transforms/HipStdPar/HipStdPar.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/HipStdPar/HipStdPar.cpp b/llvm/lib/Transforms/HipStdPar/HipStdPar.cpp
index 691aaecc5e..11d9740b77 100644
--- a/llvm/lib/Transforms/HipStdPar/HipStdPar.cpp
+++ b/llvm/lib/Transforms/HipStdPar/HipStdPar.cpp
@@ -299,9 +299,8 @@ HipStdParAllocationInterpositionPass::run(Module &M, ModuleAnalysisManager&) {
}
if (auto F = M.getFunction("__hipstdpar_hidden_malloc")) {
- auto LibcMalloc =
- M.getOrInsertFunction("__libc_malloc", F->getFunctionType(),
- F->getAttributes());
+ auto LibcMalloc = M.getOrInsertFunction(
+ "__libc_malloc", F->getFunctionType(), F->getAttributes());
F->replaceAllUsesWith(LibcMalloc.getCallee());
eraseFromModule(*F);
``````````
</details>
https://github.com/llvm/llvm-project/pull/123150
More information about the llvm-commits
mailing list