[clang] [llvm] [AMDGPU] Add a type for the named barrier (PR #113614)

via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 24 12:55:14 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 af872d5473e7e1132e0ec8e146d28af239196c53 166a4aec8a8ee813be0ee3045563cd45efd944c0 --extensions cpp,h,c -- clang/test/CodeGen/amdgpu-barrier-type-debug-info.c clang/test/CodeGenCXX/amdgpu-barrier-typeinfo.cpp clang/test/SemaCXX/amdgpu-barrier.cpp clang/test/SemaOpenMP/amdgpu-barrier.cpp clang/include/clang/Serialization/ASTBitCodes.h clang/lib/CodeGen/CGDebugInfo.cpp clang/lib/CodeGen/CodeGenTypes.cpp clang/test/AST/ast-dump-amdgpu-types.c llvm/lib/IR/Type.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 3f9e14a52f..91849aeb24 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -910,7 +910,7 @@ llvm::DIType *CGDebugInfo::CreateType(const BuiltinType *BT) {
     return SingletonId;                                                        \
   }
 #define AMDGPU_NAMED_BARRIER_TYPE(Name, Id, SingletonId, Width, Align, Scope)  \
-  case BuiltinType::Id: {                                                       \
+  case BuiltinType::Id: {                                                      \
     if (!SingletonId)                                                          \
       SingletonId =                                                            \
           DBuilder.createBasicType(Name, Width, llvm::dwarf::DW_ATE_unsigned); \

``````````

</details>


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


More information about the cfe-commits mailing list