Skip to content

Commit cdc3931

Browse files
[RISCV][NFC] Include RISCVVInversePseudosTable in RISCVMCTargetDesc
1 parent 12d4724 commit cdc3931

File tree

3 files changed

+24
-21
lines changed

3 files changed

+24
-21
lines changed

llvm/lib/Target/RISCV/MCA/RISCVCustomBehaviour.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,6 @@
2020

2121
#define DEBUG_TYPE "llvm-mca-riscv-custombehaviour"
2222

23-
// This brings in a table with primary key of
24-
// base instruction opcode and lmul and maps
25-
// to the opcode of the pseudo instruction.
26-
namespace RISCVVInversePseudosTable {
27-
using namespace llvm;
28-
using namespace llvm::RISCV;
29-
30-
struct PseudoInfo {
31-
uint16_t Pseudo;
32-
uint16_t BaseInstr;
33-
uint8_t VLMul;
34-
uint8_t SEW;
35-
};
36-
37-
#define GET_RISCVVInversePseudosTable_IMPL
38-
#define GET_RISCVVInversePseudosTable_DECL
39-
#include "RISCVGenSearchableTables.inc"
40-
41-
} // end namespace RISCVVInversePseudosTable
42-
4323
namespace llvm {
4424
namespace mca {
4525

llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCTargetDesc.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@
4343
#define GET_SUBTARGETINFO_MC_DESC
4444
#include "RISCVGenSubtargetInfo.inc"
4545

46+
namespace llvm::RISCVVInversePseudosTable {
47+
48+
using namespace RISCV;
49+
50+
#define GET_RISCVVInversePseudosTable_IMPL
51+
#include "RISCVGenSearchableTables.inc"
52+
53+
} // namespace llvm::RISCVVInversePseudosTable
54+
4655
using namespace llvm;
4756

4857
static MCInstrInfo *createRISCVMCInstrInfo() {

llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCTargetDesc.h

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,21 @@ MCAsmBackend *createRISCVAsmBackend(const Target &T, const MCSubtargetInfo &STI,
3737

3838
std::unique_ptr<MCObjectTargetWriter> createRISCVELFObjectWriter(uint8_t OSABI,
3939
bool Is64Bit);
40-
}
40+
41+
namespace RISCVVInversePseudosTable {
42+
43+
struct PseudoInfo {
44+
uint16_t Pseudo;
45+
uint16_t BaseInstr;
46+
uint8_t VLMul;
47+
uint8_t SEW;
48+
};
49+
50+
#define GET_RISCVVInversePseudosTable_DECL
51+
#include "RISCVGenSearchableTables.inc"
52+
53+
} // namespace RISCVVInversePseudosTable
54+
} // namespace llvm
4155

4256
// Defines symbolic names for RISC-V registers.
4357
#define GET_REGINFO_ENUM

0 commit comments

Comments
 (0)