/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/ |
H A D | XtensaFrameLowering.cpp | 47 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 D | XtensaRegisterInfo.cpp | 67 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 D | LoongArchFrameLowering.cpp | 203 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 D | Mips16FrameLowering.cpp | 52 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 D | Mips16RegisterInfo.cpp | 75 uint64_t StackSize, in eliminateFI() argument 124 Offset = SPOffset + (int64_t)StackSize; in eliminateFI()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZFrameLowering.cpp | 442 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 D | ARCRegisterInfo.cpp | 40 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 D | ARCFrameLowering.cpp | 245 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 D | M68kFrameLowering.cpp | 96 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 D | WebAssemblyFrameLowering.cpp | 270 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 D | CallingConvLower.h | 182 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 D | StackMaps.h | 312 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 D | InterpStack.cpp | 31 StackSize = 0; in clear() 53 StackSize += Size; in grow() 85 StackSize -= Size; in shrink()
|
H A D | InterpStack.h | 85 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 D | MSP430FrameLowering.cpp | 95 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 D | RISCVFrameLowering.cpp | 589 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 D | XCoreFrameToArgsOffsetElim.cpp | 50 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 D | LanaiFrameLowering.cpp | 106 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 D | xray_basic_logging.cpp | 62 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 D | PrologEpilogInserter.cpp | 293 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 D | CallingConvLower.cpp | 36 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 D | AArch64AsmBackend.cpp | 584 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 D | AArch64CallLowering.cpp | 133 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 D | X86FrameLowering.cpp | 1535 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 D | CSKYFrameLowering.cpp | 104 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()
|