[llvm] Improve how lowering of formal arguments in SPIR-V Backend interprets a value of 'kernel_arg_type' (PR #78730)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 19 08:35:37 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 3d4128f7ff1cd44b95e5057295704f86c0f0b162 ae1389ef50c8925996610eacd182d116070bcf9a -- llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp llvm/lib/Target/SPIRV/SPIRVCallLowering.cpp llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.h
``````````
</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 fd82212ae1..e4593e7db9 100644
--- a/llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
@@ -1387,7 +1387,8 @@ static bool generateSampleImageInst(const StringRef DemangledCall,
}
SPIRVType *Type = GR->getOrCreateSPIRVTypeByName(ReturnType, MIRBuilder);
if (!Type) {
- std::string DiagMsg = "Unable to recognize SPIRV type name: " + ReturnType;
+ std::string DiagMsg =
+ "Unable to recognize SPIRV type name: " + ReturnType;
report_fatal_error(DiagMsg.c_str());
}
MRI->setRegClass(Call->Arguments[0], &SPIRV::IDRegClass);
``````````
</details>
https://github.com/llvm/llvm-project/pull/78730
More information about the llvm-commits
mailing list