[llvm] [OpenMP][OMPIRBuilder] Add support to omp target parallel (PR #67000)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 20 05:02:23 PDT 2023
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 49af6502c6dcb4a7f7520178bd14df396f78240c 3ab0ad4f83963131b551efb9dfbd580f891c07b6 -- llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp llvm/lib/Transforms/IPO/OpenMPOpt.cpp llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
index 1f7907576f62..5a305931bf23 100644
--- a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+++ b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
@@ -1372,9 +1372,8 @@ IRBuilder<>::InsertPoint OpenMPIRBuilder::createParallel(
Instruction *ZeroAddr = ZeroAddrAlloca;
if (ArgsInZeroAddressSpace && M.getDataLayout().getAllocaAddrSpace() != 0) {
// Add additional casts to enforce pointers in zero address space
- TIDAddr = new AddrSpaceCastInst(TIDAddrAlloca,
- PointerType ::get(M.getContext(), 0),
- "tid.addr.ascast");
+ TIDAddr = new AddrSpaceCastInst(
+ TIDAddrAlloca, PointerType ::get(M.getContext(), 0), "tid.addr.ascast");
TIDAddr->insertAfter(TIDAddrAlloca);
ToBeDeleted.push_back(TIDAddr);
ZeroAddr = new AddrSpaceCastInst(ZeroAddrAlloca,
``````````
</details>
https://github.com/llvm/llvm-project/pull/67000
More information about the llvm-commits
mailing list