[llvm] [RISCV] Include RISCVGenSearchTable.inc in RISCVISelDAGToDAG.h (PR #126326)
Min-Yih Hsu via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 7 16:23:19 PST 2025
https://github.com/mshockwave created https://github.com/llvm/llvm-project/pull/126326
This line was previously removed when 12d47247e5046b959af180e12f648c54e2c5e863 moved it to RISCVInstrInfo.h. But we probably don't want to have dangling `#define *_DECL` (RISCVGenSearchableTables.inc will `#undef` these macros) and I think there is no harm putting declarations of those search table functions in RISCVISelDAGToDAG.h.
>From 735f859fa9b06bfc31053fbe70d913fa98204db9 Mon Sep 17 00:00:00 2001
From: Min-Yih Hsu <min.hsu at sifive.com>
Date: Fri, 7 Feb 2025 16:15:29 -0800
Subject: [PATCH] [RISCV] Include RISCVGenSearchTable.inc in
RISCVISelDAGToDAG.h
---
llvm/lib/Target/RISCV/RISCVISelDAGToDAG.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.h b/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.h
index 592f517358506bb..bb786e4b2bb40f9 100644
--- a/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.h
+++ b/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.h
@@ -278,6 +278,7 @@ struct VLX_VSXPseudo {
#define GET_RISCVVSETable_DECL
#define GET_RISCVVLXTable_DECL
#define GET_RISCVVSXTable_DECL
+#include "RISCVGenSearchableTables.inc"
} // namespace RISCV
} // namespace llvm
More information about the llvm-commits
mailing list