|
LLVM 24.0.0git
|
RISCVMachineFunctionInfo - This class is derived from MachineFunctionInfo and contains private RISCV-specific information for each MachineFunction. More...
#include "Target/RISCV/RISCVMachineFunctionInfo.h"
Public Types | |
| enum class | ShadowStackKind { None = 0 , Hardware , Software } |
| enum class | PushPopKind { None = 0 , StdExtZcmp , VendorXqccmp } |
| enum class | InterruptStackKind { None = 0 , ACLICPreemptible , ACLICSupervisorPreemptible , ACLICPushPop , ACLICSupervisorPushPop , ACLICPreemptiblePushPop , ACLICSupervisorPreemptiblePushPop , QCINest , QCINoNest , SiFiveCLICPreemptible , SiFiveCLICStackSwap , SiFiveCLICPreemptibleStackSwap } |
Additional Inherited Members | |
| Static Public Member Functions inherited from llvm::MachineFunctionInfo | |
| template<typename FuncInfoTy, typename SubtargetTy = TargetSubtargetInfo> | |
| static FuncInfoTy * | create (BumpPtrAllocator &Allocator, const Function &F, const SubtargetTy *STI) |
| Factory function: default behavior is to call new using the supplied allocator. | |
| template<typename Ty> | |
| static Ty * | create (BumpPtrAllocator &Allocator, const Ty &MFI) |
RISCVMachineFunctionInfo - This class is derived from MachineFunctionInfo and contains private RISCV-specific information for each MachineFunction.
Definition at line 48 of file RISCVMachineFunctionInfo.h.
|
strong |
Definition at line 191 of file RISCVMachineFunctionInfo.h.
|
strong |
| Enumerator | |
|---|---|
| None | |
| StdExtZcmp | |
| VendorXqccmp | |
Definition at line 177 of file RISCVMachineFunctionInfo.h.
|
strong |
| Enumerator | |
|---|---|
| None | |
| Hardware | |
| Software | |
Definition at line 170 of file RISCVMachineFunctionInfo.h.
| RISCVMachineFunctionInfo::RISCVMachineFunctionInfo | ( | const Function & | F, |
| const RISCVSubtarget * | STI ) |
Definition at line 30 of file RISCVMachineFunctionInfo.cpp.
References llvm::alignDown(), assert(), llvm::dyn_cast_or_null(), llvm::mdconst::extract_or_null(), F, llvm::RISCVSubtarget::getFrameLowering(), llvm::TargetFrameLowering::getTransientStackAlign(), llvm::StringRef::size(), and llvm::Align::value().
Referenced by clone().
| void RISCVMachineFunctionInfo::addSExt32Register | ( | Register | Reg | ) |
Definition at line 176 of file RISCVMachineFunctionInfo.cpp.
Referenced by markSExt32Registers(), and unpackFromRegLoc().
|
overridevirtual |
Make a functionally equivalent copy of this MachineFunctionInfo in MF.
This requires remapping MachineBasicBlock references from the original parent to values in the new function. Targets may assume that virtual register and frame index values are preserved in the new function.
Reimplemented from llvm::MachineFunctionInfo.
Definition at line 23 of file RISCVMachineFunctionInfo.cpp.
References llvm::MachineFunction::cloneInfo(), and RISCVMachineFunctionInfo().
|
inline |
Definition at line 217 of file RISCVMachineFunctionInfo.h.
|
inline |
Definition at line 125 of file RISCVMachineFunctionInfo.h.
Referenced by llvm::RISCVInstrInfo::insertIndirectBranch().
|
inline |
Definition at line 158 of file RISCVMachineFunctionInfo.h.
Definition at line 164 of file RISCVMachineFunctionInfo.h.
References assert().
Referenced by llvm::RISCVTargetLowering::LowerCall().
|
inline |
Definition at line 270 of file RISCVMachineFunctionInfo.h.
| RISCVMachineFunctionInfo::InterruptStackKind RISCVMachineFunctionInfo::getInterruptStackKind | ( | const MachineFunction & | MF | ) | const |
Definition at line 63 of file RISCVMachineFunctionInfo.cpp.
References ACLICPreemptible, ACLICPreemptiblePushPop, ACLICPushPop, ACLICSupervisorPreemptible, ACLICSupervisorPreemptiblePushPop, ACLICSupervisorPushPop, assert(), llvm::StringSwitch< T, R >::Case(), llvm::StringSwitch< T, R >::Default(), llvm::Function::getFnAttribute(), llvm::MachineFunction::getFunction(), llvm::Attribute::getValueAsString(), llvm::Function::hasFnAttribute(), None, QCINest, QCINoNest, SiFiveCLICPreemptible, SiFiveCLICPreemptibleStackSwap, and SiFiveCLICStackSwap.
Referenced by hasImplicitFPUpdates(), isACLICPreemptibleInterrupt(), isACLICPushPopInterrupt(), isACLICSupervisorInterrupt(), isSiFivePreemptibleInterrupt(), isSiFiveStackSwapInterrupt(), llvm::RISCVFrameLowering::spillCalleeSavedRegisters(), useQCIInterrupt(), and useSiFiveInterrupt().
|
inline |
Definition at line 137 of file RISCVMachineFunctionInfo.h.
|
inline |
Definition at line 118 of file RISCVMachineFunctionInfo.h.
References llvm::MachineFrameInfo::CreateStackObject(), and llvm::MachineFunction::getFrameInfo().
| RISCVMachineFunctionInfo::PushPopKind RISCVMachineFunctionInfo::getPushPopKind | ( | const MachineFunction & | MF | ) | const |
Definition at line 118 of file RISCVMachineFunctionInfo.cpp.
References llvm::MachineFunction::disableFramePointerElim(), llvm::MachineFunction::getSubtarget(), isACLICPushPopInterrupt(), None, StdExtZcmp, useSiFiveInterrupt(), and VendorXqccmp.
Referenced by hasImplicitFPUpdates(), isPushable(), llvm::RISCVFrameLowering::restoreCalleeSavedRegisters(), and llvm::RISCVFrameLowering::spillCalleeSavedRegisters().
|
inline |
Definition at line 214 of file RISCVMachineFunctionInfo.h.
|
inline |
Definition at line 132 of file RISCVMachineFunctionInfo.h.
|
inline |
Definition at line 185 of file RISCVMachineFunctionInfo.h.
Referenced by llvm::RISCVFrameLowering::restoreCalleeSavedRegisters(), and llvm::RISCVFrameLowering::spillCalleeSavedRegisters().
|
inline |
Definition at line 188 of file RISCVMachineFunctionInfo.h.
|
inline |
Definition at line 155 of file RISCVMachineFunctionInfo.h.
References uint64_t.
|
inline |
Definition at line 152 of file RISCVMachineFunctionInfo.h.
|
inline |
Definition at line 149 of file RISCVMachineFunctionInfo.h.
References uint64_t.
| RISCVMachineFunctionInfo::ShadowStackKind RISCVMachineFunctionInfo::getShadowStackKind | ( | const MachineFunction & | MF | ) | const |
Definition at line 100 of file RISCVMachineFunctionInfo.cpp.
References llvm::MachineFunction::getFunction(), llvm::MachineFunction::getSubtarget(), Hardware, llvm::Function::hasFnAttribute(), None, and Software.
Referenced by hasShadowStack().
|
inline |
Definition at line 112 of file RISCVMachineFunctionInfo.h.
|
inline |
Definition at line 115 of file RISCVMachineFunctionInfo.h.
|
inline |
Definition at line 294 of file RISCVMachineFunctionInfo.h.
Referenced by llvm::RISCVInstrInfo::analyzeCandidate(), cannotInsertTailCall(), llvm::RISCVTargetLowering::expandIndirectJTBranch(), llvm::RISCVInstrInfo::insertOutlinedCall(), llvm::RISCVTargetLowering::LowerCall(), llvm::RISCVFrameLowering::restoreCalleeSavedRegisters(), runIndirectBranchTracking(), and runLandingPadSetup().
|
inline |
Definition at line 291 of file RISCVMachineFunctionInfo.h.
| bool RISCVMachineFunctionInfo::hasImplicitFPUpdates | ( | const MachineFunction & | MF | ) | const |
Definition at line 147 of file RISCVMachineFunctionInfo.cpp.
References getInterruptStackKind(), getPushPopKind(), QCINest, QCINoNest, and VendorXqccmp.
|
inline |
Definition at line 173 of file RISCVMachineFunctionInfo.h.
References getShadowStackKind(), and None.
Referenced by llvm::RISCVFrameLowering::canUseAsEpilogue(), and llvm::RISCVFrameLowering::restoreCalleeSavedRegisters().
| void RISCVMachineFunctionInfo::initializeBaseYamlFields | ( | const yaml::RISCVMachineFunctionInfo & | YamlMFI | ) |
Definition at line 170 of file RISCVMachineFunctionInfo.cpp.
References llvm::yaml::RISCVMachineFunctionInfo::VarArgsFrameIndex, and llvm::yaml::RISCVMachineFunctionInfo::VarArgsSaveSize.
|
inline |
Definition at line 244 of file RISCVMachineFunctionInfo.h.
References ACLICPreemptible, ACLICPreemptiblePushPop, ACLICSupervisorPreemptible, ACLICSupervisorPreemptiblePushPop, and getInterruptStackKind().
Referenced by createPreemptibleInterruptFrameEntries(), llvm::RISCVFrameLowering::enableShrinkWrapping(), and llvm::RISCVTargetLowering::LowerFormalArguments().
|
inline |
Definition at line 252 of file RISCVMachineFunctionInfo.h.
References ACLICPreemptiblePushPop, ACLICPushPop, ACLICSupervisorPreemptiblePushPop, ACLICSupervisorPushPop, and getInterruptStackKind().
Referenced by llvm::RISCVFrameLowering::enableShrinkWrapping(), and getPushPopKind().
|
inline |
Definition at line 260 of file RISCVMachineFunctionInfo.h.
References ACLICSupervisorPreemptible, ACLICSupervisorPreemptiblePushPop, ACLICSupervisorPushPop, and getInterruptStackKind().
Referenced by emitACLICPreemptibleRestores(), and emitACLICPreemptibleSaves().
|
inline |
Definition at line 273 of file RISCVMachineFunctionInfo.h.
References llvm::is_contained().
|
inline |
Definition at line 181 of file RISCVMachineFunctionInfo.h.
References getPushPopKind(), and None.
Referenced by llvm::RISCVFrameLowering::restoreCalleeSavedRegisters(), llvm::RISCVFrameLowering::spillCalleeSavedRegisters(), and useSaveRestoreLibCalls().
Definition at line 180 of file RISCVMachineFunctionInfo.cpp.
References llvm::is_contained().
Referenced by isSignExtendedW().
|
inline |
Definition at line 232 of file RISCVMachineFunctionInfo.h.
References getInterruptStackKind(), SiFiveCLICPreemptible, and SiFiveCLICPreemptibleStackSwap.
Referenced by createPreemptibleInterruptFrameEntries().
|
inline |
Definition at line 238 of file RISCVMachineFunctionInfo.h.
References getInterruptStackKind(), SiFiveCLICPreemptibleStackSwap, and SiFiveCLICStackSwap.
|
inline |
Definition at line 288 of file RISCVMachineFunctionInfo.h.
|
inline |
Definition at line 267 of file RISCVMachineFunctionInfo.h.
Referenced by createPreemptibleInterruptFrameEntries().
|
inline |
Definition at line 221 of file RISCVMachineFunctionInfo.h.
References llvm::Size.
|
inline |
Definition at line 128 of file RISCVMachineFunctionInfo.h.
|
inline |
Definition at line 159 of file RISCVMachineFunctionInfo.h.
References llvm::Size.
|
inline |
Definition at line 292 of file RISCVMachineFunctionInfo.h.
|
inline |
Definition at line 161 of file RISCVMachineFunctionInfo.h.
References Reg.
Referenced by llvm::RISCVTargetLowering::LowerFormalArguments().
|
inline |
Definition at line 289 of file RISCVMachineFunctionInfo.h.
Referenced by llvm::RISCVTargetLowering::LowerFormalArguments(), llvm::RISCVCallLowering::lowerFormalArguments(), llvm::RISCVTargetLowering::LowerReturn(), and llvm::RISCVCallLowering::lowerReturn().
|
inline |
Definition at line 138 of file RISCVMachineFunctionInfo.h.
References llvm::Size.
|
inline |
Definition at line 215 of file RISCVMachineFunctionInfo.h.
References llvm::Size.
|
inline |
Definition at line 186 of file RISCVMachineFunctionInfo.h.
|
inline |
Definition at line 189 of file RISCVMachineFunctionInfo.h.
References llvm::Size.
|
inline |
Definition at line 156 of file RISCVMachineFunctionInfo.h.
References uint64_t.
|
inline |
Definition at line 153 of file RISCVMachineFunctionInfo.h.
|
inline |
Definition at line 150 of file RISCVMachineFunctionInfo.h.
References llvm::Size, and uint64_t.
|
inline |
Definition at line 113 of file RISCVMachineFunctionInfo.h.
Referenced by llvm::RISCVTargetLowering::LowerFormalArguments().
|
inline |
Definition at line 116 of file RISCVMachineFunctionInfo.h.
References llvm::Size.
Referenced by llvm::RISCVTargetLowering::LowerFormalArguments().
|
inline |
Definition at line 208 of file RISCVMachineFunctionInfo.h.
References getInterruptStackKind(), QCINest, and QCINoNest.
Referenced by llvm::RISCVFrameLowering::enableShrinkWrapping(), llvm::RISCVFrameLowering::restoreCalleeSavedRegisters(), and llvm::RISCVFrameLowering::spillCalleeSavedRegisters().
|
inline |
Definition at line 140 of file RISCVMachineFunctionInfo.h.
References llvm::MachineFunction::getFrameInfo(), llvm::MachineFunction::getFunction(), llvm::MachineFunction::getSubtarget(), llvm::Function::hasFnAttribute(), llvm::MachineFrameInfo::hasTailCall(), and isPushable().
Referenced by llvm::RISCVFrameLowering::canUseAsEpilogue(), llvm::RISCVFrameLowering::canUseAsPrologue(), and llvm::RISCVFrameLowering::restoreCalleeSavedRegisters().
|
inline |
Definition at line 225 of file RISCVMachineFunctionInfo.h.
References getInterruptStackKind(), SiFiveCLICPreemptible, SiFiveCLICPreemptibleStackSwap, and SiFiveCLICStackSwap.
Referenced by llvm::RISCVFrameLowering::enableShrinkWrapping(), and getPushPopKind().