Home
last modified time | relevance | path

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

1234

/llvm-project/llvm/lib/Target/Xtensa/
H A DXtensaFrameLowering.cpp48 uint64_t StackSize = MFI.getStackSize(); in emitPrologue() local
49 uint64_t PrevStackSize = StackSize; in emitPrologue()
51 // Round up StackSize to 16*N in emitPrologue()
52 StackSize += (16 - StackSize) & 0xf; in emitPrologue()
55 if (StackSize == 0 && !MFI.adjustsStack()) in emitPrologue()
59 TII.adjustStackPtr(SP, -StackSize, MBB, MBBI); in emitPrologue()
61 // emit ".cfi_def_cfa_offset StackSize" in emitPrologue()
63 MF.addFrameInst(MCCFIInstruction::cfiDefCfaOffset(nullptr, StackSize)); in emitPrologue()
125 if (StackSize ! in emitPrologue()
185 uint64_t StackSize = MFI.getStackSize(); 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()
/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()
217 // Emit ".cfi_def_cfa_offset StackSize". 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 in emitEpilogue()
459 uint64_t StackSize = MFI.getStackSize(); getFrameIndexReference() local
[all...]
/llvm-project/llvm/lib/Target/Mips/
H A DMips16FrameLowering.cpp50 uint64_t StackSize = MFI.getStackSize(); in emitPrologue()
53 if (StackSize == 0 && !MFI.adjustsStack()) return; in emitPrologue()
58 TII.makeFrame(Mips::SP, StackSize, MBB, MBBI); in emitPrologue()
60 // emit ".cfi_def_cfa_offset StackSize" in emitPrologue()
62 MF.addFrameInst(MCCFIInstruction::cfiDefCfaOffset(nullptr, StackSize)); in emitPrologue()
93 uint64_t StackSize = MFI.getStackSize(); in emitEpilogue()
95 if (!StackSize) in emitEpilogue()
104 TII.restoreFrame(Mips::SP, StackSize, MBB, MBBI); in emitEpilogue()
52 uint64_t StackSize = MFI.getStackSize(); emitPrologue() local
96 uint64_t StackSize = MFI.getStackSize(); emitEpilogue() local
/llvm-project/llvm/tools/llvm-remarkutil/
H A DRemarkSizeDiff.cpp56 int64_t StackSize = 0; member
69 int64_t StackSize[2] = {0, 0}; member
73 int64_t getStackDiff() const { return StackSize[1] - StackSize[0]; } in getStackDiff()
77 int64_t getStackSizeA() const { return StackSize[0]; } in getStackSizeA()
81 int64_t getStackSizeB() const { return StackSize[1]; } in getStackSizeB()
97 StackSize[0] = A.StackSize; in FunctionDiff()
98 StackSize[1] = B.StackSize; in FunctionDiff()
275 FuncNameToSizeInfo[Remark.FunctionName].StackSize = *MaybeStackSize; in processRemark()
/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZFrameLowering.cpp441 uint64_t StackSize = (MFFrame.estimateStackSize(MF) + in processFunctionBeforeFrameFinalized()
453 uint64_t MaxReach = StackSize + MaxArgOffset; in processFunctionBeforeFrameFinalized()
585 uint64_t StackSize = MFFrame.getStackSize(); in emitPrologue()
596 StackSize += SystemZMC::ELFCallFrameSize; in emitPrologue()
598 StackSize = StackSize > SystemZMC::ELFCallFrameSize in emitPrologue()
599 ? StackSize - SystemZMC::ELFCallFrameSize in emitPrologue()
601 MFFrame.setStackSize(StackSize); in emitPrologue()
603 if (StackSize) { in emitPrologue()
604 // Allocate StackSize byte in emitPrologue()
442 uint64_t StackSize = (MFFrame.estimateStackSize(MF) + processFunctionBeforeFrameFinalized() local
588 uint64_t StackSize = MFFrame.getStackSize(); emitPrologue() local
707 uint64_t StackSize = MFFrame.getStackSize(); emitEpilogue() local
753 uint64_t StackSize = StackAllocMI->getOperand(0).getImm(); inlineStackProbe() local
1225 const uint64_t StackSize = MFFrame.getStackSize(); emitPrologue() local
1333 uint64_t StackSize = MFFrame.getStackSize(); emitEpilogue() local
1468 uint64_t StackSize = MFFrame.estimateStackSize(MF); processFunctionBeforeFrameFinalized() local
1510 uint64_t StackSize = MFFrame.getStackSize(); determineFrameLayout() local
[all...]
/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()
/llvm-project/llvm/lib/Target/M68k/
H A DM68kFrameLowering.cpp98 uint64_t StackSize = MFI.getStackSize(); in getFrameIndexReference()
109 assert((-(Offset + StackSize)) % MFI.getObjectAlign(FI).value() == 0); in getFrameIndexReference()
110 return StackOffset::getFixed(Offset + StackSize); in getFrameIndexReference()
118 assert((-(Offset + StackSize)) % MFI.getObjectAlign(FI).value() == 0); in getFrameIndexReference()
119 return StackOffset::getFixed(Offset + StackSize); in getFrameIndexReference()
123 return StackOffset::getFixed(Offset + StackSize); in getFrameIndexReference()
482 uint64_t StackSize = MFI.getStackSize(); // Number of bytes to allocate. in emitPrologue()
529 uint64_t FrameSize = StackSize - SlotSize; in emitPrologue()
554 assert(StackSize); in emitPrologue()
579 NumBytes = StackSize in emitPrologue()
96 uint64_t StackSize = MFI.getStackSize(); getFrameIndexReference() local
485 uint64_t StackSize = MFI.getStackSize(); // Number of bytes to allocate. emitPrologue() local
686 uint64_t StackSize = MFI.getStackSize(); emitEpilogue() local
[all...]
/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFrameLowering.cpp268 uint64_t StackSize = MFI.getStackSize(); in emitPrologue()
283 if (StackSize) in emitPrologue()
299 if (StackSize) { in emitPrologue()
303 .addImm(StackSize); in emitPrologue()
324 if (StackSize && needsSPWriteback(MF)) { in emitPrologue()
331 uint64_t StackSize = MF.getFrameInfo().getStackSize(); in emitEpilogue()
350 } else if (StackSize) { in emitEpilogue()
355 .addImm(StackSize); in emitEpilogue()
270 uint64_t StackSize = MFI.getStackSize(); emitPrologue() local
333 uint64_t StackSize = MF.getFrameInfo().getStackSize(); emitEpilogue() local
/llvm-project/llvm/test/tools/llvm-remarkutil/size-diff/
H A Djson-add-remove-func.test17 ; ADD-NEXT: "StackSize": [
29 ; ADD-NEXT: "StackSize": [
43 ; REMOVE-NEXT: "StackSize": [
53 ; REMOVE-NEXT: "StackSize": [
H A Djson-increase-decrease-inst-count.test16 ; INCREASE-NEXT: "StackSize":
33 ; DECREASE-NEXT: "StackSize":
/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()
408 StackSize = alignTo(StackSize + Size, Alignment); in AllocateStack()
409 Offset = -StackSize; in AllocateStack()
411 Offset = alignTo(StackSize, Alignment); in AllocateStack()
412 StackSize = Offset + Size; in AllocateStack()
H A DStackMaps.h312 uint64_t StackSize = 0; member
316 explicit FunctionInfo(uint64_t StackSize) : StackSize(StackSize) {} in FunctionInfo()
/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVFrameLowering.cpp867 uint64_t StackSize = RealStackSize - RVFI->getReservedSpillsSize(); in getFrameIndexReference()
883 StackSize = FirstSPAdjustAmount; in getFrameIndexReference()
894 std::min(alignDown(StackSize, 16), static_cast<uint64_t>(48)); in getFrameIndexReference()
896 StackSize -= Spimm; in getFrameIndexReference()
899 MCCFIInstruction::cfiDefCfaOffset(nullptr, RealStackSize - StackSize)); in getFrameIndexReference()
915 if (StackSize != 0) in getFrameIndexReference()
916 allocateStack(MBB, MBBI, MF, StackSize, RealStackSize, /*EmitCFI=*/true, in getFrameIndexReference()
977 // Emit .cfi_def_cfa_expression "sp + StackSize + RVVStackSize * vlenb". in getFrameIndexReference()
1045 uint64_t &StackSize, in determineCalleeSaves()
1050 RI->adjustReg(MBB, MBBI, DL, SPReg, SPReg, StackOffset::getFixed(StackSize), in determineCalleeSaves()
589 uint64_t StackSize = RealStackSize - RVFI->getReservedSpillsSize(); emitPrologue() local
799 uint64_t StackSize = RealStackSize - RVFI->getReservedSpillsSize(); emitEpilogue() local
1107 uint64_t StackSize = Offset; assignRVVStackObjectOffsets() local
1335 uint64_t StackSize = getStackSizeWithRVVPadding(MF); getFirstSPAdjustAmount() local
[all...]
/llvm-project/llvm/lib/Target/MSP430/
H A DMSP430FrameLowering.cpp92 uint64_t StackSize = MFI.getStackSize(); in emitPrologue()
98 uint64_t FrameSize = StackSize - 2; in emitPrologue()
139 NumBytes = StackSize - MSP430FI->getCalleeSavedFrameSize(); in emitPrologue()
150 assert(StackSize && "Expected stack frame"); in emitPrologue()
182 MCCFIInstruction::cfiDefCfaOffset(nullptr, StackSize - stackGrowth), in emitPrologue()
209 uint64_t StackSize = MFI.getStackSize(); in emitEpilogue()
216 uint64_t FrameSize = StackSize - 2; in emitEpilogue()
236 NumBytes = StackSize - CSSize; in emitEpilogue()
96 uint64_t StackSize = MFI.getStackSize(); emitPrologue() local
213 uint64_t StackSize = MFI.getStackSize(); emitEpilogue() local
/llvm-project/clang/lib/AST/Interp/
H A DInterpStack.cpp
H A DInterpStack.h
/llvm-project/llvm/test/CodeGen/AArch64/
H A Dprologue-epilogue-remarks.mir10 # CHECK-NEXT: Name: StackSize
30 # CHECK-NEXT: Name: StackSize
50 # CHECK-NEXT: Name: StackSize
/llvm-project/llvm/test/CodeGen/X86/
H A Dprologue-epilogue-remarks.mir16 # CHECK-NEXT: Name: StackSize
37 # CHECK-NEXT: Name: StackSize
57 # CHECK-NEXT: Name: StackSize
/llvm-project/llvm/lib/Target/XCore/
H A DXCoreFrameToArgsOffsetElim.cpp48 unsigned StackSize = MF.getFrameInfo().getStackSize(); in runOnMachineFunction()
55 MBBI = TII.loadImmediate(MBB, MBBI, Reg, StackSize); in runOnMachineFunction()
50 unsigned StackSize = MF.getFrameInfo().getStackSize(); runOnMachineFunction() local
/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiFrameLowering.cpp104 unsigned StackSize = MFI.getStackSize(); in emitPrologue()
123 // sub %sp,StackSize,%sp in emitPrologue()
124 if (StackSize != 0) { in emitPrologue()
127 .addImm(StackSize) in emitPrologue()
106 unsigned StackSize = MFI.getStackSize(); emitPrologue() local
/llvm-project/llvm/lib/CodeGen/
H A DPrologEpilogInserter.cpp295 uint64_t StackSize = MFI.getStackSize(); in runOnMachineFunction()
309 StackSize += UnsafeStackSize; in runOnMachineFunction()
311 if (StackSize > Threshold) { in runOnMachineFunction()
312 DiagnosticInfoStackSize DiagStackSize(F, StackSize, Threshold, DS_Warning); in runOnMachineFunction()
322 static_cast<float>(SpillSize) / static_cast<float>(StackSize); in runOnMachineFunction()
325 SpillSize, StackSize, StackSize - SpillSize, SpillPct, in runOnMachineFunction()
331 static_cast<float>(StackSize), in runOnMachineFunction()
332 StackSize)); in runOnMachineFunction()
338 return MachineOptimizationRemarkAnalysis(DEBUG_TYPE, "StackSize", in runOnMachineFunction()
293 uint64_t StackSize = MFI.getStackSize(); runOnMachineFunction() local
1148 int64_t StackSize = Offset - LocalAreaOffset; calculateFrameObjectOffsets() local
[all...]
/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()
/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64AsmBackend.cpp593 uint32_t encodeStackAdjustment(uint32_t StackSize) const {
594 return (StackSize / 16) << 12; in createObjectTargetWriter()
621 uint64_t StackSize = 0; in generateCompactUnwindEncoding()
673 if (StackSize != 0) in generateCompactUnwindEncoding()
675 StackSize = std::abs(Inst.getOffset()); in generateCompactUnwindEncoding()
756 if (StackSize > 65520)
760 CompactUnwindEncoding |= encodeStackAdjustment(StackSize);
612 unsigned StackSize = 0; generateCompactUnwindEncoding() local
/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64CallLowering.cpp133 StackSize = State.getStackSize(); in assignArg()
729 uint64_t StackSize = Assigner.StackSize; in lowerFormalArguments()
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()
725 uint64_t StackSize = Assigner.StackSize; lowerFormalArguments() local
[all...]

1234