[llvm] [llvm][OpenMP][NFC] Cleanup AtomicInfo (PR #119199)

via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 9 03:14:58 PST 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 9eb4056144a9d2e940272ba9e9675acaa3fbb354 b8cf900ef7e69f2765eec933465299d857049b80 --extensions cpp,h -- llvm/include/llvm/Frontend/Atomic/Atomic.h llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h llvm/lib/Frontend/Atomic/Atomic.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h b/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
index b5a7b88e78..95a3270207 100644
--- a/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
+++ b/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
@@ -484,10 +484,9 @@ public:
     llvm::Value *AtomicVar;
 
   public:
-    AtomicInfo(IRBuilder<> *Builder, llvm::Type *Ty,
-                   uint64_t AtomicSizeInBits, uint64_t ValueSizeInBits,
-                   llvm::Align AtomicAlign, llvm::Align ValueAlign,
-                   bool UseLibcall, llvm::Value *AtomicVar)
+    AtomicInfo(IRBuilder<> *Builder, llvm::Type *Ty, uint64_t AtomicSizeInBits,
+               uint64_t ValueSizeInBits, llvm::Align AtomicAlign,
+               llvm::Align ValueAlign, bool UseLibcall, llvm::Value *AtomicVar)
         : llvm::AtomicInfo(Builder, Ty, AtomicSizeInBits, ValueSizeInBits,
                            AtomicAlign, ValueAlign, UseLibcall),
           AtomicVar(AtomicVar) {}

``````````

</details>


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


More information about the llvm-commits mailing list