[llvm] [llvm-exegesis] Fix warnings (PR #120451)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 18 08:44:34 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-tools-llvm-exegesis
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
This patch fixes:
lib/Target/RISCV/RISCVGenAsmMatcher.inc:239:19: error: unused
function 'MatchRegisterName' [-Werror,-Wunused-function]
lib/Target/RISCV/RISCVGenAsmMatcher.inc:568:19: error: unused
function 'MatchRegisterAltName' [-Werror,-Wunused-function]
---
Full diff: https://github.com/llvm/llvm-project/pull/120451.diff
1 Files Affected:
- (modified) llvm/tools/llvm-exegesis/lib/RISCV/Target.cpp (-3)
``````````diff
diff --git a/llvm/tools/llvm-exegesis/lib/RISCV/Target.cpp b/llvm/tools/llvm-exegesis/lib/RISCV/Target.cpp
index 891818b625fe14..41d361532908ca 100644
--- a/llvm/tools/llvm-exegesis/lib/RISCV/Target.cpp
+++ b/llvm/tools/llvm-exegesis/lib/RISCV/Target.cpp
@@ -135,9 +135,6 @@ ExegesisRISCVTarget::ExegesisRISCVTarget()
: ExegesisTarget(ArrayRef<CpuAndPfmCounters>{},
RISCV_MC::isOpcodeAvailable) {}
-#define GET_REGISTER_MATCHER
-#include "RISCVGenAsmMatcher.inc"
-
bool ExegesisRISCVTarget::matchesArch(Triple::ArchType Arch) const {
return Arch == Triple::riscv32 || Arch == Triple::riscv64;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/120451
More information about the llvm-commits
mailing list