Home
last modified time | relevance | path

Searched refs:FrameIdx (Results 1 – 25 of 50) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DLocalStackSlotAllocation.cpp53 int FrameIdx; // The frame index member in __anon0ab810130111::FrameRef
65 return std::tie(LocalOffset, FrameIdx, Order) < in operator <()
71 int getFrameIndex() const { return FrameIdx; } in getFrameIndex()
147 Offset += MFI.getObjectSize(FrameIdx); in AdjustStackOffset()
149 Align Alignment = MFI.getObjectAlign(FrameIdx); in AdjustStackOffset()
162 LocalOffsets[FrameIdx] = LocalOffset; in AdjustStackOffset()
164 MFI.mapLocalFrameObject(FrameIdx, LocalOffset); in AdjustStackOffset()
167 Offset += MFI.getObjectSize(FrameIdx); in AdjustStackOffset()
353 int FrameIdx = FR.getFrameIndex(); in insertFrameReferenceRegisters() local
354 assert(MFI.isObjectPreAllocated(FrameIdx) && in insertFrameReferenceRegisters()
[all …]
H A DPrologEpilogInserter.cpp498 int FrameIdx; in assignCalleeSavedSpillSlots() local
500 CS.setFrameIdx(FrameIdx); in assignCalleeSavedSpillSlots()
520 if ((unsigned)FrameIdx < MinCSFrameIndex) MinCSFrameIndex = FrameIdx; in assignCalleeSavedSpillSlots()
521 if ((unsigned)FrameIdx > MaxCSFrameIndex) MaxCSFrameIndex = FrameIdx; in assignCalleeSavedSpillSlots()
527 CS.setFrameIdx(FrameIdx); in assignCalleeSavedSpillSlots()
714 Offset += MFI.getObjectSize(FrameIdx); in AdjustStackOffset()
732 MFI.setObjectOffset(FrameIdx, Offset); in AdjustStackOffset()
733 Offset += MFI.getObjectSize(FrameIdx); in AdjustStackOffset()
831 MFI.setObjectOffset(FrameIdx, ObjStart); in scavengeStackSlot()
835 MFI.setObjectOffset(FrameIdx, FreeStart); in scavengeStackSlot()
[all …]
H A DStackFrameLayoutAnalysisPass.cpp227 int FrameIdx = FI->getFrameIndex(); in genSlotDbgMapping() local
232 SlotDebugMap[FrameIdx].insert(MI->getDebugVariable()); in genSlotDbgMapping()
H A DMIRPrinter.cpp465 const int FrameIdx = CSInfo.getFrameIdx(); in convertStackObjects() local
466 if (!CSInfo.isSpilledToReg() && MFI.isDeadObjectIndex(FrameIdx)) in convertStackObjects()
472 assert(FrameIdx >= MFI.getObjectIndexBegin() && in convertStackObjects()
473 FrameIdx < MFI.getObjectIndexEnd() && in convertStackObjects()
475 if (FrameIdx < 0) { // Negative index means fixed objects. in convertStackObjects()
478 [FixedStackObjectsIdx[FrameIdx + MFI.getNumFixedObjects()]]; in convertStackObjects()
482 auto &Object = YMF.StackObjects[StackObjectsIdx[FrameIdx]]; in convertStackObjects()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/MSP430/
H A DMSP430InstrInfo.cpp38 bool isKill, int FrameIdx, const TargetRegisterClass *RC, in storeRegToStackSlot() argument
46 MachinePointerInfo::getFixedStack(MF, FrameIdx), in storeRegToStackSlot()
47 MachineMemOperand::MOStore, MFI.getObjectSize(FrameIdx), in storeRegToStackSlot()
48 MFI.getObjectAlign(FrameIdx)); in storeRegToStackSlot()
52 .addFrameIndex(FrameIdx).addImm(0) in storeRegToStackSlot()
56 .addFrameIndex(FrameIdx).addImm(0) in storeRegToStackSlot()
74 MachinePointerInfo::getFixedStack(MF, FrameIdx), in loadRegFromStackSlot()
75 MachineMemOperand::MOLoad, MFI.getObjectSize(FrameIdx), in loadRegFromStackSlot()
76 MFI.getObjectAlign(FrameIdx)); in loadRegFromStackSlot()
80 .addReg(DestReg, getDefRegState(true)).addFrameIndex(FrameIdx) in loadRegFromStackSlot()
[all …]
H A DMSP430InstrInfo.h50 int FrameIdx, const TargetRegisterClass *RC,
H A DMSP430FrameLowering.cpp432 int FrameIdx = MF.getFrameInfo().CreateFixedObject(2, -4, true); in processFunctionBeforeFrameFinalized() local
433 (void)FrameIdx; in processFunctionBeforeFrameFinalized()
434 assert(FrameIdx == MF.getFrameInfo().getObjectIndexBegin() && in processFunctionBeforeFrameFinalized()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXPrologEpilogPass.cpp111 static inline void AdjustStackOffset(MachineFrameInfo &MFI, int FrameIdx, in AdjustStackOffset() argument
116 Offset += MFI.getObjectSize(FrameIdx); in AdjustStackOffset()
118 Align Alignment = MFI.getObjectAlign(FrameIdx); in AdjustStackOffset()
128 LLVM_DEBUG(dbgs() << "alloc FI(" << FrameIdx << ") at SP[" << -Offset in AdjustStackOffset()
130 MFI.setObjectOffset(FrameIdx, -Offset); // Set the computed offset in AdjustStackOffset()
132 LLVM_DEBUG(dbgs() << "alloc FI(" << FrameIdx << ") at SP[" << Offset in AdjustStackOffset()
134 MFI.setObjectOffset(FrameIdx, Offset); in AdjustStackOffset()
135 Offset += MFI.getObjectSize(FrameIdx); in AdjustStackOffset()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64MachineFunctionInfo.h307 int FrameIdx = Info.getFrameIdx(); in getCalleeSavedStackSize() local
308 if (MFI.getStackID(FrameIdx) != TargetStackID::Default) in getCalleeSavedStackSize()
310 int64_t Offset = MFI.getObjectOffset(FrameIdx); in getCalleeSavedStackSize()
311 int64_t ObjSize = MFI.getObjectSize(FrameIdx); in getCalleeSavedStackSize()
H A DAArch64FrameLowering.cpp2755 int FrameIdx; member
2894 RPI.FrameIdx = CSI[i].getFrameIdx(); in computeCalleeSaveRegisterPairs()
3060 unsigned FrameIdxReg1 = RPI.FrameIdx; in spillCalleeSavedRegisters()
3162 unsigned FrameIdxReg1 = RPI.FrameIdx; in restoreCalleeSavedRegisters()
3462 if ((unsigned)FrameIdx < MinCSFrameIndex) MinCSFrameIndex = FrameIdx; in assignCalleeSavedSpillSlots()
3463 if ((unsigned)FrameIdx > MaxCSFrameIndex) MaxCSFrameIndex = FrameIdx; in assignCalleeSavedSpillSlots()
3473 CS.setFrameIdx(FrameIdx); in assignCalleeSavedSpillSlots()
3475 if ((unsigned)FrameIdx < MinCSFrameIndex) MinCSFrameIndex = FrameIdx; in assignCalleeSavedSpillSlots()
3476 if ((unsigned)FrameIdx > MaxCSFrameIndex) MaxCSFrameIndex = FrameIdx; in assignCalleeSavedSpillSlots()
3483 if ((unsigned)FrameIdx < MinCSFrameIndex) MinCSFrameIndex = FrameIdx; in assignCalleeSavedSpillSlots()
[all …]
H A DAArch64RegisterInfo.h115 Register materializeFrameBaseRegister(MachineBasicBlock *MBB, int FrameIdx,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVRegisterInfo.h39 int &FrameIdx) const override;
61 Register materializeFrameBaseRegister(MachineBasicBlock *MBB, int FrameIdx,
H A DRISCVFrameLowering.cpp582 int FrameIdx = Entry.getFrameIdx(); in emitPrologue() local
586 if (FrameIdx < 0) { in emitPrologue()
589 Offset = -(FrameIdx + RVFI->getRVPushRegs() + 1) * in emitPrologue()
592 Offset = FrameIdx * (int64_t)STI.getXLen() / 8; in emitPrologue()
595 Offset = MFI.getObjectOffset(FrameIdx) - RVFI->getReservedSpillsSize(); in emitPrologue()
1246 int FrameIdx = Info.getFrameIdx(); in processFunctionBeforeFrameFinalized() local
1247 if (MFI.getStackID(FrameIdx) != TargetStackID::Default) in processFunctionBeforeFrameFinalized()
1250 Size += MFI.getObjectSize(FrameIdx); in processFunctionBeforeFrameFinalized()
H A DRISCVRegisterInfo.cpp176 int &FrameIdx) const { in hasReservedSpillSlot()
186 FrameIdx = FII->second; in hasReservedSpillSlot()
624 int FrameIdx, in materializeFrameBaseRegister() argument
636 .addFrameIndex(FrameIdx) in materializeFrameBaseRegister()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineFrameInfo.h37 int FrameIdx; member
58 explicit CalleeSavedInfo(unsigned R, int FI = 0) : Reg(R), FrameIdx(FI) {} in Reg()
62 int getFrameIdx() const { return FrameIdx; } in getFrameIdx()
65 FrameIdx = FI; in setFrameIdx()
H A DTargetRegisterInfo.h971 int &FrameIdx) const { in hasReservedSpillSlot() argument
1010 int FrameIdx, in materializeFrameBaseRegister() argument
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSDNodeDbgValue.h74 static SDDbgOperand fromFrameIdx(unsigned FrameIdx) { in fromFrameIdx() argument
75 return SDDbgOperand(FrameIdx, FRAMEIX); in fromFrameIdx()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCRegisterInfo.h154 int &FrameIdx) const override;
161 Register materializeFrameBaseRegister(MachineBasicBlock *MBB, int FrameIdx,
H A DPPCInstrInfo.cpp1923 FrameIdx)); in StoreRegToStackSlot()
1935 bool isKill, int FrameIdx, const TargetRegisterClass *RC, in storeRegToStackSlotNoUpd() argument
1947 MachinePointerInfo::getFixedStack(MF, FrameIdx), in storeRegToStackSlotNoUpd()
1948 MachineMemOperand::MOStore, MFI.getObjectSize(FrameIdx), in storeRegToStackSlotNoUpd()
1949 MFI.getObjectAlign(FrameIdx)); in storeRegToStackSlotNoUpd()
1955 bool isKill, int FrameIdx, const TargetRegisterClass *RC, in storeRegToStackSlot() argument
1975 FrameIdx)); in LoadRegFromStackSlot()
1980 int FrameIdx, const TargetRegisterClass *RC, in loadRegFromStackSlotNoUpd() argument
1994 MachinePointerInfo::getFixedStack(MF, FrameIdx), in loadRegFromStackSlotNoUpd()
1995 MachineMemOperand::MOLoad, MFI.getObjectSize(FrameIdx), in loadRegFromStackSlotNoUpd()
[all …]
H A DPPCInstrInfo.h170 int FrameIdx, const TargetRegisterClass *RC,
173 unsigned DestReg, int FrameIdx,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZFrameLowering.cpp197 int FrameIdx = MFFrame.CreateFixedSpillStackObject(8, Offset); in assignCalleeSavedSpillSlots() local
198 CS.setFrameIdx(FrameIdx); in assignCalleeSavedSpillSlots()
235 int FrameIdx = MFFrame.CreateFixedSpillStackObject(Size, CurrOffset); in assignCalleeSavedSpillSlots() local
236 CS.setFrameIdx(FrameIdx); in assignCalleeSavedSpillSlots()
1035 int FrameIdx = MFFrame.CreateFixedSpillStackObject(RegSize, Offset); in assignCalleeSavedSpillSlots() local
1036 CS.setFrameIdx(FrameIdx); in assignCalleeSavedSpillSlots()
1037 MFFrame.setStackID(FrameIdx, TargetStackID::NoAlloc); in assignCalleeSavedSpillSlots()
1045 int FrameIdx = MFFrame.CreateStackObject(Size, Alignment, true); in assignCalleeSavedSpillSlots() local
1046 CS.setFrameIdx(FrameIdx); in assignCalleeSavedSpillSlots()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp47 int FrameIdx = MI->getOperand(1).getIndex(); in computeKnownAlignment() local
48 return MF.getFrameInfo().getObjectAlign(FrameIdx); in computeKnownAlignment()
263 int FrameIdx = MI.getOperand(1).getIndex(); in computeKnownBitsImpl() local
264 TL.computeKnownBitsForFrameIndex(FrameIdx, Known, MF); in computeKnownBitsImpl()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMIRParser.cpp130 bool IsRestored, int FrameIdx);
145 int FrameIdx);
890 const yaml::StringValue &RegisterSource, bool IsRestored, int FrameIdx) { in parseCalleeSavedRegister() argument
897 CalleeSavedInfo CSI(Reg, FrameIdx); in parseCalleeSavedRegister()
939 const T &Object, int FrameIdx) { in parseStackObjectsDebugInfo() argument
947 PFS.MF.setVariableDbgInfo(MaybeInfo->DIVar, MaybeInfo->DIExpr, FrameIdx, in parseStackObjectsDebugInfo()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FastPreTileConfig.cpp129 int FrameIdx = MFI->CreateSpillStackObject(Size, Alignment); in getStackSpaceFor() local
132 StackSlotForVirtReg[VirtReg] = FrameIdx; in getStackSpaceFor()
133 return FrameIdx; in getStackSpaceFor()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMBaseRegisterInfo.h195 Register materializeFrameBaseRegister(MachineBasicBlock *MBB, int FrameIdx,

12