You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.167
Former-commit-id: 289509151e0fee68a1b591a20c9f109c3c789d3a
This commit is contained in:
parent
e19d552987
commit
b084638f15
@ -1,57 +0,0 @@
|
||||
//===-- RISCVFrameLowering.h - Define frame lowering for RISCV -*- C++ -*--===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is distributed under the University of Illinois Open Source
|
||||
// License. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// This class implements RISCV-specific bits of TargetFrameLowering class.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_LIB_TARGET_RISCV_RISCVFRAMELOWERING_H
|
||||
#define LLVM_LIB_TARGET_RISCV_RISCVFRAMELOWERING_H
|
||||
|
||||
#include "llvm/CodeGen/TargetFrameLowering.h"
|
||||
|
||||
namespace llvm {
|
||||
class RISCVSubtarget;
|
||||
|
||||
class RISCVFrameLowering : public TargetFrameLowering {
|
||||
public:
|
||||
explicit RISCVFrameLowering(const RISCVSubtarget &STI)
|
||||
: TargetFrameLowering(StackGrowsDown,
|
||||
/*StackAlignment=*/16,
|
||||
/*LocalAreaOffset=*/0),
|
||||
STI(STI) {}
|
||||
|
||||
void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
|
||||
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
|
||||
|
||||
int getFrameIndexReference(const MachineFunction &MF, int FI,
|
||||
unsigned &FrameReg) const override;
|
||||
|
||||
void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
|
||||
RegScavenger *RS) const override;
|
||||
|
||||
bool hasFP(const MachineFunction &MF) const override;
|
||||
|
||||
MachineBasicBlock::iterator
|
||||
eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
|
||||
MachineBasicBlock::iterator MI) const override {
|
||||
return MBB.erase(MI);
|
||||
}
|
||||
|
||||
protected:
|
||||
const RISCVSubtarget &STI;
|
||||
|
||||
private:
|
||||
void determineFrameLayout(MachineFunction &MF) const;
|
||||
void adjustReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
|
||||
const DebugLoc &DL, unsigned DestReg, unsigned SrcReg,
|
||||
int64_t Val, MachineInstr::MIFlag Flag) const;
|
||||
};
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user