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,cl --
clang/test/CodeGenOpenCL/builtins-amdgcn-asyncmark-errs.cl
clang/test/CodeGenOpenCL/builtins-amdgcn-asyncmark.cl
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp llvm/lib/Target/AMDGPU/SIDefines.h
llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
llvm/lib/Target/AMDGPU/SIInstrInfo.h --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/Target/AMDGPU/SIInsertWaitcnts.cpp
b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
index b0e02ebaa..d9bb30d91 100644
--- a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
@@ -458,7 +458,7 @@ private:
DenseSet<MachineInstr *> ReleaseVGPRInsts;
// Track legacy async instructions to later remove CPol::ASYNC_pregfx12
- SmallVector<MachineInstr*> InstsWithAsyncCpolBit;
+ SmallVector<MachineInstr *> InstsWithAsyncCpolBit;
HardwareLimits Limits;
@@ -2371,8 +2371,8 @@ bool
SIInsertWaitcnts::generateWaitcntInstBefore(MachineInstr &MI,
if (ForceEmitZeroLoadFlag && Wait.LoadCnt != ~0u)
Wait.LoadCnt = 0;
- return generateWaitcnt(Wait, MI.getIterator(), *MI.getParent(),
- ScoreBrackets, OldWaitcntInstr);
+ return generateWaitcnt(Wait, MI.getIterator(), *MI.getParent(),
ScoreBrackets,
+ OldWaitcntInstr);
}
bool SIInsertWaitcnts::generateWaitcnt(AMDGPU::Waitcnt Wait,
``````````
</details>
https://github.com/llvm/llvm-project/pull/173259
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits