You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
external
Newtonsoft.Json
api-doc-tools
api-snapshot
aspnetwebstack
binary-reference-assemblies
bockbuild
boringssl
cecil
cecil-legacy
corefx
corert
helix-binaries
ikdasm
ikvm
illinker-test-assets
linker
llvm
bindings
cmake
docs
examples
include
lib
Analysis
AsmParser
BinaryFormat
Bitcode
CodeGen
DebugInfo
Demangle
ExecutionEngine
FuzzMutate
Fuzzer
IR
IRReader
LTO
LineEditor
Linker
MC
Object
ObjectYAML
Option
Passes
ProfileData
Support
TableGen
Target
AArch64
AMDGPU
ARC
ARM
AVR
BPF
Hexagon
Lanai
MSP430
Mips
NVPTX
Nios2
PowerPC
RISCV
AsmParser
Disassembler
InstPrinter
MCTargetDesc
TargetInfo
CMakeLists.txt
LLVMBuild.txt
RISCV.h
RISCV.td
RISCVAsmPrinter.cpp
RISCVCallingConv.td
RISCVFrameLowering.cpp
RISCVFrameLowering.h
RISCVISelDAGToDAG.cpp
RISCVISelLowering.cpp
RISCVISelLowering.h
RISCVInstrFormats.td
RISCVInstrFormatsC.td
RISCVInstrInfo.cpp
RISCVInstrInfo.h
RISCVInstrInfo.td
RISCVInstrInfoA.td
RISCVInstrInfoC.td
RISCVInstrInfoD.td
RISCVInstrInfoF.td
RISCVInstrInfoM.td
RISCVMCInstLower.cpp
RISCVRegisterInfo.cpp
RISCVRegisterInfo.h
RISCVRegisterInfo.td
RISCVSubtarget.cpp
RISCVSubtarget.h
RISCVTargetMachine.cpp
RISCVTargetMachine.h
Sparc
SystemZ
WebAssembly
X86
XCore
CMakeLists.txt
LLVMBuild.txt
README.txt
Target.cpp
TargetIntrinsicInfo.cpp
TargetLoweringObjectFile.cpp
TargetMachine.cpp
TargetMachineC.cpp
Testing
ToolDrivers
Transforms
WindowsManifest
XRay
CMakeLists.txt
LLVMBuild.txt
projects
resources
runtimes
scripts
test
tools
unittests
utils
.arcconfig
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in
nuget-buildtasks
nunit-lite
roslyn-binaries
rx
xunit-binaries
how-to-bump-roslyn-binaries.md
ikvm-native
libgc
llvm
m4
man
mcs
mk
mono
msvc
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h
58 lines
2.0 KiB
C
58 lines
2.0 KiB
C
![]() |
//===-- 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
|