Home
last modified time | relevance | path

Searched refs:FrameIdx (Results 1 – 25 of 28) sorted by relevance

12

/external/llvm/lib/CodeGen/
DLocalStackSlotAllocation.cpp61 void AdjustStackOffset(MachineFrameInfo *MFI, int FrameIdx, int64_t &Offset,
115 int FrameIdx, int64_t &Offset, in AdjustStackOffset() argument
120 Offset += MFI->getObjectSize(FrameIdx); in AdjustStackOffset()
122 unsigned Align = MFI->getObjectAlignment(FrameIdx); in AdjustStackOffset()
132 DEBUG(dbgs() << "Allocate FI(" << FrameIdx << ") to local offset " in AdjustStackOffset()
135 LocalOffsets[FrameIdx] = LocalOffset; in AdjustStackOffset()
137 MFI->mapLocalFrameObject(FrameIdx, LocalOffset); in AdjustStackOffset()
140 Offset += MFI->getObjectSize(FrameIdx); in AdjustStackOffset()
283 int FrameIdx = MI->getOperand(idx).getIndex(); in insertFrameReferenceRegisters() local
285 assert(MFI->isObjectPreAllocated(FrameIdx) && in insertFrameReferenceRegisters()
[all …]
DPrologEpilogInserter.cpp238 int FrameIdx; in calculateCalleeSavedRegisters() local
239 if (RegInfo->hasReservedSpillSlot(F, Reg, FrameIdx)) { in calculateCalleeSavedRegisters()
240 I->setFrameIdx(FrameIdx); in calculateCalleeSavedRegisters()
260 FrameIdx = MFI->CreateStackObject(RC->getSize(), Align, true); in calculateCalleeSavedRegisters()
261 if ((unsigned)FrameIdx < MinCSFrameIndex) MinCSFrameIndex = FrameIdx; in calculateCalleeSavedRegisters()
262 if ((unsigned)FrameIdx > MaxCSFrameIndex) MaxCSFrameIndex = FrameIdx; in calculateCalleeSavedRegisters()
265 FrameIdx = MFI->CreateFixedObject(RC->getSize(), FixedSlot->Offset, true); in calculateCalleeSavedRegisters()
268 I->setFrameIdx(FrameIdx); in calculateCalleeSavedRegisters()
450 AdjustStackOffset(MachineFrameInfo *MFI, int FrameIdx, in AdjustStackOffset() argument
455 Offset += MFI->getObjectSize(FrameIdx); in AdjustStackOffset()
[all …]
DTargetInstrInfo.cpp457 int FrameIdx = 0; in isReallyTriviallyReMaterializableGeneric() local
458 if (TII.isLoadFromStackSlot(MI, FrameIdx) && in isReallyTriviallyReMaterializableGeneric()
459 MF.getFrameInfo()->isImmutableObjectIndex(FrameIdx)) in isReallyTriviallyReMaterializableGeneric()
DRegAllocFast.cpp208 int FrameIdx = MF->getFrameInfo()->CreateSpillStackObject(RC->getSize(), in getStackSpaceFor() local
212 StackSlotForVirtReg[VirtReg] = FrameIdx; in getStackSpaceFor()
213 return FrameIdx; in getStackSpaceFor()
/external/llvm/lib/Target/MSP430/
DMSP430InstrInfo.cpp36 unsigned SrcReg, bool isKill, int FrameIdx, in storeRegToStackSlot() argument
45 MF.getMachineMemOperand(MachinePointerInfo::getFixedStack(FrameIdx), in storeRegToStackSlot()
47 MFI.getObjectSize(FrameIdx), in storeRegToStackSlot()
48 MFI.getObjectAlignment(FrameIdx)); in storeRegToStackSlot()
52 .addFrameIndex(FrameIdx).addImm(0) in storeRegToStackSlot()
56 .addFrameIndex(FrameIdx).addImm(0) in storeRegToStackSlot()
64 unsigned DestReg, int FrameIdx, in loadRegFromStackSlot() argument
73 MF.getMachineMemOperand(MachinePointerInfo::getFixedStack(FrameIdx), in loadRegFromStackSlot()
75 MFI.getObjectSize(FrameIdx), in loadRegFromStackSlot()
76 MFI.getObjectAlignment(FrameIdx)); in loadRegFromStackSlot()
[all …]
DMSP430FrameLowering.cpp292 int FrameIdx = MF.getFrameInfo()->CreateFixedObject(2, -4, true); in processFunctionBeforeFrameFinalized() local
293 (void)FrameIdx; in processFunctionBeforeFrameFinalized()
294 assert(FrameIdx == MF.getFrameInfo()->getObjectIndexBegin() && in processFunctionBeforeFrameFinalized()
DMSP430InstrInfo.h67 unsigned DestReg, int FrameIdx,
/external/llvm/lib/Target/PowerPC/
DPPCInstrInfo.cpp440 int FrameIdx, in StoreRegToStackSlot() argument
450 FrameIdx)); in StoreRegToStackSlot()
459 FrameIdx)); in StoreRegToStackSlot()
466 FrameIdx)); in StoreRegToStackSlot()
475 FrameIdx)); in StoreRegToStackSlot()
481 FrameIdx)); in StoreRegToStackSlot()
486 FrameIdx)); in StoreRegToStackSlot()
491 FrameIdx)); in StoreRegToStackSlot()
524 return StoreRegToStackSlot(MF, Reg, isKill, FrameIdx, in StoreRegToStackSlot()
531 FrameIdx)); in StoreRegToStackSlot()
[all …]
DPPCInstrInfo.h72 unsigned SrcReg, bool isKill, int FrameIdx,
77 unsigned DestReg, int FrameIdx,
DPPCRegisterInfo.h70 int &FrameIdx) const;
DPPCRegisterInfo.cpp358 unsigned Reg, int &FrameIdx) const { in hasReservedSpillSlot()
367 FrameIdx = 0; in hasReservedSpillSlot()
370 FrameIdx = FI->getCRSpillFrameIndex(); in hasReservedSpillSlot()
DPPCFrameLowering.cpp836 int FrameIdx = MFI->CreateFixedObject((uint64_t)4, (int64_t)-4, true); in processFunctionBeforeCalleeSavedScan() local
837 FI->setCRSpillFrameIndex(FrameIdx); in processFunctionBeforeCalleeSavedScan()
/external/llvm/include/llvm/CodeGen/
DMachineFrameInfo.h38 int FrameIdx; variable
42 : Reg(R), FrameIdx(FI) {} in Reg()
46 int getFrameIdx() const { return FrameIdx; } in getFrameIdx()
47 void setFrameIdx(int FI) { FrameIdx = FI; } in setFrameIdx()
/external/llvm/lib/Target/AArch64/
DAArch64InstrInfo.cpp382 int FrameIdx, in storeRegToStackSlot() argument
388 unsigned Align = MFI.getObjectAlignment(FrameIdx); in storeRegToStackSlot()
391 = MF.getMachineMemOperand(MachinePointerInfo::getFixedStack(FrameIdx), in storeRegToStackSlot()
393 MFI.getObjectSize(FrameIdx), in storeRegToStackSlot()
419 .addFrameIndex(FrameIdx) in storeRegToStackSlot()
428 unsigned DestReg, int FrameIdx, in loadRegFromStackSlot() argument
434 unsigned Align = MFI.getObjectAlignment(FrameIdx); in loadRegFromStackSlot()
437 = MF.getMachineMemOperand(MachinePointerInfo::getFixedStack(FrameIdx), in loadRegFromStackSlot()
439 MFI.getObjectSize(FrameIdx), in loadRegFromStackSlot()
464 NewMI.addFrameIndex(FrameIdx) in loadRegFromStackSlot()
DAArch64FrameLowering.cpp300 int FrameIdx = MBBI->getOperand(FrameOp).getIndex(); in emitEpilogue() local
301 if (FrameIdx < MinCSFI || FrameIdx > MaxCSFI) in emitEpilogue()
496 int FrameIdx = CSI[i].getFrameIdx(); in emitFrameMemOps() local
500 MF.getMachineMemOperand(MachinePointerInfo::getFixedStack(FrameIdx), in emitFrameMemOps()
503 MFI.getObjectAlignment(FrameIdx)); in emitFrameMemOps()
505 NewMI.addFrameIndex(FrameIdx) in emitFrameMemOps()
DAArch64InstrInfo.h57 unsigned DestReg, int FrameIdx,
/external/llvm/lib/Target/XCore/
DXCoreFrameLowering.cpp399 int FrameIdx; in processFunctionBeforeCalleeSavedScan() local
402 FrameIdx = MFI->CreateFixedObject(RC->getSize(), 0, true); in processFunctionBeforeCalleeSavedScan()
404 FrameIdx = MFI->CreateStackObject(RC->getSize(), RC->getAlignment(), in processFunctionBeforeCalleeSavedScan()
407 XFI->setUsesLR(FrameIdx); in processFunctionBeforeCalleeSavedScan()
408 XFI->setLRSpillSlot(FrameIdx); in processFunctionBeforeCalleeSavedScan()
/external/llvm/lib/Target/X86/
DX86RegisterInfo.h118 int &FrameIdx) const;
DX86RegisterInfo.cpp444 unsigned Reg, int &FrameIdx) const { in hasReservedSpillSlot()
448 FrameIdx = MF.getFrameInfo()->getObjectIndexBegin(); in hasReservedSpillSlot()
DX86FrameLowering.cpp1363 int FrameIdx = MFI->CreateFixedObject(SlotSize, in processFunctionBeforeCalleeSavedScan() local
1368 assert(FrameIdx == MFI->getObjectIndexBegin() && in processFunctionBeforeCalleeSavedScan()
1370 (void)FrameIdx; in processFunctionBeforeCalleeSavedScan()
/external/llvm/include/llvm/Target/
DTargetRegisterInfo.h681 int &FrameIdx) const { in hasReservedSpillSlot() argument
716 unsigned BaseReg, int FrameIdx, in materializeFrameBaseRegister() argument
/external/llvm/lib/Target/ARM/
DARMBaseRegisterInfo.h132 unsigned BaseReg, int FrameIdx,
DARMBaseRegisterInfo.cpp542 unsigned BaseReg, int FrameIdx, in materializeFrameBaseRegister() argument
559 .addFrameIndex(FrameIdx).addImm(Offset)); in materializeFrameBaseRegister()
/external/llvm/lib/Target/Sparc/
DSparcISelLowering.cpp170 int FrameIdx = MF.getFrameInfo()->CreateFixedObject(4, 64, true); in LowerFormalArguments() local
171 SDValue FIPtr = DAG.getFrameIndex(FrameIdx, MVT::i32); in LowerFormalArguments()
191 int FrameIdx = MF.getFrameInfo()-> in LowerFormalArguments() local
193 SDValue FIPtr = DAG.getFrameIndex(FrameIdx, MVT::i32); in LowerFormalArguments()
324 int FrameIdx = MF.getFrameInfo()->CreateFixedObject(4, ArgOffset, in LowerFormalArguments() local
326 SDValue FIPtr = DAG.getFrameIndex(FrameIdx, MVT::i32); in LowerFormalArguments()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp1537 int FrameIdx = FrameInfo->CreateStackObject(ByteSize, StackAlign, false); in CreateStackTemporary() local
1538 return getFrameIndex(FrameIdx, TLI.getPointerTy()); in CreateStackTemporary()
1553 int FrameIdx = FrameInfo->CreateStackObject(Bytes, Align, false); in CreateStackTemporary() local
1554 return getFrameIndex(FrameIdx, TLI.getPointerTy()); in CreateStackTemporary()
6227 int FrameIdx = 1 << 31; in InferPtrAlignment() local
6230 FrameIdx = FI->getIndex(); in InferPtrAlignment()
6234 FrameIdx = cast<FrameIndexSDNode>(Ptr.getOperand(0))->getIndex(); in InferPtrAlignment()
6238 if (FrameIdx != (1 << 31)) { in InferPtrAlignment()
6240 unsigned FIInfoAlign = MinAlign(MFI.getObjectAlignment(FrameIdx), in InferPtrAlignment()

12