Revert " [LoongArch][ISel] Check the number of sign bits in `PatGprGpr_32` (#107432)"
[llvm-project.git] / llvm / lib / Target / Mips / MipsSERegisterInfo.h
blobcc8496e0268be647c74680e8a6cf4bf49be872df
1 //===-- MipsSERegisterInfo.h - Mips32/64 Register Information ---*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file contains the Mips32/64 implementation of the TargetRegisterInfo
10 // class.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_MIPS_MIPSSEREGISTERINFO_H
15 #define LLVM_LIB_TARGET_MIPS_MIPSSEREGISTERINFO_H
17 #include "MipsRegisterInfo.h"
19 namespace llvm {
21 class MipsSERegisterInfo : public MipsRegisterInfo {
22 public:
23 MipsSERegisterInfo();
25 bool requiresRegisterScavenging(const MachineFunction &MF) const override;
27 bool requiresFrameIndexScavenging(const MachineFunction &MF) const override;
29 const TargetRegisterClass *intRegClass(unsigned Size) const override;
31 private:
32 void eliminateFI(MachineBasicBlock::iterator II, unsigned OpNo,
33 int FrameIndex, uint64_t StackSize,
34 int64_t SPOffset) const override;
37 } // end namespace llvm
39 #endif