[llvm] [SPIR-V] Do not rely on type metadata for ptr element type resolution (PR #82678)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 22 11:17:40 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 03203b79c6247465850ee6e9f3e2399afc35720b a4a0d28d4f42fc28bb591028a136efa44dc7af04 -- llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp llvm/lib/Target/SPIRV/SPIRVBuiltins.h llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp b/llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
index 714a626586..a434bd86dc 100644
--- a/llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
@@ -2181,7 +2181,7 @@ std::optional<bool> lowerBuiltin(const StringRef DemangledCall,
 }
 
 Type *parseBuiltinCallArgumentBaseType(const StringRef DemangledCall,
-                                   unsigned ArgIdx, LLVMContext &Ctx) {
+                                       unsigned ArgIdx, LLVMContext &Ctx) {
   SmallVector<StringRef, 10> BuiltinArgsTypeStrs;
   StringRef BuiltinArgs =
       DemangledCall.slice(DemangledCall.find('(') + 1, DemangledCall.find(')'));

``````````

</details>


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


More information about the llvm-commits mailing list