[llvm] ed77df5 - [NFC] clang-format llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 13 21:57:37 PDT 2024
Author: Shilei Tian
Date: 2024-10-14T00:57:01-04:00
New Revision: ed77df56f272b938d64264893b6d3759ba968afb
URL: https://github.com/llvm/llvm-project/commit/ed77df56f272b938d64264893b6d3759ba968afb
DIFF: https://github.com/llvm/llvm-project/commit/ed77df56f272b938d64264893b6d3759ba968afb.diff
LOG: [NFC] clang-format llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
Added:
Modified:
llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
index 9866ecbdddb608..0762bcf4353df3 100644
--- a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
@@ -41,17 +41,18 @@ using namespace llvm;
#define DEBUG_TYPE "si-insert-waitcnts"
-DEBUG_COUNTER(ForceExpCounter, DEBUG_TYPE"-forceexp",
+DEBUG_COUNTER(ForceExpCounter, DEBUG_TYPE "-forceexp",
"Force emit s_waitcnt expcnt(0) instrs");
-DEBUG_COUNTER(ForceLgkmCounter, DEBUG_TYPE"-forcelgkm",
+DEBUG_COUNTER(ForceLgkmCounter, DEBUG_TYPE "-forcelgkm",
"Force emit s_waitcnt lgkmcnt(0) instrs");
-DEBUG_COUNTER(ForceVMCounter, DEBUG_TYPE"-forcevm",
+DEBUG_COUNTER(ForceVMCounter, DEBUG_TYPE "-forcevm",
"Force emit s_waitcnt vmcnt(0) instrs");
-static cl::opt<bool> ForceEmitZeroFlag(
- "amdgpu-waitcnt-forcezero",
- cl::desc("Force all waitcnt instrs to be emitted as s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)"),
- cl::init(false), cl::Hidden);
+static cl::opt<bool>
+ ForceEmitZeroFlag("amdgpu-waitcnt-forcezero",
+ cl::desc("Force all waitcnt instrs to be emitted as "
+ "s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)"),
+ cl::init(false), cl::Hidden);
namespace {
// Class of object that encapsulates latest instruction counter score
@@ -1596,9 +1597,7 @@ static bool callWaitsOnFunctionEntry(const MachineInstr &MI) {
/// \returns true if the callee is expected to wait for any outstanding waits
/// before returning.
-static bool callWaitsOnFunctionReturn(const MachineInstr &MI) {
- return true;
-}
+static bool callWaitsOnFunctionReturn(const MachineInstr &MI) { return true; }
/// Generate s_waitcnt instruction to be placed before cur_Inst.
/// Instructions of a given type are returned in order,
More information about the llvm-commits
mailing list