[RISCV] Localize RISCVZvlssegTable to RISCVISelDAGToDAG.cpp, the only place it is used.

This commit is contained in:
Craig Topper 2021-02-17 11:37:06 -08:00
parent 452d7ebc09
commit 3bdd02735b
3 changed files with 17 additions and 23 deletions

View File

@ -25,6 +25,22 @@ using namespace llvm;
#define DEBUG_TYPE "riscv-isel"
namespace RISCVZvlssegTable {
struct RISCVZvlsseg {
unsigned IntrinsicID;
uint8_t SEW;
uint8_t LMUL;
uint8_t IndexLMUL;
uint16_t Pseudo;
};
using namespace RISCV;
#define GET_RISCVZvlssegTable_IMPL
#include "RISCVGenSearchableTables.inc"
} // namespace RISCVZvlssegTable
void RISCVDAGToDAGISel::PostprocessISelDAG() {
doPeepholeLoadStoreADDI();
}

View File

@ -5475,10 +5475,4 @@ namespace RISCVVIntrinsicsTable {
} // namespace RISCVVIntrinsicsTable
namespace RISCVZvlssegTable {
#define GET_RISCVZvlssegTable_IMPL
#include "RISCVGenSearchableTables.inc"
} // namespace RISCVZvlssegTable
} // namespace llvm

View File

@ -450,22 +450,6 @@ using namespace RISCV;
} // end namespace RISCVVIntrinsicsTable
namespace RISCVZvlssegTable {
struct RISCVZvlsseg {
unsigned IntrinsicID;
uint8_t SEW;
uint8_t LMUL;
uint8_t IndexLMUL;
uint16_t Pseudo;
};
using namespace RISCV;
#define GET_RISCVZvlssegTable_DECL
#include "RISCVGenSearchableTables.inc"
} // namespace RISCVZvlssegTable
}
} // end namespace llvm
#endif