[llvm] [SPIRV] Fix SPV_KHR_expect_assume support (PR #67793)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 2 23:02:45 PDT 2023
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 6dd96d6e80e9b3679a6161c590c60e0e99549b89 6f707ad81d71a999743427bc9189d46b3ddf40b4 -- llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp llvm/lib/Target/SPIRV/SPIRVPrepareFunctions.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/SPIRVPrepareFunctions.cpp b/llvm/lib/Target/SPIRV/SPIRVPrepareFunctions.cpp
index 97468eedd88e..906d49153623 100644
--- a/llvm/lib/Target/SPIRV/SPIRVPrepareFunctions.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVPrepareFunctions.cpp
@@ -303,7 +303,7 @@ bool SPIRVPrepareFunctions::substituteIntrinsicCalls(Function *F) {
TargetMachine &TM = M.getTargetMachine();
const TargetSubtargetInfo &STI = TM.getSubtarget<TargetSubtargetInfo>();
- if(STI.canUse(SPIRV::Extension::SPV_KHR_expect_assume))
+ if (STI.canUse(SPIRV::Extension::SPV_KHR_expect_assume))
lowerExpectAssume(II);
Changed = true;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/67793
More information about the llvm-commits
mailing list