LLVM 24.0.0git
PISARegisterInfo.h
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
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/// \file
10/// This file declares register information for the PISA target.
11///
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_LIB_TARGET_PISA_PISAREGISTERINFO_H
15#define LLVM_LIB_TARGET_PISA_PISAREGISTERINFO_H
16
17#include "llvm/ADT/BitVector.h"
19
20#define GET_REGINFO_HEADER
21#include "PISAGenRegisterInfo.inc"
22
23namespace llvm {
24
26public:
28 const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;
29 BitVector getReservedRegs(const MachineFunction &MF) const override;
31 unsigned FIOperandNum,
32 RegScavenger *RS = nullptr) const override {
33 llvm_unreachable("unexpected execution");
34 }
35 Register getFrameRegister(const MachineFunction &MF) const override {
36 return Register();
37 }
38};
39} // namespace llvm
40
41#endif // LLVM_LIB_TARGET_PISA_PISAREGISTERINFO_H
This file implements the BitVector class.
IRTranslator LLVM IR MI
Promote Memory to Register
Definition Mem2Reg.cpp:110
MachineInstrBundleIterator< MachineInstr > iterator
const MCPhysReg * getCalleeSavedRegs(const MachineFunction *MF) const override
Register getFrameRegister(const MachineFunction &MF) const override
bool eliminateFrameIndex(MachineBasicBlock::iterator MI, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=nullptr) const override
BitVector getReservedRegs(const MachineFunction &MF) const override
Wrapper class representing virtual and physical registers.
Definition Register.h:20
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
This is an optimization pass for GlobalISel generic memory operations.
uint16_t MCPhysReg
An unsigned integer type large enough to represent all physical registers, but not necessarily virtua...
Definition MCRegister.h:21