[InstCombine] Signed saturation patterns
[llvm-core.git] / lib / Target / Mips / Mips16RegisterInfo.h
blobfca78b43f96bdd346b9868cb5bb2a87c129d35d6
1 //===-- Mips16RegisterInfo.h - Mips16 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 Mips16 implementation of the TargetRegisterInfo class.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_LIB_TARGET_MIPS_MIPS16REGISTERINFO_H
14 #define LLVM_LIB_TARGET_MIPS_MIPS16REGISTERINFO_H
16 #include "MipsRegisterInfo.h"
18 namespace llvm {
19 class Mips16InstrInfo;
21 class Mips16RegisterInfo : public MipsRegisterInfo {
22 public:
23 Mips16RegisterInfo();
25 bool requiresRegisterScavenging(const MachineFunction &MF) const override;
27 bool requiresFrameIndexScavenging(const MachineFunction &MF) const override;
29 bool useFPForScavengingIndex(const MachineFunction &MF) const override;
31 bool saveScavengerRegister(MachineBasicBlock &MBB,
32 MachineBasicBlock::iterator I,
33 MachineBasicBlock::iterator &UseMI,
34 const TargetRegisterClass *RC,
35 unsigned Reg) const override;
37 const TargetRegisterClass *intRegClass(unsigned Size) const override;
39 private:
40 void eliminateFI(MachineBasicBlock::iterator II, unsigned OpNo,
41 int FrameIndex, uint64_t StackSize,
42 int64_t SPOffset) const override;
45 } // end namespace llvm
47 #endif