/llvm-project/llvm/lib/Target/Xtensa/ |
H A D | XtensaFrameLowering.cpp | 48 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 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()
|
/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() 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 D | Mips16FrameLowering.cpp | 50 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 D | RemarkSizeDiff.cpp | 56 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 D | SystemZFrameLowering.cpp | 441 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 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()
|
/llvm-project/llvm/lib/Target/M68k/ |
H A D | M68kFrameLowering.cpp | 98 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 D | WebAssemblyFrameLowering.cpp | 268 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 D | json-add-remove-func.test | 17 ; ADD-NEXT: "StackSize": [ 29 ; ADD-NEXT: "StackSize": [ 43 ; REMOVE-NEXT: "StackSize": [ 53 ; REMOVE-NEXT: "StackSize": [
|
H A D | json-increase-decrease-inst-count.test | 16 ; INCREASE-NEXT: "StackSize": 33 ; DECREASE-NEXT: "StackSize":
|
/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() 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 D | StackMaps.h | 312 uint64_t StackSize = 0; member 316 explicit FunctionInfo(uint64_t StackSize) : StackSize(StackSize) {} in FunctionInfo()
|
/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVFrameLowering.cpp | 867 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 D | MSP430FrameLowering.cpp | 92 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 D | InterpStack.cpp |
|
H A D | InterpStack.h |
|
/llvm-project/llvm/test/CodeGen/AArch64/ |
H A D | prologue-epilogue-remarks.mir | 10 # CHECK-NEXT: Name: StackSize 30 # CHECK-NEXT: Name: StackSize 50 # CHECK-NEXT: Name: StackSize
|
/llvm-project/llvm/test/CodeGen/X86/ |
H A D | prologue-epilogue-remarks.mir | 16 # CHECK-NEXT: Name: StackSize 37 # CHECK-NEXT: Name: StackSize 57 # CHECK-NEXT: Name: StackSize
|
/llvm-project/llvm/lib/Target/XCore/ |
H A D | XCoreFrameToArgsOffsetElim.cpp | 48 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 D | LanaiFrameLowering.cpp | 104 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 D | PrologEpilogInserter.cpp | 295 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 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()
|
/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/ |
H A D | AArch64AsmBackend.cpp | 593 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 D | AArch64CallLowering.cpp | 133 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...] |