Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DLocalStackSlotAllocation.cpp54 int FrameIdx; // The frame index member in __anon7165d95d0111::FrameRef
63 MI(I), LocalOffset(Offset), FrameIdx(Idx), Order(Ord) {} in FrameRef()
66 return std::tie(LocalOffset, FrameIdx, Order) < in operator <()
67 std::tie(RHS.LocalOffset, RHS.FrameIdx, RHS.Order); in operator <()
72 int getFrameIndex() const { return FrameIdx; } in getFrameIndex()
81 void AdjustStackOffset(MachineFrameInfo &MFI, int FrameIdx, int64_t &Offset,
161 void LocalStackSlotImpl::AdjustStackOffset(MachineFrameInfo &MFI, int FrameIdx, in AdjustStackOffset() argument
166 Offset += MFI.getObjectSize(FrameIdx); in AdjustStackOffset()
168 Align Alignment = MFI.getObjectAlign(FrameIdx); in AdjustStackOffset()
178 LLVM_DEBUG(dbgs() << "Allocate FI(" << FrameIdx << ") to local offset " in AdjustStackOffset()
[all …]
H A DPrologEpilogInserter.cpp485 int FrameIdx; in assignCalleeSavedSpillSlots() local
486 if (RegInfo->hasReservedSpillSlot(F, Reg, FrameIdx)) { in assignCalleeSavedSpillSlots()
487 CS.setFrameIdx(FrameIdx); in assignCalleeSavedSpillSlots()
506 FrameIdx = MFI.CreateStackObject(Size, Alignment, true); in assignCalleeSavedSpillSlots()
507 if ((unsigned)FrameIdx < MinCSFrameIndex) MinCSFrameIndex = FrameIdx; in assignCalleeSavedSpillSlots()
508 if ((unsigned)FrameIdx > MaxCSFrameIndex) MaxCSFrameIndex = FrameIdx; in assignCalleeSavedSpillSlots()
511 FrameIdx = MFI.CreateFixedSpillStackObject(Size, FixedSlot->Offset); in assignCalleeSavedSpillSlots()
514 CS.setFrameIdx(FrameIdx); in assignCalleeSavedSpillSlots()
696 static inline void AdjustStackOffset(MachineFrameInfo &MFI, int FrameIdx, in AdjustStackOffset() argument
701 Offset += MFI.getObjectSize(FrameIdx); in AdjustStackOffset()
[all …]
H A DStackFrameLayoutAnalysisPass.cpp206 const TargetFrameLowering *FI, int FrameIdx) { in getStackOffset()
208 return StackOffset::getFixed(MFI.getObjectOffset(FrameIdx)); in getStackOffset()
210 return FI->getFrameIndexReferenceFromSP(MF, FrameIdx); in getStackOffset()
269 int FrameIdx = FI->getFrameIndex(); in genSlotDbgMapping() local
274 SlotDebugMap[FrameIdx].insert(MI->getDebugVariable()); in genSlotDbgMapping()
H A DMIRPrinter.cpp468 const int FrameIdx = CSInfo.getFrameIdx(); in convertStackObjects() local
469 if (!CSInfo.isSpilledToReg() && MFI.isDeadObjectIndex(FrameIdx)) in convertStackObjects()
475 assert(FrameIdx >= MFI.getObjectIndexBegin() && in convertStackObjects()
476 FrameIdx < MFI.getObjectIndexEnd() && in convertStackObjects()
478 if (FrameIdx < 0) { // Negative index means fixed objects. in convertStackObjects()
481 [FixedStackObjectsIdx[FrameIdx + MFI.getNumFixedObjects()]]; in convertStackObjects()
485 auto &Object = YMF.StackObjects[StackObjectsIdx[FrameIdx]]; in convertStackObjects()
/freebsd/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()
64 Register DestReg, int FrameIdx, in loadRegFromStackSlot() argument
74 MachinePointerInfo::getFixedStack(MF, FrameIdx), in loadRegFromStackSlot()
75 MachineMemOperand::MOLoad, MFI.getObjectSize(FrameIdx), in loadRegFromStackSlot()
76 MFI.getObjectAlign(FrameIdx)); in loadRegFromStackSlot()
[all …]
H A DMSP430FrameLowering.cpp431 int FrameIdx = MF.getFrameInfo().CreateFixedObject(2, -4, true); in processFunctionBeforeFrameFinalized() local
432 (void)FrameIdx; in processFunctionBeforeFrameFinalized()
433 assert(FrameIdx == MF.getFrameInfo().getObjectIndexBegin() && in processFunctionBeforeFrameFinalized()
H A DMSP430InstrInfo.h50 int FrameIdx, const TargetRegisterClass *RC,
/freebsd/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/contrib/llvm-project/llvm/lib/Target/Xtensa/
H A DXtensaInstrInfo.cpp121 bool isKill, int FrameIdx, const TargetRegisterClass *RC, in storeRegToStackSlot() argument
125 getLoadStoreOpcodes(RC, LoadOpcode, StoreOpcode, FrameIdx); in storeRegToStackSlot()
128 addFrameReference(MIB, FrameIdx); in storeRegToStackSlot()
133 Register DestReg, int FrameIdx, in loadRegFromStackSlot() argument
139 getLoadStoreOpcodes(RC, LoadOpcode, StoreOpcode, FrameIdx); in loadRegFromStackSlot()
140 addFrameReference(BuildMI(MBB, MBBI, DL, get(LoadOpcode), DestReg), FrameIdx); in loadRegFromStackSlot()
H A DXtensaInstrInfo.h63 int FrameIdx, const TargetRegisterClass *RC,
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64MachineFunctionInfo.h257 void setStreamingVGIdx(unsigned FrameIdx) { StreamingVGIdx = FrameIdx; }; in setStreamingVGIdx() argument
339 int FrameIdx = Info.getFrameIdx(); in getCalleeSavedStackSize() local
340 if (MFI.getStackID(FrameIdx) != TargetStackID::Default) in getCalleeSavedStackSize()
342 int64_t Offset = MFI.getObjectOffset(FrameIdx); in getCalleeSavedStackSize()
343 int64_t ObjSize = MFI.getObjectSize(FrameIdx); in getCalleeSavedStackSize()
H A DAArch64FrameLowering.cpp608 unsigned FrameIdx = Info.getFrameIdx(); in emitCalleeSavedGPRLocations() local
609 if (MFI.getStackID(FrameIdx) == TargetStackID::ScalableVector) in emitCalleeSavedGPRLocations()
614 int64_t Offset = MFI.getObjectOffset(FrameIdx) - getOffsetOfLocalArea(); in emitCalleeSavedGPRLocations()
619 if ((LocallyStreaming && FrameIdx == AFI->getStreamingVGIdx()) || in emitCalleeSavedGPRLocations()
2915 int FrameIdx; member
3071 RPI.FrameIdx = CSI[i].getFrameIdx(); in computeCalleeSaveRegisterPairs()
3074 RPI.FrameIdx = CSI[i + RegInc].getFrameIdx(); in computeCalleeSaveRegisterPairs()
3098 assert(MFI.getObjectAlign(RPI.FrameIdx) <= Align(16)); in computeCalleeSaveRegisterPairs()
3102 MFI.setObjectAlignment(RPI.FrameIdx, Align(16)); in computeCalleeSaveRegisterPairs()
3254 AFI->setStreamingVGIdx(RPI.FrameIdx); in spillCalleeSavedRegisters()
[all …]
H A DAArch64RegisterInfo.h115 Register materializeFrameBaseRegister(MachineBasicBlock *MBB, int FrameIdx,
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVFrameLowering.cpp647 int FrameIdx = Entry.getFrameIdx(); in emitPrologue() local
648 if (FrameIdx >= 0 && in emitPrologue()
649 MFI.getStackID(FrameIdx) == TargetStackID::ScalableVector) in emitPrologue()
652 int64_t Offset = MFI.getObjectOffset(FrameIdx); in emitPrologue()
1270 int FrameIdx = Info.getFrameIdx(); in processFunctionBeforeFrameFinalized() local
1271 if (FrameIdx < 0 || MFI.getStackID(FrameIdx) != TargetStackID::Default) in processFunctionBeforeFrameFinalized()
1274 Size += MFI.getObjectSize(FrameIdx); in processFunctionBeforeFrameFinalized()
1440 int FrameIdx = MFI.CreateFixedSpillStackObject(Size, Offset); in assignCalleeSavedSpillSlots() local
1441 assert(FrameIdx < 0); in assignCalleeSavedSpillSlots()
1442 CS.setFrameIdx(FrameIdx); in assignCalleeSavedSpillSlots()
[all …]
H A DRISCVRegisterInfo.h91 Register materializeFrameBaseRegister(MachineBasicBlock *MBB, int FrameIdx,
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZFrameLowering.cpp184 int FrameIdx = in assignCalleeSavedSpillSlots() local
186 CS.setFrameIdx(FrameIdx); in assignCalleeSavedSpillSlots()
223 int FrameIdx = MFFrame.CreateFixedSpillStackObject(Size, CurrOffset); in assignCalleeSavedSpillSlots() local
224 CS.setFrameIdx(FrameIdx); in assignCalleeSavedSpillSlots()
1037 int FrameIdx = in assignCalleeSavedSpillSlots() local
1041 CS.setFrameIdx(FrameIdx); in assignCalleeSavedSpillSlots()
1042 MFFrame.setStackID(FrameIdx, TargetStackID::NoAlloc); in assignCalleeSavedSpillSlots()
1050 int FrameIdx = MFFrame.CreateStackObject(Size, Alignment, true); in assignCalleeSavedSpillSlots() local
1051 CS.setFrameIdx(FrameIdx); in assignCalleeSavedSpillSlots()
1520 for (int FrameIdx = MFFrame.getObjectIndexBegin(); FrameIdx != 0; in determineFrameLayout() local
[all …]
/freebsd/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.h998 int &FrameIdx) const { in hasReservedSpillSlot() argument
1037 int FrameIdx, in materializeFrameBaseRegister() argument
/freebsd/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/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.cpp1927 MachineFunction &MF, unsigned SrcReg, bool isKill, int FrameIdx, in StoreRegToStackSlot() argument
1938 FrameIdx)); in StoreRegToStackSlot()
1950 bool isKill, int FrameIdx, const TargetRegisterClass *RC, in storeRegToStackSlotNoUpd() argument
1955 StoreRegToStackSlot(MF, SrcReg, isKill, FrameIdx, RC, NewMIs); in storeRegToStackSlotNoUpd()
1962 MachinePointerInfo::getFixedStack(MF, FrameIdx), in storeRegToStackSlotNoUpd()
1963 MachineMemOperand::MOStore, MFI.getObjectSize(FrameIdx), in storeRegToStackSlotNoUpd()
1964 MFI.getObjectAlign(FrameIdx)); in storeRegToStackSlotNoUpd()
1970 bool isKill, int FrameIdx, const TargetRegisterClass *RC, in storeRegToStackSlot() argument
1980 storeRegToStackSlotNoUpd(MBB, MI, SrcReg, isKill, FrameIdx, RC, TRI); in storeRegToStackSlot()
1984 unsigned DestReg, int FrameIdx, in LoadRegFromStackSlot() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMIRParser.cpp133 bool IsRestored, int FrameIdx);
148 int FrameIdx);
910 const yaml::StringValue &RegisterSource, bool IsRestored, int FrameIdx) { in parseCalleeSavedRegister() argument
917 CalleeSavedInfo CSI(Reg, FrameIdx); in parseCalleeSavedRegister()
959 const T &Object, int FrameIdx) { in parseStackObjectsDebugInfo() argument
967 PFS.MF.setVariableDbgInfo(MaybeInfo->DIVar, MaybeInfo->DIExpr, FrameIdx, in parseStackObjectsDebugInfo()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp49 int FrameIdx = MI->getOperand(1).getIndex(); in computeKnownAlignment() local
50 return MF.getFrameInfo().getObjectAlign(FrameIdx); in computeKnownAlignment()
265 int FrameIdx = MI.getOperand(1).getIndex(); in computeKnownBitsImpl() local
266 TL.computeKnownBitsForFrameIndex(FrameIdx, Known, MF); in computeKnownBitsImpl()
/freebsd/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/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMBaseRegisterInfo.h195 Register materializeFrameBaseRegister(MachineBasicBlock *MBB, int FrameIdx,

123