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
AsmParser
Disassembler
InstPrinter
MCTargetDesc
TargetInfo
CMakeLists.txt
LLVMBuild.txt
MSA.txt
MicroMips32r6InstrFormats.td
MicroMips32r6InstrInfo.td
MicroMipsDSPInstrFormats.td
MicroMipsDSPInstrInfo.td
MicroMipsInstrFPU.td
MicroMipsInstrFormats.td
MicroMipsInstrInfo.td
MicroMipsSizeReduction.cpp
Mips.h
Mips.td
Mips16FrameLowering.cpp
Mips16FrameLowering.h
Mips16HardFloat.cpp
Mips16HardFloatInfo.cpp
Mips16HardFloatInfo.h
Mips16ISelDAGToDAG.cpp
Mips16ISelDAGToDAG.h
Mips16ISelLowering.cpp
Mips16ISelLowering.h
Mips16InstrFormats.td
Mips16InstrInfo.cpp
Mips16InstrInfo.h
Mips16InstrInfo.td
Mips16RegisterInfo.cpp
Mips16RegisterInfo.h
Mips32r6InstrFormats.td
Mips32r6InstrInfo.td
Mips64InstrInfo.td
Mips64r6InstrInfo.td
MipsAnalyzeImmediate.cpp
MipsAnalyzeImmediate.h
MipsAsmPrinter.cpp
MipsAsmPrinter.h
MipsCCState.cpp
MipsCCState.h
MipsCallingConv.td
MipsCondMov.td
MipsConstantIslandPass.cpp
MipsDSPInstrFormats.td
MipsDSPInstrInfo.td
MipsDelaySlotFiller.cpp
MipsEVAInstrFormats.td
MipsEVAInstrInfo.td
MipsFastISel.cpp
MipsFrameLowering.cpp
MipsFrameLowering.h
MipsHazardSchedule.cpp
MipsISelDAGToDAG.cpp
MipsISelDAGToDAG.h
MipsISelLowering.cpp.REMOVED.git-id
MipsISelLowering.h
MipsInstrFPU.td
MipsInstrFormats.td
MipsInstrInfo.cpp
MipsInstrInfo.h
MipsInstrInfo.td.REMOVED.git-id
MipsLongBranch.cpp
MipsMCInstLower.cpp
MipsMCInstLower.h
MipsMSAInstrFormats.td
MipsMSAInstrInfo.td.REMOVED.git-id
MipsMTInstrFormats.td
MipsMTInstrInfo.td
MipsMachineFunction.cpp
MipsMachineFunction.h
MipsModuleISelDAGToDAG.cpp
MipsOptimizePICCall.cpp
MipsOptionRecord.h
MipsOs16.cpp
MipsRegisterInfo.cpp
MipsRegisterInfo.h
MipsRegisterInfo.td
MipsSEFrameLowering.cpp
MipsSEFrameLowering.h
MipsSEISelDAGToDAG.cpp
MipsSEISelDAGToDAG.h
MipsSEISelLowering.cpp.REMOVED.git-id
MipsSEISelLowering.h
MipsSEInstrInfo.cpp
MipsSEInstrInfo.h
MipsSERegisterInfo.cpp
MipsSERegisterInfo.h
MipsSchedule.td
MipsScheduleGeneric.td
MipsScheduleP5600.td
MipsSubtarget.cpp
MipsSubtarget.h
MipsTargetMachine.cpp
MipsTargetMachine.h
MipsTargetObjectFile.cpp
MipsTargetObjectFile.h
MipsTargetStreamer.h
Relocation.txt
NVPTX
Nios2
PowerPC
RISCV
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
127 lines
4.1 KiB
C
127 lines
4.1 KiB
C
![]() |
//===- MipsMachineFunctionInfo.h - Private data used for Mips ---*- C++ -*-===//
|
||
|
//
|
||
|
// The LLVM Compiler Infrastructure
|
||
|
//
|
||
|
// This file is distributed under the University of Illinois Open Source
|
||
|
// License. See LICENSE.TXT for details.
|
||
|
//
|
||
|
//===----------------------------------------------------------------------===//
|
||
|
//
|
||
|
// This file declares the Mips specific subclass of MachineFunctionInfo.
|
||
|
//
|
||
|
//===----------------------------------------------------------------------===//
|
||
|
|
||
|
#ifndef LLVM_LIB_TARGET_MIPS_MIPSMACHINEFUNCTION_H
|
||
|
#define LLVM_LIB_TARGET_MIPS_MIPSMACHINEFUNCTION_H
|
||
|
|
||
|
#include "Mips16HardFloatInfo.h"
|
||
|
#include "llvm/CodeGen/MachineFunction.h"
|
||
|
#include "llvm/CodeGen/MachineMemOperand.h"
|
||
|
#include <map>
|
||
|
|
||
|
namespace llvm {
|
||
|
|
||
|
/// MipsFunctionInfo - This class is derived from MachineFunction private
|
||
|
/// Mips target-specific information for each MachineFunction.
|
||
|
class MipsFunctionInfo : public MachineFunctionInfo {
|
||
|
public:
|
||
|
MipsFunctionInfo(MachineFunction &MF) : MF(MF) {}
|
||
|
|
||
|
~MipsFunctionInfo() override;
|
||
|
|
||
|
unsigned getSRetReturnReg() const { return SRetReturnReg; }
|
||
|
void setSRetReturnReg(unsigned Reg) { SRetReturnReg = Reg; }
|
||
|
|
||
|
bool globalBaseRegSet() const;
|
||
|
unsigned getGlobalBaseReg();
|
||
|
|
||
|
int getVarArgsFrameIndex() const { return VarArgsFrameIndex; }
|
||
|
void setVarArgsFrameIndex(int Index) { VarArgsFrameIndex = Index; }
|
||
|
|
||
|
bool hasByvalArg() const { return HasByvalArg; }
|
||
|
void setFormalArgInfo(unsigned Size, bool HasByval) {
|
||
|
IncomingArgSize = Size;
|
||
|
HasByvalArg = HasByval;
|
||
|
}
|
||
|
|
||
|
unsigned getIncomingArgSize() const { return IncomingArgSize; }
|
||
|
|
||
|
bool callsEhReturn() const { return CallsEhReturn; }
|
||
|
void setCallsEhReturn() { CallsEhReturn = true; }
|
||
|
|
||
|
void createEhDataRegsFI();
|
||
|
int getEhDataRegFI(unsigned Reg) const { return EhDataRegFI[Reg]; }
|
||
|
bool isEhDataRegFI(int FI) const;
|
||
|
|
||
|
/// Create a MachinePointerInfo that has an ExternalSymbolPseudoSourceValue
|
||
|
/// object representing a GOT entry for an external function.
|
||
|
MachinePointerInfo callPtrInfo(const char *ES);
|
||
|
|
||
|
// Functions with the "interrupt" attribute require special prologues,
|
||
|
// epilogues and additional spill slots.
|
||
|
bool isISR() const { return IsISR; }
|
||
|
void setISR() { IsISR = true; }
|
||
|
void createISRRegFI();
|
||
|
int getISRRegFI(unsigned Reg) const { return ISRDataRegFI[Reg]; }
|
||
|
bool isISRRegFI(int FI) const;
|
||
|
|
||
|
/// Create a MachinePointerInfo that has a GlobalValuePseudoSourceValue object
|
||
|
/// representing a GOT entry for a global function.
|
||
|
MachinePointerInfo callPtrInfo(const GlobalValue *GV);
|
||
|
|
||
|
void setSaveS2() { SaveS2 = true; }
|
||
|
bool hasSaveS2() const { return SaveS2; }
|
||
|
|
||
|
int getMoveF64ViaSpillFI(const TargetRegisterClass *RC);
|
||
|
|
||
|
std::map<const char *, const Mips16HardFloatInfo::FuncSignature *>
|
||
|
StubsNeeded;
|
||
|
|
||
|
private:
|
||
|
virtual void anchor();
|
||
|
|
||
|
MachineFunction& MF;
|
||
|
|
||
|
/// SRetReturnReg - Some subtargets require that sret lowering includes
|
||
|
/// returning the value of the returned struct in a register. This field
|
||
|
/// holds the virtual register into which the sret argument is passed.
|
||
|
unsigned SRetReturnReg = 0;
|
||
|
|
||
|
/// GlobalBaseReg - keeps track of the virtual register initialized for
|
||
|
/// use as the global base register. This is used for PIC in some PIC
|
||
|
/// relocation models.
|
||
|
unsigned GlobalBaseReg = 0;
|
||
|
|
||
|
/// VarArgsFrameIndex - FrameIndex for start of varargs area.
|
||
|
int VarArgsFrameIndex = 0;
|
||
|
|
||
|
/// True if function has a byval argument.
|
||
|
bool HasByvalArg;
|
||
|
|
||
|
/// Size of incoming argument area.
|
||
|
unsigned IncomingArgSize;
|
||
|
|
||
|
/// CallsEhReturn - Whether the function calls llvm.eh.return.
|
||
|
bool CallsEhReturn = false;
|
||
|
|
||
|
/// Frame objects for spilling eh data registers.
|
||
|
int EhDataRegFI[4];
|
||
|
|
||
|
/// ISR - Whether the function is an Interrupt Service Routine.
|
||
|
bool IsISR = false;
|
||
|
|
||
|
/// Frame objects for spilling C0_STATUS, C0_EPC
|
||
|
int ISRDataRegFI[2];
|
||
|
|
||
|
// saveS2
|
||
|
bool SaveS2 = false;
|
||
|
|
||
|
/// FrameIndex for expanding BuildPairF64 nodes to spill and reload when the
|
||
|
/// O32 FPXX ABI is enabled. -1 is used to denote invalid index.
|
||
|
int MoveF64ViaSpillFI = -1;
|
||
|
};
|
||
|
|
||
|
} // end namespace llvm
|
||
|
|
||
|
#endif // LLVM_LIB_TARGET_MIPS_MIPSMACHINEFUNCTION_H
|