[llvm] [AMDGPU] Refactor several functions for merging with downstream work. (PR #110562)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 30 13:10:06 PDT 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 f8ba021e64a0e76c8750a3666da68a59508afd97 0ca7372fb3895e9d6b37cac2b6dd1541745fa6e0 --extensions cpp -- llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
``````````
</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 ba567f863a..e64b35d230 100644
--- a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
@@ -859,7 +859,8 @@ void WaitcntBrackets::updateByEvent(const SIInstrInfo *TII,
}
} else if (TII->isMIMG(Inst)) {
if (Inst.mayStore()) {
- setScoreByOperand(&Inst, TRI, MRI, Inst.getOperand(0), EXP_CNT, CurrScore);
+ setScoreByOperand(&Inst, TRI, MRI, Inst.getOperand(0), EXP_CNT,
+ CurrScore);
} else if (SIInstrInfo::isAtomicRet(Inst)) {
setScoreByOperand(&Inst, TRI, MRI,
*TII->getNamedOperand(Inst, AMDGPU::OpName::data),
@@ -867,10 +868,12 @@ void WaitcntBrackets::updateByEvent(const SIInstrInfo *TII,
}
} else if (TII->isMTBUF(Inst)) {
if (Inst.mayStore())
- setScoreByOperand(&Inst, TRI, MRI, Inst.getOperand(0), EXP_CNT, CurrScore);
+ setScoreByOperand(&Inst, TRI, MRI, Inst.getOperand(0), EXP_CNT,
+ CurrScore);
} else if (TII->isMUBUF(Inst)) {
if (Inst.mayStore()) {
- setScoreByOperand(&Inst, TRI, MRI, Inst.getOperand(0), EXP_CNT, CurrScore);
+ setScoreByOperand(&Inst, TRI, MRI, Inst.getOperand(0), EXP_CNT,
+ CurrScore);
} else if (SIInstrInfo::isAtomicRet(Inst)) {
setScoreByOperand(&Inst, TRI, MRI,
*TII->getNamedOperand(Inst, AMDGPU::OpName::data),
``````````
</details>
https://github.com/llvm/llvm-project/pull/110562
More information about the llvm-commits
mailing list