/external/llvm/lib/Target/NVPTX/ |
D | NVPTXPrologEpilogPass.cpp | 84 AdjustStackOffset(MachineFrameInfo *MFI, int FrameIdx, in AdjustStackOffset() argument 89 Offset += MFI->getObjectSize(FrameIdx); in AdjustStackOffset() 91 unsigned Align = MFI->getObjectAlignment(FrameIdx); in AdjustStackOffset() 102 MFI->setObjectOffset(FrameIdx, -Offset); // Set the computed offset in AdjustStackOffset() 105 MFI->setObjectOffset(FrameIdx, Offset); in AdjustStackOffset() 106 Offset += MFI->getObjectSize(FrameIdx); in AdjustStackOffset() 119 MachineFrameInfo *MFI = Fn.getFrameInfo(); in calculateFrameObjectOffsets() local 136 for (int i = MFI->getObjectIndexBegin(); i != 0; ++i) { in calculateFrameObjectOffsets() 142 FixedOff = -MFI->getObjectOffset(i); in calculateFrameObjectOffsets() 146 FixedOff = MFI->getObjectOffset(i) + MFI->getObjectSize(i); in calculateFrameObjectOffsets() [all …]
|
/external/llvm/lib/Target/X86/ |
D | X86FixupLEAs.cpp | 40 bool processBasicBlock(MachineFunction &MF, MachineFunction::iterator MFI); 50 MachineFunction::iterator MFI); 57 MachineFunction::iterator MFI); 62 MachineFunction::iterator MFI); 73 MachineFunction::iterator MFI); 78 MachineInstr *postRAConvertToLEA(MachineFunction::iterator &MFI, 97 FixupLEAPass::postRAConvertToLEA(MachineFunction::iterator &MFI, in postRAConvertToLEA() argument 115 MFI->insert(MBBI, NewMI); // Insert the new inst in postRAConvertToLEA() 145 return TII->convertToThreeAddress(MFI, MBBI, nullptr); in postRAConvertToLEA() 188 MachineFunction::iterator MFI) { in getPreviousInstr() argument [all …]
|
/external/llvm/lib/CodeGen/ |
D | LocalStackSlotAllocation.cpp | 70 void AdjustStackOffset(MachineFrameInfo *MFI, int FrameIdx, int64_t &Offset, 74 MachineFrameInfo *MFI, bool StackGrowsDown, 105 MachineFrameInfo *MFI = MF.getFrameInfo(); in INITIALIZE_PASS_DEPENDENCY() local 107 unsigned LocalObjectCount = MFI->getObjectIndexEnd(); in INITIALIZE_PASS_DEPENDENCY() 115 LocalOffsets.resize(MFI->getObjectIndexEnd()); in INITIALIZE_PASS_DEPENDENCY() 128 MFI->setUseLocalStackAllocationBlock(UsedBaseRegs); in INITIALIZE_PASS_DEPENDENCY() 134 void LocalStackSlotPass::AdjustStackOffset(MachineFrameInfo *MFI, in AdjustStackOffset() argument 140 Offset += MFI->getObjectSize(FrameIdx); in AdjustStackOffset() 142 unsigned Align = MFI->getObjectAlignment(FrameIdx); in AdjustStackOffset() 157 MFI->mapLocalFrameObject(FrameIdx, LocalOffset); in AdjustStackOffset() [all …]
|
D | PrologEpilogInserter.cpp | 221 MachineFrameInfo *MFI = Fn.getFrameInfo(); in runOnMachineFunction() local 222 uint64_t StackSize = MFI->getStackSize(); in runOnMachineFunction() 239 MachineFrameInfo *MFI = Fn.getFrameInfo(); in calculateCallsInformation() local 242 bool AdjustsStack = MFI->adjustsStack(); in calculateCallsInformation() 271 MFI->setAdjustsStack(AdjustsStack); in calculateCallsInformation() 272 MFI->setMaxCallFrameSize(MaxCallFrameSize); in calculateCallsInformation() 293 MachineFrameInfo *MFI = F.getFrameInfo(); in calculateCalleeSavedRegisters() local 359 FrameIdx = MFI->CreateStackObject(RC->getSize(), Align, true); in calculateCalleeSavedRegisters() 365 MFI->CreateFixedSpillStackObject(RC->getSize(), FixedSlot->Offset); in calculateCalleeSavedRegisters() 372 MFI->setCalleeSavedInfo(CSI); in calculateCalleeSavedRegisters() [all …]
|
D | PseudoSourceValue.cpp | 88 bool PseudoSourceValue::isAliased(const MachineFrameInfo *MFI) const { in isAliased() 97 bool PseudoSourceValue::mayAlias(const MachineFrameInfo *MFI) const { in mayAlias() 105 bool FixedStackPseudoSourceValue::isConstant(const MachineFrameInfo *MFI) const{ in isConstant() 106 return MFI && MFI->isImmutableObjectIndex(FI); in isConstant() 109 bool FixedStackPseudoSourceValue::isAliased(const MachineFrameInfo *MFI) const { in isAliased() 110 if (!MFI) in isAliased() 112 return MFI->isAliasedObjectIndex(FI); in isAliased() 115 bool FixedStackPseudoSourceValue::mayAlias(const MachineFrameInfo *MFI) const { in mayAlias() 116 if (!MFI) in mayAlias() 119 return !MFI->isSpillSlotObjectIndex(FI); in mayAlias()
|
D | TargetFrameLoweringImpl.cpp | 30 const MachineFrameInfo *MFI = MF.getFrameInfo(); in getFrameIndexOffset() local 31 return MFI->getObjectOffset(FI) + MFI->getStackSize() - in getFrameIndexOffset() 32 getOffsetOfLocalArea() + MFI->getOffsetAdjustment(); in getFrameIndexOffset()
|
D | StackColoring.cpp | 90 MachineFrameInfo *MFI; member in __anon375d48c90111::StackColoring 259 const AllocaInst *Allocation = MFI->getObjectAllocation(Slot); in collectMarkers() 476 const AllocaInst *From = MFI->getObjectAllocation(SI.first); in remapInstructions() 477 const AllocaInst *To = MFI->getObjectAllocation(SI.second); in remapInstructions() 645 MFI = MF->getFrameInfo(); in runOnMachineFunction() 655 unsigned NumSlots = MFI->getObjectIndexEnd(); in runOnMachineFunction() 672 for (int i=0; i < MFI->getObjectIndexEnd(); ++i) { in runOnMachineFunction() 673 DEBUG(dbgs()<<"Slot #"<<i<<" - "<<MFI->getObjectSize(i)<<" bytes.\n"); in runOnMachineFunction() 674 TotalSize += MFI->getObjectSize(i); in runOnMachineFunction() 729 return MFI->getObjectSize(LHS) > MFI->getObjectSize(RHS); in runOnMachineFunction() [all …]
|
D | ProcessImplicitDefs.cpp | 148 for (MachineFunction::iterator MFI = MF.begin(), MFE = MF.end(); in runOnMachineFunction() local 149 MFI != MFE; ++MFI) { in runOnMachineFunction() 151 for (MachineBasicBlock::instr_iterator MBBI = MFI->instr_begin(), in runOnMachineFunction() 152 MBBE = MFI->instr_end(); MBBI != MBBE; ++MBBI) in runOnMachineFunction() 159 DEBUG(dbgs() << "BB#" << MFI->getNumber() << " has " << WorkList.size() in runOnMachineFunction()
|
D | StackSlotColoring.cpp | 50 MachineFrameInfo *MFI; member in __anon2482aeeb0111::StackSlotColoring 140 SSRefs.resize(MFI->getObjectIndexEnd()); in ScanForSpillSlotRefs() 180 int LastFI = MFI->getObjectIndexEnd(); in InitializeSlots() 201 if (MFI->isDeadObjectIndex(FI)) in InitializeSlots() 204 OrigAlignments[FI] = MFI->getObjectAlignment(FI); in InitializeSlots() 205 OrigSizes[FI] = MFI->getObjectSize(FI); in InitializeSlots() 266 if (!Share || Align > MFI->getObjectAlignment(Color)) in ColorSlot() 267 MFI->setObjectAlignment(Color, Align); in ColorSlot() 269 if (!Share || Size > MFI->getObjectSize(Color)) in ColorSlot() 270 MFI->setObjectSize(Color, Size); in ColorSlot() [all …]
|
/external/llvm/lib/Target/Mips/ |
D | MipsFrameLowering.cpp | 96 const MachineFrameInfo *MFI = MF.getFrameInfo(); in hasFP() local 98 MFI->hasVarSizedObjects() || MFI->isFrameAddressTaken(); in hasFP() 102 const MachineFrameInfo *MFI = MF.getFrameInfo(); in estimateStackSize() local 108 for (int I = MFI->getObjectIndexBegin(); I != 0; ++I) in estimateStackSize() 109 Offset = std::max(Offset, -MFI->getObjectOffset(I)); in estimateStackSize() 117 unsigned MaxAlign = MFI->getMaxAlignment(); in estimateStackSize() 121 assert(!MFI->getObjectIndexEnd() || MaxAlign); in estimateStackSize() 124 for (unsigned I = 0, E = MFI->getObjectIndexEnd(); I != E; ++I) in estimateStackSize() 125 Offset = RoundUpToAlignment(Offset + MFI->getObjectSize(I), MaxAlign); in estimateStackSize() 128 if (MFI->adjustsStack() && hasReservedCallFrame(MF)) in estimateStackSize() [all …]
|
D | Mips16FrameLowering.cpp | 37 MachineFrameInfo *MFI = MF.getFrameInfo(); in emitPrologue() local 42 uint64_t StackSize = MFI->getStackSize(); in emitPrologue() 45 if (StackSize == 0 && !MFI->adjustsStack()) return; in emitPrologue() 60 const std::vector<CalleeSavedInfo> &CSI = MFI->getCalleeSavedInfo(); in emitPrologue() 63 const std::vector<CalleeSavedInfo> &CSI = MFI->getCalleeSavedInfo(); in emitPrologue() 67 int64_t Offset = MFI->getObjectOffset(I->getFrameIdx()); in emitPrologue() 85 MachineFrameInfo *MFI = MF.getFrameInfo(); in emitEpilogue() local 89 uint64_t StackSize = MFI->getStackSize(); in emitEpilogue() 148 const MachineFrameInfo *MFI = MF.getFrameInfo(); in hasReservedCallFrame() local 151 return isInt<15>(MFI->getMaxCallFrameSize()) && !MFI->hasVarSizedObjects(); in hasReservedCallFrame()
|
/external/llvm/lib/Target/XCore/ |
D | XCoreMachineFunctionInfo.cpp | 39 MachineFrameInfo *MFI = MF.getFrameInfo(); in createLRSpillSlot() local 42 LRSpillSlot = MFI->CreateFixedObject(RC->getSize(), 0, true); in createLRSpillSlot() 44 LRSpillSlot = MFI->CreateStackObject(RC->getSize(), RC->getAlignment(), true); in createLRSpillSlot() 55 MachineFrameInfo *MFI = MF.getFrameInfo(); in createFPSpillSlot() local 56 FPSpillSlot = MFI->CreateStackObject(RC->getSize(), RC->getAlignment(), true); in createFPSpillSlot() 66 MachineFrameInfo *MFI = MF.getFrameInfo(); in createEHSpillSlot() local 67 EHSpillSlot[0] = MFI->CreateStackObject(RC->getSize(), RC->getAlignment(), true); in createEHSpillSlot() 68 EHSpillSlot[1] = MFI->CreateStackObject(RC->getSize(), RC->getAlignment(), true); in createEHSpillSlot()
|
D | XCoreFrameLowering.cpp | 140 MachineFrameInfo *MFI, XCoreFunctionInfo *XFI, in GetSpillList() argument 143 int Offset = MFI->getObjectOffset(XFI->getLRSpillSlot()); in GetSpillList() 149 int Offset = MFI->getObjectOffset(XFI->getFPSpillSlot()); in GetSpillList() 162 MachineFrameInfo *MFI, XCoreFunctionInfo *XFI, in GetEHSpillList() argument 167 MFI->getObjectOffset(EHSlot[0]), in GetEHSpillList() 170 MFI->getObjectOffset(EHSlot[1]), in GetEHSpillList() 179 const MachineFrameInfo &MFI = *MF->getFrameInfo(); in getFrameIndexMMO() local 182 flags, MFI.getObjectSize(FrameIndex), in getFrameIndexMMO() 183 MFI.getObjectAlignment(FrameIndex)); in getFrameIndexMMO() 226 MachineFrameInfo *MFI = MF.getFrameInfo(); in emitPrologue() local [all …]
|
D | XCoreFrameToArgsOffsetElim.cpp | 49 for (MachineFunction::iterator MFI = MF.begin(), E = MF.end(); MFI != E; in runOnMachineFunction() local 50 ++MFI) { in runOnMachineFunction() 51 MachineBasicBlock &MBB = *MFI; in runOnMachineFunction()
|
/external/llvm/lib/Target/R600/ |
D | AMDGPUFrameLowering.cpp | 76 const MachineFrameInfo *MFI = MF.getFrameInfo(); in getFrameIndexOffset() local 81 int UpperBound = FI == -1 ? MFI->getNumObjects() : FI; in getFrameIndexOffset() 83 for (int i = MFI->getObjectIndexBegin(); i < UpperBound; ++i) { in getFrameIndexOffset() 84 OffsetBytes = RoundUpToAlignment(OffsetBytes, MFI->getObjectAlignment(i)); in getFrameIndexOffset() 85 OffsetBytes += MFI->getObjectSize(i); in getFrameIndexOffset() 92 OffsetBytes = RoundUpToAlignment(OffsetBytes, MFI->getObjectAlignment(FI)); in getFrameIndexOffset()
|
D | AMDGPUAsmPrinter.cpp | 153 R600MachineFunctionInfo *MFI = MF.getInfo<R600MachineFunctionInfo>(); in runOnMachineFunction() local 155 Twine("SQ_PGM_RESOURCES:STACK_SIZE = " + Twine(MFI->StackSize))); in runOnMachineFunction() 182 const R600MachineFunctionInfo *MFI = MF.getInfo<R600MachineFunctionInfo>(); in EmitProgramInfoR600() local 206 switch (MFI->getShaderType()) { in EmitProgramInfoR600() 215 switch (MFI->getShaderType()) { in EmitProgramInfoR600() 226 S_STACK_SIZE(MFI->StackSize), 4); in EmitProgramInfoR600() 230 if (MFI->getShaderType() == ShaderType::COMPUTE) { in EmitProgramInfoR600() 232 OutStreamer.EmitIntValue(RoundUpToAlignment(MFI->LDSSize, 4) >> 2, 4); in EmitProgramInfoR600() 239 const SIMachineFunctionInfo *MFI = MF.getInfo<SIMachineFunctionInfo>(); in getSIProgramInfo() local 375 unsigned LDSSpillSize = MFI->LDSWaveSpillSize * in getSIProgramInfo() [all …]
|
/external/llvm/lib/Target/MSP430/ |
D | MSP430BranchSelector.cpp | 65 for (MachineFunction::iterator MFI = Fn.begin(), E = Fn.end(); MFI != E; in runOnMachineFunction() local 66 ++MFI) { in runOnMachineFunction() 67 MachineBasicBlock *MBB = MFI; in runOnMachineFunction() 101 for (MachineFunction::iterator MFI = Fn.begin(), E = Fn.end(); MFI != E; in runOnMachineFunction() local 102 ++MFI) { in runOnMachineFunction() 103 MachineBasicBlock &MBB = *MFI; in runOnMachineFunction()
|
D | MSP430FrameLowering.cpp | 31 const MachineFrameInfo *MFI = MF.getFrameInfo(); in hasFP() local 35 MFI->isFrameAddressTaken()); in hasFP() 44 MachineFrameInfo *MFI = MF.getFrameInfo(); in emitPrologue() local 53 uint64_t StackSize = MFI->getStackSize(); in emitPrologue() 64 MFI->setOffsetAdjustment(-NumBytes); in emitPrologue() 109 const MachineFrameInfo *MFI = MF.getFrameInfo(); in emitEpilogue() local 126 uint64_t StackSize = MFI->getStackSize(); in emitEpilogue() 156 if (MFI->hasVarSizedObjects()) { in emitEpilogue() 193 MSP430MachineFunctionInfo *MFI = MF.getInfo<MSP430MachineFunctionInfo>(); in spillCalleeSavedRegisters() local 194 MFI->setCalleeSavedFrameSize(CSI.size() * 2); in spillCalleeSavedRegisters()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64FrameLowering.cpp | 126 const MachineFrameInfo *MFI = MF.getFrameInfo(); in canUseRedZone() local 133 if (MFI->hasCalls() || hasFP(MF) || NumBytes > 128) in canUseRedZone() 141 const MachineFrameInfo *MFI = MF.getFrameInfo(); in hasFP() local 143 return (MFI->hasCalls() || MFI->hasVarSizedObjects() || in hasFP() 144 MFI->isFrameAddressTaken() || MFI->hasStackMap() || in hasFP() 145 MFI->hasPatchPoint() || RegInfo->needsStackRealignment(MF)); in hasFP() 208 MachineFrameInfo *MFI = MF.getFrameInfo(); in emitCalleeSavedFrameMoves() local 215 const std::vector<CalleeSavedInfo> &CSI = MFI->getCalleeSavedInfo(); in emitCalleeSavedFrameMoves() 230 int64_t Offset = MFI->getObjectOffset(Info.getFrameIdx()) - in emitCalleeSavedFrameMoves() 256 const MachineFrameInfo *MFI = MF.getFrameInfo(); in emitPrologue() local [all …]
|
D | AArch64RegisterInfo.cpp | 162 const MachineFrameInfo *MFI = MF.getFrameInfo(); in hasBasePointer() local 171 if (MFI->hasVarSizedObjects()) { in hasBasePointer() 181 if (MFI->getLocalFrameSize() < 256) in hasBasePointer() 200 const MachineFrameInfo *MFI = MF.getFrameInfo(); in needsStackRealignment() local 207 ((MFI->getMaxAlignment() > StackAlign) || in needsStackRealignment() 233 const MachineFrameInfo *MFI = MF.getFrameInfo(); in useFPForScavengingIndex() local 237 return MFI->hasVarSizedObjects() && !hasBasePointer(MF); in useFPForScavengingIndex() 247 const MachineFrameInfo *MFI = MF.getFrameInfo(); in cannotEliminateFrame() local 249 if (MFI->hasCalls() || (MF.getTarget().Options.DisableFramePointerElim(MF) && in cannotEliminateFrame() 250 MFI->adjustsStack())) in cannotEliminateFrame() [all …]
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonFrameLowering.cpp | 47 MachineFrameInfo *MFI = MF.getFrameInfo(); in determineFrameLayout() local 50 unsigned FrameSize = MFI->getStackSize(); in determineFrameLayout() 56 unsigned maxCallFrameSize = MFI->getMaxCallFrameSize(); in determineFrameLayout() 60 if (MFI->hasVarSizedObjects()) in determineFrameLayout() 64 MFI->setMaxCallFrameSize(maxCallFrameSize); in determineFrameLayout() 73 MFI->setStackSize(FrameSize); in determineFrameLayout() 79 MachineFrameInfo *MFI = MF.getFrameInfo(); in emitPrologue() local 87 int NumBytes = (int) MFI->getStackSize(); in emitPrologue() 109 MO.setImm(MFI->getMaxCallFrameSize()); in emitPrologue() 204 const MachineFrameInfo *MFI = MF.getFrameInfo(); in hasFP() local [all …]
|
/external/llvm/lib/Target/Sparc/ |
D | SparcFrameLowering.cpp | 89 MachineFrameInfo *MFI = MF.getFrameInfo(); in emitPrologue() local 96 int NumBytes = (int) MFI->getStackSize(); in emitPrologue() 163 MachineFrameInfo *MFI = MF.getFrameInfo(); in emitEpilogue() local 165 int NumBytes = (int) MFI->getStackSize(); in emitEpilogue() 182 const MachineFrameInfo *MFI = MF.getFrameInfo(); in hasFP() local 184 MFI->hasVarSizedObjects() || MFI->isFrameAddressTaken(); in hasFP() 206 MachineFrameInfo *MFI = MF.getFrameInfo(); in isLeafProc() local 208 return !(MFI->hasCalls() // has calls in isLeafProc() 253 SparcMachineFunctionInfo *MFI = MF.getInfo<SparcMachineFunctionInfo>(); in processFunctionBeforeCalleeSavedScan() local 254 MFI->setLeafProc(true); in processFunctionBeforeCalleeSavedScan()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCBranchSelector.cpp | 92 for (MachineFunction::iterator MFI = Fn.begin(), E = Fn.end(); MFI != E; in runOnMachineFunction() local 93 ++MFI) { in runOnMachineFunction() 94 MachineBasicBlock *MBB = MFI; in runOnMachineFunction() 136 for (MachineFunction::iterator MFI = Fn.begin(), E = Fn.end(); MFI != E; in runOnMachineFunction() local 137 ++MFI) { in runOnMachineFunction() 138 MachineBasicBlock &MBB = *MFI; in runOnMachineFunction()
|
D | PPCFrameLowering.cpp | 411 const PPCFunctionInfo *MFI = MF.getInfo<PPCFunctionInfo>(); in MustSaveLR() local 418 return RI !=MF.getRegInfo().def_end() || MFI->isLRStoreRequired(); in MustSaveLR() 426 MachineFrameInfo *MFI = MF.getFrameInfo(); in determineFrameLayout() local 430 UseEstimate ? MFI->estimateStackSize(MF) : MFI->getStackSize(); in determineFrameLayout() 434 unsigned MaxAlign = MFI->getMaxAlignment(); // algmt required by data in frame in determineFrameLayout() 452 !MFI->hasVarSizedObjects() && // No dynamic alloca. in determineFrameLayout() 453 !MFI->adjustsStack() && // No calls. in determineFrameLayout() 458 MFI->setStackSize(0); in determineFrameLayout() 463 unsigned maxCallFrameSize = MFI->getMaxCallFrameSize(); in determineFrameLayout() 471 if (MFI->hasVarSizedObjects()) in determineFrameLayout() [all …]
|
/external/llvm/lib/Target/ARM/ |
D | Thumb1InstrInfo.cpp | 86 MachineFrameInfo &MFI = *MF.getFrameInfo(); in storeRegToStackSlot() local 90 MFI.getObjectSize(FI), in storeRegToStackSlot() 91 MFI.getObjectAlignment(FI)); in storeRegToStackSlot() 114 MachineFrameInfo &MFI = *MF.getFrameInfo(); in loadRegFromStackSlot() local 118 MFI.getObjectSize(FI), in loadRegFromStackSlot() 119 MFI.getObjectAlignment(FI)); in loadRegFromStackSlot()
|