[llvm] [SPIR-V] Fix early definition of SPIR-V types during call lowering (PR #115192)

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 6 10:53:54 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 38fffa630ee80163dc65e759392ad29798905679 e919ea18e9fb2081f758c88de6f24561db435440 --extensions cpp -- llvm/lib/Target/SPIRV/SPIRVCallLowering.cpp 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/SPIRVCallLowering.cpp b/llvm/lib/Target/SPIRV/SPIRVCallLowering.cpp
index 8d1b82465d..3c5397319a 100644
--- a/llvm/lib/Target/SPIRV/SPIRVCallLowering.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVCallLowering.cpp
@@ -555,7 +555,8 @@ bool SPIRVCallLowering::lowerCall(MachineIRBuilder &MIRBuilder,
           // @llvm.spv.assign.ptr.type.p...(...)'s info.
           if (Arg.OrigValue)
             if (Type *ElemTy = GR->findDeducedElementType(Arg.OrigValue))
-              ArgTy = TypedPointerType::get(ElemTy, PtrArgTy->getAddressSpace());
+              ArgTy =
+                  TypedPointerType::get(ElemTy, PtrArgTy->getAddressSpace());
         } else {
           ArgTy = Arg.Ty;
         }

``````````

</details>


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


More information about the llvm-commits mailing list