[llvm] Add support for the SPIR-V extension SPV_KHR_uniform_group_instructions (PR #82064)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 16 15:08:51 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 2ed2a3ad90934efac12cbeb01cf73afebc01d963 d59cc1a9aab10141a4d3bc901d8f5011708fefaf -- llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp llvm/lib/Target/SPIRV/SPIRVSubtarget.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp b/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
index baca07fbbe..4617dc783a 100644
--- a/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
@@ -1016,7 +1016,8 @@ void addInstrRequirements(const MachineInstr &MI,
case SPIRV::OpGroupLogicalAndKHR:
case SPIRV::OpGroupLogicalOrKHR:
case SPIRV::OpGroupLogicalXorKHR:
- if (ST.canUseExtension(SPIRV::Extension::SPV_KHR_uniform_group_instructions)) {
+ if (ST.canUseExtension(
+ SPIRV::Extension::SPV_KHR_uniform_group_instructions)) {
Reqs.addExtension(SPIRV::Extension::SPV_KHR_uniform_group_instructions);
Reqs.addCapability(SPIRV::Capability::GroupUniformArithmeticKHR);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/82064
More information about the llvm-commits
mailing list