Home
last modified time | relevance | path

Searched refs:StackSize (Results 1 – 25 of 67) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/
H A DXtensaFrameLowering.cpp47 uint64_t StackSize = MFI.getStackSize(); in emitPrologue() local
48 uint64_t PrevStackSize = StackSize; in emitPrologue()
51 StackSize += (16 - StackSize) & 0xf; in emitPrologue()
54 if (StackSize == 0 && !MFI.adjustsStack()) in emitPrologue()
58 TII.adjustStackPtr(SP, -StackSize, MBB, MBBI); in emitPrologue()
62 MF.addFrameInst(MCCFIInstruction::cfiDefCfaOffset(nullptr, StackSize)); in emitPrologue()
124 if (StackSize != PrevStackSize) { in emitPrologue()
125 MFI.setStackSize(StackSize); in emitPrologue()
132 MFI.setObjectOffset(i, SPOffset - StackSize + PrevStackSize); in emitPrologue()
184 uint64_t StackSize = MFI.getStackSize(); in emitEpilogue() local
[all …]
H A DXtensaRegisterInfo.cpp67 uint64_t StackSize = MF.getFrameInfo().getStackSize(); in eliminateFrameIndex() local
100 SPOffset + (int64_t)StackSize + MI.getOperand(FIOperandNum + 1).getImm(); in eliminateFrameIndex()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchFrameLowering.cpp203 uint64_t StackSize = MFI.getStackSize(); in emitPrologue() local
204 uint64_t RealStackSize = StackSize; in emitPrologue()
207 if (StackSize == 0 && !MFI.adjustsStack()) in emitPrologue()
213 StackSize = FirstSPAdjustAmount; in emitPrologue()
216 adjustReg(MBB, MBBI, DL, SPReg, SPReg, -StackSize, MachineInstr::FrameSetup); in emitPrologue()
219 MF.addFrameInst(MCCFIInstruction::cfiDefCfaOffset(nullptr, StackSize)); in emitPrologue()
246 StackSize - LoongArchFI->getVarArgsSaveSize(), in emitPrologue()
326 uint64_t StackSize = MFI.getStackSize(); in emitEpilogue() local
332 -StackSize + LoongArchFI->getVarArgsSaveSize(), in emitEpilogue()
338 uint64_t SecondSPAdjustAmount = StackSize - FirstSPAdjustAmount; in emitEpilogue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMips16FrameLowering.cpp52 uint64_t StackSize = MFI.getStackSize(); in emitPrologue() local
55 if (StackSize == 0 && !MFI.adjustsStack()) return; in emitPrologue()
60 TII.makeFrame(Mips::SP, StackSize, MBB, MBBI); in emitPrologue()
64 MF.addFrameInst(MCCFIInstruction::cfiDefCfaOffset(nullptr, StackSize)); in emitPrologue()
95 uint64_t StackSize = MFI.getStackSize(); in emitEpilogue() local
97 if (!StackSize) in emitEpilogue()
106 TII.restoreFrame(Mips::SP, StackSize, MBB, MBBI); in emitEpilogue()
H A DMips16RegisterInfo.cpp75 uint64_t StackSize, in eliminateFI() argument
124 Offset = SPOffset + (int64_t)StackSize; in eliminateFI()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZFrameLowering.cpp442 uint64_t StackSize = (MFFrame.estimateStackSize(MF) + in processFunctionBeforeFrameFinalized() local
454 uint64_t MaxReach = StackSize + MaxArgOffset; in processFunctionBeforeFrameFinalized()
586 uint64_t StackSize = MFFrame.getStackSize(); in emitPrologue() local
597 StackSize += SystemZMC::ELFCallFrameSize; in emitPrologue()
599 StackSize = StackSize > SystemZMC::ELFCallFrameSize in emitPrologue()
600 ? StackSize - SystemZMC::ELFCallFrameSize in emitPrologue()
602 MFFrame.setStackSize(StackSize); in emitPrologue()
604 if (StackSize) { in emitPrologue()
606 int64_t Delta = -int64_t(StackSize); in emitPrologue()
609 (ZFI->getSpillGPRRegs().GPROffset + StackSize) < ProbeSize); in emitPrologue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARC/
H A DARCRegisterInfo.cpp40 unsigned FrameReg, int Offset, int StackSize, in replaceFrameIndex() argument
176 int StackSize = MF.getFrameInfo().getStackSize(); in eliminateFrameIndex() local
185 LLVM_DEBUG(dbgs() << "StackSize : " << StackSize << "\n"); in eliminateFrameIndex()
211 Offset = StackSize + Offset; in eliminateFrameIndex()
213 assert((Offset >= 0 && Offset < StackSize) && "SP Offset not in bounds."); in eliminateFrameIndex()
216 assert((Offset < 0 && -Offset <= StackSize) && in eliminateFrameIndex()
220 replaceFrameIndex(II, TII, Reg, getFrameRegister(MF), Offset, StackSize, in eliminateFrameIndex()
H A DARCFrameLowering.cpp245 uint64_t StackSize = MF.getFrameInfo().getStackSize(); in emitEpilogue() local
254 if (isUInt<6>(StackSize)) in emitEpilogue()
258 .addImm(StackSize); in emitEpilogue()
280 if (unsigned MoveAmount = StackSize - AmountAboveFunclet) { in emitEpilogue()
288 .addImm(StackSize - AmountAboveFunclet); in emitEpilogue()
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kFrameLowering.cpp96 uint64_t StackSize = MFI.getStackSize(); in getFrameIndexReference() local
107 assert((-(Offset + StackSize)) % MFI.getObjectAlign(FI).value() == 0); in getFrameIndexReference()
108 return StackOffset::getFixed(Offset + StackSize); in getFrameIndexReference()
116 assert((-(Offset + StackSize)) % MFI.getObjectAlign(FI).value() == 0); in getFrameIndexReference()
117 return StackOffset::getFixed(Offset + StackSize); in getFrameIndexReference()
121 return StackOffset::getFixed(Offset + StackSize); in getFrameIndexReference()
482 uint64_t StackSize = MFI.getStackSize(); // Number of bytes to allocate. in emitPrologue() local
529 uint64_t FrameSize = StackSize - SlotSize; in emitPrologue()
554 assert(StackSize); in emitPrologue()
579 NumBytes = StackSize - MMFI->getCalleeSavedFrameSize(); in emitPrologue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFrameLowering.cpp270 uint64_t StackSize = MFI.getStackSize(); in emitPrologue()
285 if (StackSize) in emitPrologue()
301 if (StackSize) { in emitPrologue()
305 .addImm(StackSize); in emitPrologue()
326 if (StackSize && needsSPWriteback(MF)) { in emitEpilogue()
333 uint64_t StackSize = MF.getFrameInfo().getStackSize(); in emitEpilogue()
352 } else if (StackSize) { in emitEpilogue()
357 .addImm(StackSize); in emitEpilogue()
262 uint64_t StackSize = MFI.getStackSize(); emitPrologue() local
325 uint64_t StackSize = MF.getFrameInfo().getStackSize(); emitEpilogue() local
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DCallingConvLower.h182 uint64_t StackSize; variable
245 uint64_t getStackSize() const { return StackSize; } in getStackSize()
251 return alignTo(StackSize, MaxStackArgAlign); in getAlignedCallFrameSize()
407 StackSize = alignTo(StackSize + Size, Alignment); in AllocateStack()
408 Offset = -StackSize; in AllocateStack()
410 Offset = alignTo(StackSize, Alignment); in AllocateStack()
411 StackSize = Offset + Size; in AllocateStack()
H A DStackMaps.h312 uint64_t StackSize = 0;
316 explicit FunctionInfo(uint64_t StackSize) : StackSize(StackSize) {}
313 uint64_t StackSize = 0; global() member
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DInterpStack.cpp31 StackSize = 0; in clear()
53 StackSize += Size; in grow()
85 StackSize -= Size; in shrink()
H A DInterpStack.h85 size_t size() const { return StackSize; } in size()
91 bool empty() const { return StackSize == 0; } in empty()
147 size_t StackSize = 0; variable
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/
H A DMSP430FrameLowering.cpp95 uint64_t StackSize = MFI.getStackSize(); in emitPrologue() local
101 uint64_t FrameSize = StackSize - 2; in emitPrologue()
142 NumBytes = StackSize - MSP430FI->getCalleeSavedFrameSize(); in emitPrologue()
153 assert(StackSize && "Expected stack frame"); in emitPrologue()
185 MCCFIInstruction::cfiDefCfaOffset(nullptr, StackSize - stackGrowth), in emitPrologue()
212 uint64_t StackSize = MFI.getStackSize(); in emitEpilogue() local
219 uint64_t FrameSize = StackSize - 2; in emitEpilogue()
239 NumBytes = StackSize - CSSize; in emitEpilogue()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVFrameLowering.cpp589 uint64_t StackSize = RealStackSize - RVFI->getReservedSpillsSize(); in emitPrologue() local
605 StackSize = FirstSPAdjustAmount; in emitPrologue()
615 uint64_t Spimm = std::min(alignDown(StackSize, 16), (uint64_t)48); in emitPrologue()
617 StackSize -= Spimm; in emitPrologue()
620 if (StackSize != 0) { in emitPrologue()
623 StackOffset::getFixed(-StackSize), MachineInstr::FrameSetup, in emitPrologue()
799 uint64_t StackSize = RealStackSize - RVFI->getReservedSpillsSize(); in emitEpilogue() local
838 StackSize = FirstSPAdjustAmount; in emitEpilogue()
846 uint64_t Spimm = std::min(alignDown(StackSize, 16), (uint64_t)48); in emitEpilogue()
848 StackSize -= Spimm; in emitEpilogue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreFrameToArgsOffsetElim.cpp50 unsigned StackSize = MF.getFrameInfo().getStackSize(); in runOnMachineFunction() local
57 MBBI = TII.loadImmediate(MBB, MBBI, Reg, StackSize); in runOnMachineFunction()
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiFrameLowering.cpp106 unsigned StackSize = MFI.getStackSize(); in emitPrologue() local
126 if (StackSize != 0) { in emitPrologue()
129 .addImm(StackSize) in emitPrologue()
/freebsd/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_basic_logging.cpp62 size_t StackSize = 0; member
142 TLD.StackSize = 0; in getThreadLocalData()
150 TLD.StackSize = GlobalOptions.MaxStackDepth; in getThreadLocalData()
179 if (TLD.StackEntries++ >= TLD.StackSize) in InMemoryRawLog()
199 if (--TLD.StackEntries >= TLD.StackSize) in InMemoryRawLog()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DPrologEpilogInserter.cpp293 uint64_t StackSize = MFI.getStackSize(); in runOnMachineFunction() local
307 StackSize += UnsafeStackSize; in runOnMachineFunction()
309 if (StackSize > Threshold) { in runOnMachineFunction()
310 DiagnosticInfoStackSize DiagStackSize(F, StackSize, Threshold, DS_Warning); in runOnMachineFunction()
320 static_cast<float>(SpillSize) / static_cast<float>(StackSize); in runOnMachineFunction()
323 SpillSize, StackSize, StackSize - SpillSize, SpillPct, in runOnMachineFunction()
329 static_cast<float>(StackSize), in runOnMachineFunction()
330 StackSize)); in runOnMachineFunction()
339 << ore::NV("NumStackBytes", StackSize) in runOnMachineFunction()
1151 int64_t StackSize = Offset - LocalAreaOffset; in calculateFrameObjectOffsets() local
[all …]
H A DCallingConvLower.cpp36 StackSize = 0; in CCState()
203 uint64_t SavedStackSize = StackSize; in getRemainingRegParmsForType()
235 StackSize = SavedStackSize; in getRemainingRegParmsForType()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64AsmBackend.cpp584 uint32_t encodeStackAdjustment(uint32_t StackSize) const { in encodeStackAdjustment()
585 return (StackSize / 16) << 12; in encodeStackAdjustment()
612 uint64_t StackSize = 0; in generateCompactUnwindEncoding() local
664 if (StackSize != 0) in generateCompactUnwindEncoding()
666 StackSize = std::abs(Inst.getOffset()); in generateCompactUnwindEncoding()
747 if (StackSize > 65520) in generateCompactUnwindEncoding()
751 CompactUnwindEncoding |= encodeStackAdjustment(StackSize); in generateCompactUnwindEncoding()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64CallLowering.cpp133 StackSize = State.getStackSize(); in assignArg()
729 uint64_t StackSize = Assigner.StackSize; in lowerFormalArguments() local
743 StackSize = alignTo(Assigner.StackSize, Subtarget.isTargetILP32() ? 4 : 8); in lowerFormalArguments()
746 FuncInfo->setVarArgsStackIndex(MFI.CreateFixedObject(4, StackSize, true)); in lowerFormalArguments()
753 StackSize = alignTo(StackSize, 16); in lowerFormalArguments()
757 FuncInfo->setArgumentStackToRestore(StackSize); in lowerFormalArguments()
767 FuncInfo->setBytesInStackArgArea(StackSize); in lowerFormalArguments()
1422 ? alignTo(Assigner.StackSize, 16) in lowerCall()
1425 CallSeqStart.addImm(Assigner.StackSize).addImm(0); in lowerCall()
1427 .addImm(Assigner.StackSize) in lowerCall()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FrameLowering.cpp1535 uint64_t StackSize = MFI.getStackSize(); // Number of bytes to allocate. in emitPrologue() local
1646 StackSize += 8; in emitPrologue()
1647 MFI.setStackSize(StackSize); in emitPrologue()
1678 X86FI->setUsesRedZone(MinSize > 0 || StackSize > 0); in emitPrologue()
1679 StackSize = std::max(MinSize, StackSize > 128 ? StackSize - 128 : 0); in emitPrologue()
1680 MFI.setStackSize(StackSize); in emitPrologue()
1731 uint64_t FrameSize = StackSize - SlotSize; in emitPrologue()
1748 assert(StackSize); in emitPrologue()
1861 StackSize - (X86FI->getCalleeSavedFrameSize() + TailCallArgReserveSize); in emitPrologue()
1870 MFI.setOffsetAdjustment(-StackSize); in emitPrologue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYFrameLowering.cpp104 uint64_t StackSize = MFI.getStackSize(); in emitPrologue() local
107 if (StackSize == 0 && !MFI.adjustsStack()) in emitPrologue()
163 -(static_cast<int64_t>(StackSize - ActualSize)), in emitPrologue()
213 -(static_cast<int64_t>(StackSize - ActualSize)), in emitPrologue()
248 uint64_t StackSize = MFI.getStackSize(); in emitEpilogue() local
266 adjustReg(MBB, LastFrameDestroy, DL, SPReg, SPReg, (StackSize - ActualSize), in emitEpilogue()

123