1//===-- VEInstrInfo.h - VE Instruction 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 VE implementation of the TargetInstrInfo class.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_LIB_TARGET_VE_VEINSTRINFO_H
14#define LLVM_LIB_TARGET_VE_VEINSTRINFO_H
15
16#include "VERegisterInfo.h"
17#include "llvm/CodeGen/TargetInstrInfo.h"
18
19#define GET_INSTRINFO_HEADER
20#include "VEGenInstrInfo.inc"
21
22namespace llvm {
23
24class VESubtarget;
25
26class VEInstrInfo : public VEGenInstrInfo {
27  const VERegisterInfo RI;
28  const VESubtarget &Subtarget;
29  virtual void anchor();
30
31public:
32  explicit VEInstrInfo(VESubtarget &ST);
33
34  /// getRegisterInfo - TargetInstrInfo is a superset of MRegister info.  As
35  /// such, whenever a client has an instance of instruction info, it should
36  /// always be able to get register info as well (through this method).
37  ///
38  const VERegisterInfo &getRegisterInfo() const { return RI; }
39
40  // Lower pseudo instructions after register allocation.
41  bool expandPostRAPseudo(MachineInstr &MI) const override;
42
43  bool expandExtendStackPseudo(MachineInstr &MI) const;
44};
45
46} // namespace llvm
47
48#endif
49