[llvm] [MCA][RISCV]Enable latency instrument on RISCV (PR #160063)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 22 03:23:22 PDT 2025
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 cpp -- llvm/lib/Target/RISCV/MCA/RISCVCustomBehaviour.cpp
``````````
: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/RISCV/MCA/RISCVCustomBehaviour.cpp b/llvm/lib/Target/RISCV/MCA/RISCVCustomBehaviour.cpp
index 9b6f3504c..579012591 100644
--- a/llvm/lib/Target/RISCV/MCA/RISCVCustomBehaviour.cpp
+++ b/llvm/lib/Target/RISCV/MCA/RISCVCustomBehaviour.cpp
@@ -87,7 +87,8 @@ bool RISCVInstrumentManager::supportsInstrumentType(
llvm::StringRef Type) const {
return Type == RISCVLMULInstrument::DESC_NAME ||
Type == RISCVSEWInstrument::DESC_NAME ||
- InstrumentManager::supportsInstrumentType(Type);;
+ InstrumentManager::supportsInstrumentType(Type);
+ ;
}
UniqueInstrument
@@ -111,8 +112,8 @@ RISCVInstrumentManager::createInstrument(llvm::StringRef Desc,
return std::make_unique<RISCVSEWInstrument>(Data);
}
- LLVM_DEBUG(dbgs() << "RVCB: Creating default instrument for Desc: "
- << Desc << '\n');
+ LLVM_DEBUG(dbgs() << "RVCB: Creating default instrument for Desc: " << Desc
+ << '\n');
return InstrumentManager::createInstrument(Desc, Data);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/160063
More information about the llvm-commits
mailing list