if (unsigned MinVLen = ISAInfo->getMinVLen()) {
unsigned MaxVLen = ISAInfo->getMaxVLen();
// RISCV::RVVBitsPerBlock is 64.
- return std::pair<unsigned, unsigned>(MinVLen/64, MaxVLen/64);
+ return std::make_pair(MinVLen / llvm::RISCV::RVVBitsPerBlock,
+ MaxVLen / llvm::RISCV::RVVBitsPerBlock);
}
return None;
namespace RISCV {
+// We use 64 bits as the known part in the scalable vector types.
+static constexpr unsigned RVVBitsPerBlock = 64;
+
enum CPUKind : unsigned {
#define PROC(ENUM, NAME, FEATURES, DEFAULT_MARCH) CK_##ENUM,
#define TUNE_PROC(ENUM, NAME) CK_##ENUM,
#include "llvm/CodeGen/CallingConvLower.h"
#include "llvm/CodeGen/SelectionDAG.h"
#include "llvm/CodeGen/TargetLowering.h"
+#include "llvm/Support/TargetParser.h"
namespace llvm {
class RISCVSubtarget;
};
} // namespace RISCVISD
-namespace RISCV {
-// We use 64 bits as the known part in the scalable vector types.
-static constexpr unsigned RVVBitsPerBlock = 64;
-} // namespace RISCV
-
class RISCVTargetLowering : public TargetLowering {
const RISCVSubtarget &Subtarget;