/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyFrameLowering.cpp | 45 bool WebAssemblyFrameLowering::hasBP(const MachineFunction &MF) const { in hasBP() 47 MF.getSubtarget<WebAssemblySubtarget>().getRegisterInfo(); in hasBP() 48 return RegInfo->needsStackRealignment(MF); in hasBP() 53 bool WebAssemblyFrameLowering::hasFP(const MachineFunction &MF) const { in hasFP() 54 const MachineFrameInfo &MFI = MF.getFrameInfo(); in hasFP() 63 bool NeedsFixedReference = !hasBP(MF) || HasFixedSizedObjects; in hasFP() 76 const MachineFunction &MF) const { in hasReservedCallFrame() 77 return !MF.getFrameInfo().hasVarSizedObjects(); in hasReservedCallFrame() 83 const MachineFunction &MF) const { in needsSPForLocalFrame() 84 auto &MFI = MF in needsSPForLocalFrame() 125 writeSPToGlobal( unsigned SrcReg, MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator &InsertStore, const DebugLoc &DL) const writeSPToGlobal() argument 138 eliminateCallFramePseudoInstr( MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const eliminateCallFramePseudoInstr() argument 152 emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const emitPrologue() argument 225 emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const emitEpilogue() argument [all...] |
H A D | WebAssemblyLateEHPrepare.cpp | 33 bool runOnMachineFunction(MachineFunction &MF) override; 34 bool addCatches(MachineFunction &MF); 35 bool replaceFuncletReturns(MachineFunction &MF); 36 bool removeUnnecessaryUnreachables(MachineFunction &MF); 37 bool addExceptionExtraction(MachineFunction &MF); 38 bool restoreStackPointer(MachineFunction &MF); 61 MachineFunction *MF = MI->getParent()->getParent(); in getMatchingEHPad() local 77 if (MBB == &MF->front()) in getMatchingEHPad() 102 bool WebAssemblyLateEHPrepare::runOnMachineFunction(MachineFunction &MF) { in runOnMachineFunction() argument 105 << MF in runOnMachineFunction() 125 addCatches(MachineFunction &MF) addCatches() argument 143 replaceFuncletReturns(MachineFunction &MF) replaceFuncletReturns() argument 184 removeUnnecessaryUnreachables( MachineFunction &MF) removeUnnecessaryUnreachables() argument 235 addExceptionExtraction(MachineFunction &MF) addExceptionExtraction() argument 364 restoreStackPointer(MachineFunction &MF) restoreStackPointer() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
H A D | AArch64RegisterInfo.cpp | 44 AArch64RegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { in getCalleeSavedRegs() 45 assert(MF && "Invalid MachineFunction pointer."); in getCalleeSavedRegs() 46 if (MF->getFunction().getCallingConv() == CallingConv::CFGuard_Check) in getCalleeSavedRegs() 48 if (MF->getSubtarget<AArch64Subtarget>().isTargetWindows()) in getCalleeSavedRegs() 50 if (MF->getFunction().getCallingConv() == CallingConv::GHC) in getCalleeSavedRegs() 54 if (MF->getFunction().getCallingConv() == CallingConv::AnyReg) in getCalleeSavedRegs() 56 if (MF->getFunction().getCallingConv() == CallingConv::AArch64_VectorCall) in getCalleeSavedRegs() 58 if (MF->getFunction().getCallingConv() == CallingConv::AArch64_SVE_VectorCall) in getCalleeSavedRegs() 60 if (MF->getFunction().getCallingConv() == CallingConv::CXX_FAST_TLS) in getCalleeSavedRegs() 61 return MF in getCalleeSavedRegs() 116 getCallPreservedMask(const MachineFunction &MF, CallingConv::ID CC) const getCallPreservedMask() argument 154 UpdateCustomCallPreservedMask(MachineFunction &MF, const uint32_t **Mask) const UpdateCustomCallPreservedMask() argument 179 getThisReturnPreservedMask(const MachineFunction &MF, CallingConv::ID CC) const getThisReturnPreservedMask() argument 224 isReservedReg(const MachineFunction &MF, unsigned Reg) const isReservedReg() argument [all...] |
H A D | AArch64FrameLowering.cpp | 184 static unsigned estimateRSStackSizeLimit(MachineFunction &MF) { in estimateRSStackSizeLimit() argument 188 for (MachineBasicBlock &MBB : MF) { in estimateRSStackSizeLimit() 215 static StackOffset getSVEStackSize(const MachineFunction &MF) { in getSVEStackSize() argument 216 const AArch64FunctionInfo *AFI = MF.getInfo<AArch64FunctionInfo>(); in getSVEStackSize() 220 bool AArch64FrameLowering::canUseRedZone(const MachineFunction &MF) const { in canUseRedZone() 225 if (MF.getFunction().hasFnAttribute(Attribute::NoRedZone)) in canUseRedZone() 228 const MachineFrameInfo &MFI = MF.getFrameInfo(); in canUseRedZone() 229 const AArch64FunctionInfo *AFI = MF.getInfo<AArch64FunctionInfo>(); in canUseRedZone() 232 return !(MFI.hasCalls() || hasFP(MF) || NumBytes > 128 || in canUseRedZone() 233 getSVEStackSize(MF)); in canUseRedZone() 278 eliminateCallFramePseudoInstr( MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const eliminateCallFramePseudoInstr() argument 388 MachineFunction *MF = MBB->getParent(); findScratchNonCalleeSaveRegister() local 418 const MachineFunction *MF = MBB.getParent(); canUseAsPrologue() local 431 windowsRequiresStackProbe(MachineFunction &MF, uint64_t StackSizeInBytes) windowsRequiresStackProbe() argument 448 shouldCombineCSRLocalStackBump( MachineFunction &MF, uint64_t StackBumpBytes) const shouldCombineCSRLocalStackBump() argument 490 MachineFunction &MF = *MBB->getParent(); InsertSEH() local 818 ShouldSignWithAKey(MachineFunction &MF) ShouldSignWithAKey() argument 829 needsWinCFI(const MachineFunction &MF) needsWinCFI() argument 835 isTargetDarwin(const MachineFunction &MF) isTargetDarwin() argument 839 isTargetWindows(const MachineFunction &MF) isTargetWindows() argument 857 emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const emitPrologue() argument 1330 InsertReturnAddressAuth(MachineFunction &MF, MachineBasicBlock &MBB) InsertReturnAddressAuth() argument 1370 emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const emitEpilogue() argument 1661 getFrameIndexReference(const MachineFunction &MF, int FI, unsigned &FrameReg) const getFrameIndexReference() argument 1672 getNonLocalFrameIndexReference( const MachineFunction &MF, int FI) const getNonLocalFrameIndexReference() argument 1677 getFPOffset(const MachineFunction &MF, int64_t ObjectOffset) getFPOffset() argument 1688 getStackOffset(const MachineFunction &MF, int64_t ObjectOffset) getStackOffset() argument 1693 getSEHFrameIndexOffset(const MachineFunction &MF, int FI) const getSEHFrameIndexOffset() argument 1703 resolveFrameIndexReference( const MachineFunction &MF, int FI, unsigned &FrameReg, bool PreferFP, bool ForSimm) const resolveFrameIndexReference() argument 1714 resolveFrameOffsetReference( const MachineFunction &MF, int64_t ObjectOffset, bool isFixed, bool isSVE, unsigned &FrameReg, bool PreferFP, bool ForSimm) const resolveFrameOffsetReference() argument 1849 getPrologueDeath(MachineFunction &MF, unsigned Reg) getPrologueDeath() argument 1859 produceCompactUnwindFrame(MachineFunction &MF) produceCompactUnwindFrame() argument 1935 computeCalleeSaveRegisterPairs( MachineFunction &MF, const std::vector<CalleeSavedInfo> &CSI, const TargetRegisterInfo *TRI, SmallVectorImpl<RegPairInfo> &RegPairs, bool &NeedShadowCallStackProlog, bool NeedsFrameRecord) computeCalleeSaveRegisterPairs() argument 2083 MachineFunction &MF = *MBB.getParent(); spillCalleeSavedRegisters() local 2225 MachineFunction &MF = *MBB.getParent(); restoreCalleeSavedRegisters() local 2340 determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs, RegScavenger *RS) const determineCalleeSaves() argument 2607 processFunctionBeforeFrameFinalized( MachineFunction &MF, RegScavenger *RS) const processFunctionBeforeFrameFinalized() argument 2655 getFrameIndexReferencePreferSP( const MachineFunction &MF, int FI, unsigned &FrameReg, bool IgnoreSPUpdates) const getFrameIndexReferencePreferSP() argument [all...] |
H A D | AArch64FrameLowering.h | 31 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, 36 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 37 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 41 int getFrameIndexReference(const MachineFunction &MF, int FI, 43 StackOffset resolveFrameIndexReference(const MachineFunction &MF, int FI, 46 StackOffset resolveFrameOffsetReference(const MachineFunction &MF, 61 bool canUseRedZone(const MachineFunction &MF) const; 63 bool hasFP(const MachineFunction &MF) const override; 64 bool hasReservedCallFrame(const MachineFunction &MF) const override; 66 void determineCalleeSaves(MachineFunction &MF, BitVecto [all...] |
H A D | AArch64RegisterInfo.h | 37 bool isReservedReg(const MachineFunction &MF, unsigned Reg) const; 38 bool isAnyArgRegReserved(const MachineFunction &MF) const; 39 void emitReservedArgRegCallError(const MachineFunction &MF) const; 41 void UpdateCustomCalleeSavedRegs(MachineFunction &MF) const; 42 void UpdateCustomCallPreservedMask(MachineFunction &MF, 46 const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override; 48 getCalleeSavedRegsViaCopy(const MachineFunction *MF) const; 49 const uint32_t *getCallPreservedMask(const MachineFunction &MF, 78 const uint32_t *getThisReturnPreservedMask(const MachineFunction &MF, 84 BitVector getReservedRegs(const MachineFunction &MF) cons [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
H A D | TargetFrameLoweringImpl.cpp | 33 bool TargetFrameLowering::enableCalleeSaveSkip(const MachineFunction &MF) const { in enableCalleeSaveSkip() 34 assert(MF.getFunction().hasFnAttribute(Attribute::NoReturn) && in enableCalleeSaveSkip() 35 MF.getFunction().hasFnAttribute(Attribute::NoUnwind) && in enableCalleeSaveSkip() 36 !MF.getFunction().hasFnAttribute(Attribute::UWTable)); in enableCalleeSaveSkip() 44 int TargetFrameLowering::getFrameIndexReference(const MachineFunction &MF, in getFrameIndexReference() argument 46 const MachineFrameInfo &MFI = MF.getFrameInfo(); in getFrameIndexReference() 47 const TargetRegisterInfo *RI = MF.getSubtarget().getRegisterInfo(); in getFrameIndexReference() 52 FrameReg = RI->getFrameRegister(MF); in getFrameIndexReference() 59 const MachineFunction &MF) const { in needsFrameIndexResolution() 60 return MF in needsFrameIndexResolution() 63 getCalleeSaves(const MachineFunction &MF, BitVector &CalleeSaves) const getCalleeSaves() argument 76 determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs, RegScavenger *RS) const determineCalleeSaves() argument [all...] |
H A D | PrologEpilogInserter.cpp | 97 bool runOnMachineFunction(MachineFunction &MF) override; 124 void calculateCallFrameInfo(MachineFunction &MF); 125 void calculateSaveRestoreBlocks(MachineFunction &MF); 126 void spillCalleeSavedRegs(MachineFunction &MF); 128 void calculateFrameObjectOffsets(MachineFunction &MF); 129 void replaceFrameIndices(MachineFunction &MF); 130 void replaceFrameIndices(MachineBasicBlock *BB, MachineFunction &MF, 132 void insertPrologEpilogCode(MachineFunction &MF); 215 bool PEI::runOnMachineFunction(MachineFunction &MF) { in runOnMachineFunction() argument 217 const Function &F = MF in runOnMachineFunction() 298 calculateCallFrameInfo(MachineFunction &MF) calculateCallFrameInfo() argument 351 calculateSaveRestoreBlocks(MachineFunction &MF) calculateSaveRestoreBlocks() argument 461 updateLiveness(MachineFunction &MF) updateLiveness() argument 536 MachineFunction &MF = *SaveBlock.getParent(); insertCSRSaves() local 563 MachineFunction &MF = *RestoreBlock.getParent(); insertCSRRestores() local 590 spillCalleeSavedRegs(MachineFunction &MF) spillCalleeSavedRegs() argument 784 calculateFrameObjectOffsets(MachineFunction &MF) calculateFrameObjectOffsets() argument 1093 insertPrologEpilogCode(MachineFunction &MF) insertPrologEpilogCode() argument 1132 replaceFrameIndices(MachineFunction &MF) replaceFrameIndices() argument 1175 replaceFrameIndices(MachineBasicBlock *BB, MachineFunction &MF, int &SPAdj) replaceFrameIndices() argument [all...] |
H A D | RegUsageInfoCollector.cpp | 57 bool runOnMachineFunction(MachineFunction &MF) override; 61 static void computeCalleeSavedRegs(BitVector &SavedRegs, MachineFunction &MF); 85 static bool isCallableFunction(const MachineFunction &MF) { in isCallableFunction() argument 86 switch (MF.getFunction().getCallingConv()) { in isCallableFunction() 101 bool RegUsageInfoCollector::runOnMachineFunction(MachineFunction &MF) { in runOnMachineFunction() argument 102 MachineRegisterInfo *MRI = &MF.getRegInfo(); in runOnMachineFunction() 103 const TargetRegisterInfo *TRI = MF.getSubtarget().getRegisterInfo(); in runOnMachineFunction() 104 const LLVMTargetMachine &TM = MF.getTarget(); in runOnMachineFunction() 108 << MF.getName() << '\n'); in runOnMachineFunction() 111 if (!isCallableFunction(MF)) { in runOnMachineFunction() 196 computeCalleeSavedRegs(BitVector &SavedRegs, MachineFunction &MF) computeCalleeSavedRegs() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/ |
H A D | RISCVFrameLowering.cpp | 26 bool RISCVFrameLowering::hasFP(const MachineFunction &MF) const { in hasFP() 27 const TargetRegisterInfo *RegInfo = MF.getSubtarget().getRegisterInfo(); in hasFP() 29 const MachineFrameInfo &MFI = MF.getFrameInfo(); in hasFP() 30 return MF.getTarget().Options.DisableFramePointerElim(MF) || in hasFP() 31 RegInfo->needsStackRealignment(MF) || MFI.hasVarSizedObjects() || in hasFP() 35 bool RISCVFrameLowering::hasBP(const MachineFunction &MF) const { in hasBP() 36 const MachineFrameInfo &MFI = MF.getFrameInfo(); in hasBP() 39 return MFI.hasVarSizedObjects() && TRI->needsStackRealignment(MF); in hasBP() 43 void RISCVFrameLowering::determineFrameLayout(MachineFunction &MF) cons 108 emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const emitPrologue() argument 245 emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const emitEpilogue() argument 303 getFrameIndexReference(const MachineFunction &MF, int FI, unsigned &FrameReg) const getFrameIndexReference() argument 353 determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs, RegScavenger *RS) const determineCalleeSaves() argument 398 processFunctionBeforeFrameFinalized( MachineFunction &MF, RegScavenger *RS) const processFunctionBeforeFrameFinalized() argument 424 eliminateCallFramePseudoInstr( MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator MI) const eliminateCallFramePseudoInstr() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
H A D | TargetFrameLowering.h | 109 /// certain conditions (e.g. stack was adjusted before function \p MF 111 virtual unsigned getStackAlignmentSkew(const MachineFunction &MF) const; 130 assignCalleeSavedSpillSlots(MachineFunction &MF, in assignCalleeSavedSpillSlots() argument 159 virtual bool enableShrinkWrapping(const MachineFunction &MF) const { in enableShrinkWrapping() 166 virtual bool enableStackSlotScavenging(const MachineFunction &MF) const { in enableStackSlotScavenging() 172 virtual bool enableCalleeSaveSkip(const MachineFunction &MF) const; 176 virtual void emitPrologue(MachineFunction &MF, 178 virtual void emitEpilogue(MachineFunction &MF, 182 virtual void inlineStackProbe(MachineFunction &MF, in inlineStackProbe() argument 187 virtual void adjustForSegmentedStacks(MachineFunction &MF, in adjustForSegmentedStacks() argument 192 adjustForHiPEPrologue(MachineFunction &MF, MachineBasicBlock &PrologueMBB) const adjustForHiPEPrologue() argument 267 getFrameIndexReferencePreferSP(const MachineFunction &MF, int FI, unsigned &FrameReg, bool IgnoreSPUpdates) const getFrameIndexReferencePreferSP() argument 277 getNonLocalFrameIndexReference(const MachineFunction &MF, int FI) const getNonLocalFrameIndexReference() argument 308 processFunctionBeforeFrameFinalized(MachineFunction &MF, RegScavenger *RS = nullptr) const processFunctionBeforeFrameFinalized() argument 323 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator MI) const eliminateCallFramePseudoInstr() argument 338 orderFrameObjects(const MachineFunction &MF, SmallVectorImpl<int> &objectsToAllocate) const orderFrameObjects() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/VE/ |
H A D | VEFrameLowering.cpp | 34 void VEFrameLowering::emitPrologueInsns(MachineFunction &MF, in emitPrologueInsns() argument 42 *static_cast<const VEInstrInfo *>(MF.getSubtarget().getInstrInfo()); in emitPrologueInsns() 72 void VEFrameLowering::emitEpilogueInsns(MachineFunction &MF, in emitEpilogueInsns() argument 80 *static_cast<const VEInstrInfo *>(MF.getSubtarget().getInstrInfo()); in emitEpilogueInsns() 106 void VEFrameLowering::emitSPAdjustment(MachineFunction &MF, in emitSPAdjustment() argument 112 *static_cast<const VEInstrInfo *>(MF.getSubtarget().getInstrInfo()); in emitSPAdjustment() 137 void VEFrameLowering::emitSPExtend(MachineFunction &MF, MachineBasicBlock &MBB, in emitSPExtend() argument 142 *static_cast<const VEInstrInfo *>(MF.getSubtarget().getInstrInfo()); in emitSPExtend() 174 void VEFrameLowering::emitPrologue(MachineFunction &MF, in emitPrologue() argument 176 assert(&MF in emitPrologue() 254 eliminateCallFramePseudoInstr( MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const eliminateCallFramePseudoInstr() argument 269 emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const emitEpilogue() argument 298 getFrameIndexReference(const MachineFunction &MF, int FI, unsigned &FrameReg) const getFrameIndexReference() argument 319 determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs, RegScavenger *RS) const determineCalleeSaves() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
H A D | ARMBaseRegisterInfo.cpp | 65 ARMBaseRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { in getCalleeSavedRegs() 66 const ARMSubtarget &STI = MF->getSubtarget<ARMSubtarget>(); in getCalleeSavedRegs() 67 bool UseSplitPush = STI.splitFramePushPop(*MF); in getCalleeSavedRegs() 73 const Function &F = MF->getFunction(); in getCalleeSavedRegs() 106 return MF->getInfo<ARMFunctionInfo>()->isSplitCSR() in getCalleeSavedRegs() 113 const MachineFunction *MF) const { in getCalleeSavedRegsViaCopy() 114 assert(MF && "Invalid MachineFunction pointer."); in getCalleeSavedRegsViaCopy() 115 if (MF->getFunction().getCallingConv() == CallingConv::CXX_FAST_TLS && in getCalleeSavedRegsViaCopy() 116 MF->getInfo<ARMFunctionInfo>()->isSplitCSR()) in getCalleeSavedRegsViaCopy() 122 ARMBaseRegisterInfo::getCallPreservedMask(const MachineFunction &MF, in getCallPreservedMask() argument 162 getThisReturnPreservedMask(const MachineFunction &MF, CallingConv::ID CC) const getThisReturnPreservedMask() argument 223 isAsmClobberable(const MachineFunction &MF, unsigned PhysReg) const isAsmClobberable() argument 251 getPointerRegClass(const MachineFunction &MF, unsigned Kind) const getPointerRegClass() argument 301 getRegAllocationHints(unsigned VirtReg, ArrayRef<MCPhysReg> Order, SmallVectorImpl<MCPhysReg> &Hints, const MachineFunction &MF, const VirtRegMap *VRM, const LiveRegMatrix *Matrix) const getRegAllocationHints() argument 462 MachineFunction &MF = *MBB.getParent(); emitLoadConstPool() local 582 MachineFunction &MF = *MI->getParent()->getParent(); needsFrameBaseReg() local 642 const MachineFunction &MF = *MBB->getParent(); materializeFrameBaseRegister() local 658 MachineFunction &MF = *MBB.getParent(); resolveFrameIndex() local 754 MachineFunction &MF = *MBB.getParent(); eliminateFrameIndex() local 844 auto MF = MBB->getParent(); shouldCoalesce() local [all...] |
H A D | ARMBaseRegisterInfo.h | 112 const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override; 114 getCalleeSavedRegsViaCopy(const MachineFunction *MF) const; 115 const uint32_t *getCallPreservedMask(const MachineFunction &MF, 118 const uint32_t *getTLSCallPreservedMask(const MachineFunction &MF) const; 119 const uint32_t *getSjLjDispatchPreservedMask(const MachineFunction &MF) const; 129 const uint32_t *getThisReturnPreservedMask(const MachineFunction &MF, 133 getIntraCallClobberedRegs(const MachineFunction *MF) const override; 135 BitVector getReservedRegs(const MachineFunction &MF) const override; 136 bool isAsmClobberable(const MachineFunction &MF, 140 getPointerRegClass(const MachineFunction &MF, [all...] |
H A D | ARMFrameLowering.cpp | 82 bool ARMFrameLowering::keepFramePointer(const MachineFunction &MF) const { in keepFramePointer() 86 return MF.getSubtarget<ARMSubtarget>().useFastISel(); in keepFramePointer() 91 bool ARMFrameLowering::enableCalleeSaveSkip(const MachineFunction &MF) const { in enableCalleeSaveSkip() 92 assert(MF.getFunction().hasFnAttribute(Attribute::NoReturn) && in enableCalleeSaveSkip() 93 MF.getFunction().hasFnAttribute(Attribute::NoUnwind) && in enableCalleeSaveSkip() 94 !MF.getFunction().hasFnAttribute(Attribute::UWTable)); in enableCalleeSaveSkip() 104 bool ARMFrameLowering::hasFP(const MachineFunction &MF) const { in hasFP() 105 const TargetRegisterInfo *RegInfo = MF.getSubtarget().getRegisterInfo(); in hasFP() 106 const MachineFrameInfo &MFI = MF.getFrameInfo(); in hasFP() 109 if (MF in hasFP() 214 WindowsRequiresStackProbe(const MachineFunction &MF, size_t StackSizeInBytes) WindowsRequiresStackProbe() argument 253 MachineFunction &MF = *MBB.getParent(); emitDefCFAOffsets() local 279 emitAligningInstructions(MachineFunction &MF, ARMFunctionInfo *AFI, const TargetInstrInfo &TII, MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, const DebugLoc &DL, const unsigned Reg, const unsigned Alignment, const bool MustBeSingleInstruction) emitAligningInstructions() argument 356 emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const emitPrologue() argument 770 emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const emitEpilogue() argument 882 getFrameIndexReference(const MachineFunction &MF, int FI, unsigned &FrameReg) const getFrameIndexReference() argument 888 ResolveFrameIndexReference(const MachineFunction &MF, int FI, unsigned &FrameReg, int SPAdj) const ResolveFrameIndexReference() argument 978 MachineFunction &MF = *MBB.getParent(); emitPushInst() local 1055 MachineFunction &MF = *MBB.getParent(); emitPopInst() local 1167 MachineFunction &MF = *MBB.getParent(); emitAlignedDPRCS2Spills() local 1340 MachineFunction &MF = *MBB.getParent(); emitAlignedDPRCS2Restores() local 1487 EstimateFunctionSizeInBytes(const MachineFunction &MF, const ARMBaseInstrInfo &TII) EstimateFunctionSizeInBytes() argument 1505 estimateRSStackSizeLimit(MachineFunction &MF, const TargetFrameLowering *TFI, bool &HasNonSPFrameIndex) estimateRSStackSizeLimit() argument 1590 checkNumAlignedDPRCS2Regs(MachineFunction &MF, BitVector &SavedRegs) checkNumAlignedDPRCS2Regs() argument 1633 determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs, RegScavenger *RS) const determineCalleeSaves() argument 2133 getCalleeSaves(const MachineFunction &MF, BitVector &SavedRegs) const getCalleeSaves() argument 2145 eliminateCallFramePseudoInstr( MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const eliminateCallFramePseudoInstr() argument 2245 adjustForSegmentedStacks( MachineFunction &MF, MachineBasicBlock &PrologueMBB) const adjustForSegmentedStacks() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
H A D | X86FrameLowering.h | 53 void emitStackProbe(MachineFunction &MF, MachineBasicBlock &MBB, 58 void inlineStackProbe(MachineFunction &MF, 67 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 68 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 70 void adjustForSegmentedStacks(MachineFunction &MF, 73 void adjustForHiPEPrologue(MachineFunction &MF, 76 void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs, 80 assignCalleeSavedSpillSlots(MachineFunction &MF, 94 bool hasFP(const MachineFunction &MF) const override; 95 bool hasReservedCallFrame(const MachineFunction &MF) cons [all...] |
H A D | X86RetpolineThunks.cpp | 76 void populateThunk(MachineFunction &MF, unsigned Reg); 92 bool X86RetpolineThunks::runOnMachineFunction(MachineFunction &MF) { in runOnMachineFunction() argument 95 TM = &MF.getTarget();; in runOnMachineFunction() 96 STI = &MF.getSubtarget<X86Subtarget>(); in runOnMachineFunction() 105 if (!MF.getName().startswith(ThunkNamePrefix)) { in runOnMachineFunction() 138 assert(MF.getName() == "__llvm_retpoline_r11" && in runOnMachineFunction() 151 populateThunk(MF, X86::R11); in runOnMachineFunction() 180 if (MF.getName() == EAXThunkName) in runOnMachineFunction() 181 populateThunk(MF, X86::EAX); in runOnMachineFunction() 182 else if (MF in runOnMachineFunction() 222 MachineFunction &MF = MMI->getOrCreateMachineFunction(*F); createThunkFunction() local 237 populateThunk(MachineFunction &MF, unsigned Reg) populateThunk() argument [all...] |
H A D | X86RegisterInfo.cpp | 76 X86RegisterInfo::trackLivenessAfterRegAlloc(const MachineFunction &MF) const { in trackLivenessAfterRegAlloc() 113 const MachineFunction &MF) const { in getLargestLegalSuperClass() 125 const X86Subtarget &Subtarget = MF.getSubtarget<X86Subtarget>(); in getLargestLegalSuperClass() 179 X86RegisterInfo::getPointerRegClass(const MachineFunction &MF, in getPointerRegClass() argument 181 const X86Subtarget &Subtarget = MF.getSubtarget<X86Subtarget>(); in getPointerRegClass() 194 const X86FrameLowering *TFI = getFrameLowering(MF); in getPointerRegClass() 195 return TFI->hasFP(MF) && TFI->Uses64BitFramePtr in getPointerRegClass() 215 return getGPRsForTailCall(MF); in getPointerRegClass() 235 X86RegisterInfo::getGPRsForTailCall(const MachineFunction &MF) const { in getGPRsForTailCall() 236 const Function &F = MF in getGPRsForTailCall() 409 getCallPreservedMask(const MachineFunction &MF, CallingConv::ID CC) const getCallPreservedMask() argument 669 hasReservedSpillSlot(const MachineFunction &MF, unsigned Reg, int &FrameIdx) const hasReservedSpillSlot() argument 722 MachineFunction &MF = *MBB.getParent(); eliminateFrameIndex() local [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Sparc/ |
H A D | SparcFrameLowering.cpp | 40 void SparcFrameLowering::emitSPAdjustment(MachineFunction &MF, in emitSPAdjustment() argument 49 *static_cast<const SparcInstrInfo *>(MF.getSubtarget().getInstrInfo()); in emitSPAdjustment() 85 void SparcFrameLowering::emitPrologue(MachineFunction &MF, in emitPrologue() argument 87 SparcMachineFunctionInfo *FuncInfo = MF.getInfo<SparcMachineFunctionInfo>(); in emitPrologue() 89 assert(&MF.front() == &MBB && "Shrink-wrapping not yet supported"); in emitPrologue() 90 MachineFrameInfo &MFI = MF.getFrameInfo(); in emitPrologue() 91 const SparcSubtarget &Subtarget = MF.getSubtarget<SparcSubtarget>(); in emitPrologue() 100 bool NeedsStackRealignment = RegInfo.needsStackRealignment(MF); in emitPrologue() 108 report_fatal_error("Function \"" + Twine(MF.getName()) + "\" required " in emitPrologue() 140 if (MFI.adjustsStack() && hasReservedCallFrame(MF)) in emitPrologue() 205 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const eliminateCallFramePseudoInstr() argument 220 emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const emitEpilogue() argument 262 getFrameIndexReference(const MachineFunction &MF, int FI, unsigned &FrameReg) const getFrameIndexReference() argument 375 determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs, RegScavenger *RS) const determineCalleeSaves() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/ |
H A D | InstructionSelect.cpp | 66 bool InstructionSelect::runOnMachineFunction(MachineFunction &MF) { in runOnMachineFunction() argument 68 if (MF.getProperties().hasProperty( in runOnMachineFunction() 72 LLVM_DEBUG(dbgs() << "Selecting function: " << MF.getName() << '\n'); in runOnMachineFunction() 73 GISelKnownBits &KB = getAnalysis<GISelKnownBitsAnalysis>().get(MF); in runOnMachineFunction() 76 InstructionSelector *ISel = MF.getSubtarget().getInstructionSelector(); in runOnMachineFunction() 79 ISel->setupMF(MF, KB, CoverageInfo); in runOnMachineFunction() 82 MachineOptimizationRemarkEmitter MORE(MF, /*MBFI=*/nullptr); in runOnMachineFunction() 84 // FIXME: There are many other MF/MFI fields we need to initialize. in runOnMachineFunction() 86 MachineRegisterInfo &MRI = MF.getRegInfo(); in runOnMachineFunction() 93 if (const MachineInstr *MI = machineFunctionIsIllegal(MF)) { in runOnMachineFunction() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/MSP430/ |
H A D | MSP430FrameLowering.cpp | 28 bool MSP430FrameLowering::hasFP(const MachineFunction &MF) const { in hasFP() 29 const MachineFrameInfo &MFI = MF.getFrameInfo(); in hasFP() 31 return (MF.getTarget().Options.DisableFramePointerElim(MF) || in hasFP() 32 MF.getFrameInfo().hasVarSizedObjects() || in hasFP() 36 bool MSP430FrameLowering::hasReservedCallFrame(const MachineFunction &MF) const { in hasReservedCallFrame() 37 return !MF.getFrameInfo().hasVarSizedObjects(); in hasReservedCallFrame() 40 void MSP430FrameLowering::emitPrologue(MachineFunction &MF, in emitPrologue() argument 42 assert(&MF.front() == &MBB && "Shrink-wrapping not yet supported"); in emitPrologue() 43 MachineFrameInfo &MFI = MF in emitPrologue() 106 emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const emitEpilogue() argument 190 MachineFunction &MF = *MBB.getParent(); spillCalleeSavedRegisters() local 216 MachineFunction &MF = *MBB.getParent(); restoreCalleeSavedRegisters() local 225 eliminateCallFramePseudoInstr( MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const eliminateCallFramePseudoInstr() argument 290 processFunctionBeforeFrameFinalized(MachineFunction &MF, RegScavenger *) const processFunctionBeforeFrameFinalized() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/ |
H A D | MipsRegisterInfo.cpp | 47 MipsRegisterInfo::getPointerRegClass(const MachineFunction &MF, in getPointerRegClass() argument 49 MipsABIInfo ABI = MF.getSubtarget<MipsSubtarget>().getABI(); in getPointerRegClass() 68 MachineFunction &MF) const { in getRegPressureLimit() 75 const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering(); in getRegPressureLimit() 76 return 28 - TFI->hasFP(MF); in getRegPressureLimit() 93 MipsRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { in getCalleeSavedRegs() 94 const MipsSubtarget &Subtarget = MF->getSubtarget<MipsSubtarget>(); in getCalleeSavedRegs() 95 const Function &F = MF->getFunction(); in getCalleeSavedRegs() 124 MipsRegisterInfo::getCallPreservedMask(const MachineFunction &MF, in getCallPreservedMask() argument 126 const MipsSubtarget &Subtarget = MF in getCallPreservedMask() 260 MachineFunction &MF = *MI.getParent()->getParent(); eliminateFrameIndex() local [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
H A D | SIFrameLowering.cpp | 28 const MachineFunction &MF) { in getAllSGPR128() 30 ST.getMaxNumSGPRs(MF) / 4); in getAllSGPR128() 34 const MachineFunction &MF) { in getAllSGPRs() 36 ST.getMaxNumSGPRs(MF)); in getAllSGPRs() 96 MachineFunction *MF = MBB.getParent(); in buildPrologSpill() local 97 MachineFrameInfo &MFI = MF->getFrameInfo(); in buildPrologSpill() 101 MachineMemOperand *MMO = MF->getMachineMemOperand( in buildPrologSpill() 102 MachinePointerInfo::getFixedStack(*MF, FI), MachineMemOperand::MOStore, 4, in buildPrologSpill() 121 MF->getRegInfo(), LiveRegs, AMDGPU::VGPR_32RegClass); in buildPrologSpill() 144 MachineFunction *MF in buildEpilogReload() local 27 getAllSGPR128(const GCNSubtarget &ST, const MachineFunction &MF) getAllSGPR128() argument 33 getAllSGPRs(const GCNSubtarget &ST, const MachineFunction &MF) getAllSGPRs() argument 187 emitFlatScratchInit(const GCNSubtarget &ST, MachineFunction &MF, MachineBasicBlock &MBB) const emitFlatScratchInit() argument 392 emitEntryFunctionPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const emitEntryFunctionPrologue() argument 533 emitEntryFunctionScratchSetup(const GCNSubtarget &ST, MachineFunction &MF, MachineBasicBlock &MBB, SIMachineFunctionInfo *MFI, MachineBasicBlock::iterator I, unsigned PreloadedPrivateBufferReg, unsigned ScratchRsrcReg) const emitEntryFunctionScratchSetup() argument 676 emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const emitPrologue() argument 822 emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const emitEpilogue() argument 937 getFrameIndexReference(const MachineFunction &MF, int FI, unsigned &FrameReg) const getFrameIndexReference() argument 945 processFunctionBeforeFrameFinalized( MachineFunction &MF, RegScavenger *RS) const processFunctionBeforeFrameFinalized() argument 979 determineCalleeSaves(MachineFunction &MF, BitVector &SavedVGPRs, RegScavenger *RS) const determineCalleeSaves() argument 1054 determineCalleeSavesSGPR(MachineFunction &MF, BitVector &SavedRegs, RegScavenger *RS) const determineCalleeSavesSGPR() argument 1070 assignCalleeSavedSpillSlots( MachineFunction &MF, const TargetRegisterInfo *TRI, std::vector<CalleeSavedInfo> &CSI) const assignCalleeSavedSpillSlots() argument 1091 eliminateCallFramePseudoInstr( MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const eliminateCallFramePseudoInstr() argument [all...] |
H A D | SILowerSGPRSpills.cpp | 64 void calculateSaveRestoreBlocks(MachineFunction &MF); 65 bool spillCalleeSavedRegs(MachineFunction &MF); 67 bool runOnMachineFunction(MachineFunction &MF) override; 91 MachineFunction &MF = *SaveBlock.getParent(); in insertCSRSaves() local 92 const TargetInstrInfo &TII = *MF.getSubtarget().getInstrInfo(); in insertCSRSaves() 93 const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering(); in insertCSRSaves() 94 const TargetRegisterInfo *TRI = MF.getSubtarget().getRegisterInfo(); in insertCSRSaves() 123 MachineFunction &MF = *RestoreBlock.getParent(); in insertCSRRestores() local 124 const TargetInstrInfo &TII = *MF.getSubtarget().getInstrInfo(); in insertCSRRestores() 125 const TargetFrameLowering *TFI = MF in insertCSRRestores() 155 calculateSaveRestoreBlocks(MachineFunction &MF) calculateSaveRestoreBlocks() argument 185 spillCalleeSavedRegs(MachineFunction &MF) spillCalleeSavedRegs() argument 231 runOnMachineFunction(MachineFunction &MF) runOnMachineFunction() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/ |
H A D | NVPTXReplaceImageHandles.cpp | 37 bool runOnMachineFunction(MachineFunction &MF) override; 44 void replaceImageHandle(MachineOperand &Op, MachineFunction &MF); 45 bool findIndexForHandle(MachineOperand &Op, MachineFunction &MF, 55 bool NVPTXReplaceImageHandles::runOnMachineFunction(MachineFunction &MF) { in runOnMachineFunction() argument 59 for (MachineFunction::iterator BI = MF.begin(), BE = MF.end(); BI != BE; in runOnMachineFunction() 80 MachineFunction &MF = *MI.getParent()->getParent(); in processInstr() local 87 replaceImageHandle(TexHandle, MF); in processInstr() 91 replaceImageHandle(SampHandle, MF); in processInstr() 102 replaceImageHandle(SurfHandle, MF); in processInstr() 125 replaceImageHandle(MachineOperand &Op, MachineFunction &MF) replaceImageHandle() argument 133 findIndexForHandle(MachineOperand &Op, MachineFunction &MF, unsigned &Idx) findIndexForHandle() argument [all...] |