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 origin/main HEAD --extensions h,cpp --
llvm/include/llvm/IR/FPEnv.h llvm/include/llvm/IR/IRBuilder.h
llvm/include/llvm/IR/InstrTypes.h llvm/include/llvm/IR/IntrinsicInst.h
llvm/include/llvm/IR/LLVMContext.h llvm/include/llvm/Support/ModRef.h
llvm/lib/CodeGen/AtomicExpandPass.cpp llvm/lib/CodeGen/HardwareLoops.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h llvm/lib/IR/AsmWriter.cpp
llvm/lib/IR/FPEnv.cpp llvm/lib/IR/IRBuilder.cpp llvm/lib/IR/Instructions.cpp
llvm/lib/IR/IntrinsicInst.cpp llvm/lib/IR/LLVMContext.cpp
llvm/lib/IR/Verifier.cpp llvm/lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp
llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp
llvm/lib/Transforms/Utils/LibCallsShrinkWrap.cpp
llvm/lib/Transforms/Utils/LowerAtomic.cpp llvm/unittests/IR/IRBuilderTest.cpp
--diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/IR/Instructions.cpp b/llvm/lib/IR/Instructions.cpp
index 84be64ab2..cf6b6d9f4 100644
--- a/llvm/lib/IR/Instructions.cpp
+++ b/llvm/lib/IR/Instructions.cpp
@@ -618,12 +618,11 @@ bool CallBase::hasReadingOperandBundles() const {
// Implementation note: this is a conservative implementation of operand
// bundle semantics, where *any* non-assume operand bundle (other than
// ptrauth) forces a callsite to be at least readonly.
- return hasOperandBundlesOtherThan({LLVMContext::OB_ptrauth,
- LLVMContext::OB_kcfi,
- LLVMContext::OB_convergencectrl,
- LLVMContext::OB_deactivation_symbol,
- LLVMContext::OB_fp_round,
- LLVMContext::OB_fp_except}) &&
+ return hasOperandBundlesOtherThan(
+ {LLVMContext::OB_ptrauth, LLVMContext::OB_kcfi,
+ LLVMContext::OB_convergencectrl,
+ LLVMContext::OB_deactivation_symbol, LLVMContext::OB_fp_round,
+ LLVMContext::OB_fp_except}) &&
getIntrinsicID() != Intrinsic::assume;
}
@@ -632,8 +631,7 @@ bool CallBase::hasClobberingOperandBundles() const {
{LLVMContext::OB_deopt, LLVMContext::OB_funclet,
LLVMContext::OB_ptrauth, LLVMContext::OB_kcfi,
LLVMContext::OB_convergencectrl,
- LLVMContext::OB_deactivation_symbol,
- LLVMContext::OB_fp_round,
+ LLVMContext::OB_deactivation_symbol, LLVMContext::OB_fp_round,
LLVMContext::OB_fp_except}) &&
getIntrinsicID() != Intrinsic::assume;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/135658
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits