[Openmp-commits] [openmp] [openmp] Fixed Support for VA for record-replay. (PR #70396)

via Openmp-commits openmp-commits at lists.llvm.org
Fri Oct 27 11:52:33 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 138e6c1c86e8050781cb626598c380651d31206c 8e5022d96615e3b2697ce28a115809a7a220a93d -- openmp/libomptarget/include/Utilities.h openmp/libomptarget/include/omptarget.h openmp/libomptarget/include/rtl.h openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h openmp/libomptarget/plugins-nextgen/cuda/dynamic_cuda/cuda.cpp openmp/libomptarget/plugins-nextgen/cuda/dynamic_cuda/cuda.h openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp openmp/libomptarget/src/device.cpp openmp/libomptarget/src/interface.cpp openmp/libomptarget/src/omptarget.cpp openmp/libomptarget/src/private.h openmp/libomptarget/tools/kernelreplay/llvm-omp-kernel-replay.cpp
``````````

</details>

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

``````````diff
diff --git a/openmp/libomptarget/tools/kernelreplay/llvm-omp-kernel-replay.cpp b/openmp/libomptarget/tools/kernelreplay/llvm-omp-kernel-replay.cpp
index 8cec4fe8106c..6631398a6647 100644
--- a/openmp/libomptarget/tools/kernelreplay/llvm-omp-kernel-replay.cpp
+++ b/openmp/libomptarget/tools/kernelreplay/llvm-omp-kernel-replay.cpp
@@ -85,7 +85,8 @@ int main(int argc, char **argv) {
   auto *TgtArgOffsetsArray =
       JsonKernelInfo->getAsObject()->getArray("ArgOffsets");
   for (auto It : *TgtArgOffsetsArray)
-    TgtArgOffsets.push_back(reinterpret_cast<ptrdiff_t>(It.getAsInteger().value()));
+    TgtArgOffsets.push_back(
+        reinterpret_cast<ptrdiff_t>(It.getAsInteger().value()));
 
   void *BAllocStart = reinterpret_cast<void *>(
       JsonKernelInfo->getAsObject()->getInteger("BumpAllocVAStart").value());

``````````

</details>


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


More information about the Openmp-commits mailing list