|
LLVM 24.0.0git
|
#include "MipsRegisterInfo.h"#include "MCTargetDesc/MipsABIInfo.h"#include "Mips.h"#include "MipsMachineFunction.h"#include "MipsSubtarget.h"#include "MipsTargetMachine.h"#include "llvm/ADT/BitVector.h"#include "llvm/CodeGen/MachineFrameInfo.h"#include "llvm/CodeGen/MachineFunction.h"#include "llvm/CodeGen/MachineInstr.h"#include "llvm/CodeGen/MachineRegisterInfo.h"#include "llvm/CodeGen/TargetFrameLowering.h"#include "llvm/CodeGen/TargetRegisterInfo.h"#include "llvm/CodeGen/TargetSubtargetInfo.h"#include "llvm/IR/Function.h"#include "llvm/IR/Module.h"#include "llvm/Support/Debug.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/Support/raw_ostream.h"#include <cstdint>#include "MipsGenRegisterInfo.inc"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "mips-reg-info" |
| #define | GET_REGINFO_TARGET_DESC |
Functions | |
| bool | isGPUsedAsGlobalRegister (const MachineFunction &MF) |
| Check if the user has declared $gp/$28 as a global regiater. | |
| #define DEBUG_TYPE "mips-reg-info" |
Definition at line 36 of file MipsRegisterInfo.cpp.
| #define GET_REGINFO_TARGET_DESC |
Definition at line 38 of file MipsRegisterInfo.cpp.
| bool isGPUsedAsGlobalRegister | ( | const MachineFunction & | MF | ) |
Check if the user has declared $gp/$28 as a global regiater.
Definition at line 80 of file MipsRegisterInfo.cpp.
References llvm::MachineFunction::getFunction(), llvm::Module::getNamedMetadata(), and llvm::GlobalValue::getParent().
Referenced by llvm::MipsRegisterInfo::getCalleeSavedRegs(), and llvm::MipsRegisterInfo::getReservedRegs().