Home
last modified time | relevance | path

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

1234

/external/swiftshader/third_party/LLVM/lib/CodeGen/
DLocalStackSlotAllocation.cpp61 void AdjustStackOffset(MachineFrameInfo *MFI, int FrameIdx, int64_t &Offset,
119 int FrameIdx, int64_t &Offset, in AdjustStackOffset() argument
124 Offset += MFI->getObjectSize(FrameIdx); in AdjustStackOffset()
126 unsigned Align = MFI->getObjectAlignment(FrameIdx); in AdjustStackOffset()
136 DEBUG(dbgs() << "Allocate FI(" << FrameIdx << ") to local offset " in AdjustStackOffset()
139 LocalOffsets[FrameIdx] = LocalOffset; in AdjustStackOffset()
141 MFI->mapLocalFrameObject(FrameIdx, LocalOffset); in AdjustStackOffset()
144 Offset += MFI->getObjectSize(FrameIdx); in AdjustStackOffset()
287 int FrameIdx = MI->getOperand(idx).getIndex(); in insertFrameReferenceRegisters() local
289 assert(MFI->isObjectPreAllocated(FrameIdx) && in insertFrameReferenceRegisters()
[all …]
DPrologEpilogInserter.cpp255 int FrameIdx; in calculateCalleeSavedRegisters() local
256 if (RegInfo->hasReservedSpillSlot(Fn, Reg, FrameIdx)) { in calculateCalleeSavedRegisters()
257 I->setFrameIdx(FrameIdx); in calculateCalleeSavedRegisters()
277 FrameIdx = MFI->CreateStackObject(RC->getSize(), Align, true); in calculateCalleeSavedRegisters()
278 if ((unsigned)FrameIdx < MinCSFrameIndex) MinCSFrameIndex = FrameIdx; in calculateCalleeSavedRegisters()
279 if ((unsigned)FrameIdx > MaxCSFrameIndex) MaxCSFrameIndex = FrameIdx; in calculateCalleeSavedRegisters()
282 FrameIdx = MFI->CreateFixedObject(RC->getSize(), FixedSlot->Offset, true); in calculateCalleeSavedRegisters()
285 I->setFrameIdx(FrameIdx); in calculateCalleeSavedRegisters()
467 AdjustStackOffset(MachineFrameInfo *MFI, int FrameIdx, in AdjustStackOffset() argument
472 Offset += MFI->getObjectSize(FrameIdx); in AdjustStackOffset()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DLocalStackSlotAllocation.cpp54 int FrameIdx; // The frame index member in __anone05e87a00111::FrameRef
63 MI(I), LocalOffset(Offset), FrameIdx(Idx), Order(Ord) {} in FrameRef()
66 return std::tie(LocalOffset, FrameIdx, Order) < in operator <()
67 std::tie(RHS.LocalOffset, RHS.FrameIdx, RHS.Order); in operator <()
72 int getFrameIndex() const { return FrameIdx; } in getFrameIndex()
81 void AdjustStackOffset(MachineFrameInfo &MFI, int FrameIdx, int64_t &Offset,
144 int FrameIdx, int64_t &Offset, in AdjustStackOffset() argument
149 Offset += MFI.getObjectSize(FrameIdx); in AdjustStackOffset()
151 unsigned Align = MFI.getObjectAlignment(FrameIdx); in AdjustStackOffset()
161 LLVM_DEBUG(dbgs() << "Allocate FI(" << FrameIdx << ") to local offset " in AdjustStackOffset()
[all …]
DPrologEpilogInserter.cpp363 int FrameIdx; in assignCalleeSavedSpillSlots() local
364 if (RegInfo->hasReservedSpillSlot(F, Reg, FrameIdx)) { in assignCalleeSavedSpillSlots()
365 CS.setFrameIdx(FrameIdx); in assignCalleeSavedSpillSlots()
386 FrameIdx = MFI.CreateStackObject(Size, Align, true); in assignCalleeSavedSpillSlots()
387 if ((unsigned)FrameIdx < MinCSFrameIndex) MinCSFrameIndex = FrameIdx; in assignCalleeSavedSpillSlots()
388 if ((unsigned)FrameIdx > MaxCSFrameIndex) MaxCSFrameIndex = FrameIdx; in assignCalleeSavedSpillSlots()
391 FrameIdx = MFI.CreateFixedSpillStackObject(Size, FixedSlot->Offset); in assignCalleeSavedSpillSlots()
394 CS.setFrameIdx(FrameIdx); in assignCalleeSavedSpillSlots()
547 AdjustStackOffset(MachineFrameInfo &MFI, int FrameIdx, in AdjustStackOffset() argument
552 Offset += MFI.getObjectSize(FrameIdx); in AdjustStackOffset()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/PowerPC/
DPPCInstrInfo.cpp333 int FrameIdx, in StoreRegToStackSlot() argument
342 FrameIdx)); in StoreRegToStackSlot()
351 FrameIdx)); in StoreRegToStackSlot()
358 FrameIdx)); in StoreRegToStackSlot()
367 FrameIdx)); in StoreRegToStackSlot()
373 FrameIdx)); in StoreRegToStackSlot()
378 FrameIdx)); in StoreRegToStackSlot()
386 FrameIdx)); in StoreRegToStackSlot()
415 FrameIdx)); in StoreRegToStackSlot()
448 return StoreRegToStackSlot(MF, Reg, isKill, FrameIdx, in StoreRegToStackSlot()
[all …]
DPPCInstrInfo.h72 unsigned SrcReg, bool isKill, int FrameIdx,
76 unsigned DestReg, int FrameIdx,
/external/llvm/lib/CodeGen/
DLocalStackSlotAllocation.cpp53 int FrameIdx; // The frame index member in __anonaf996c480111::FrameRef
56 MI(I), LocalOffset(Offset), FrameIdx(Idx) {} in FrameRef()
62 int getFrameIndex() const { return FrameIdx; } in getFrameIndex()
70 void AdjustStackOffset(MachineFrameInfo *MFI, int FrameIdx, int64_t &Offset,
135 int FrameIdx, int64_t &Offset, in AdjustStackOffset() argument
140 Offset += MFI->getObjectSize(FrameIdx); in AdjustStackOffset()
142 unsigned Align = MFI->getObjectAlignment(FrameIdx); in AdjustStackOffset()
152 DEBUG(dbgs() << "Allocate FI(" << FrameIdx << ") to local offset " in AdjustStackOffset()
155 LocalOffsets[FrameIdx] = LocalOffset; in AdjustStackOffset()
157 MFI->mapLocalFrameObject(FrameIdx, LocalOffset); in AdjustStackOffset()
[all …]
DPrologEpilogInserter.cpp360 int FrameIdx; in assignCalleeSavedSpillSlots() local
361 if (RegInfo->hasReservedSpillSlot(F, Reg, FrameIdx)) { in assignCalleeSavedSpillSlots()
362 CS.setFrameIdx(FrameIdx); in assignCalleeSavedSpillSlots()
382 FrameIdx = MFI->CreateStackObject(RC->getSize(), Align, true); in assignCalleeSavedSpillSlots()
383 if ((unsigned)FrameIdx < MinCSFrameIndex) MinCSFrameIndex = FrameIdx; in assignCalleeSavedSpillSlots()
384 if ((unsigned)FrameIdx > MaxCSFrameIndex) MaxCSFrameIndex = FrameIdx; in assignCalleeSavedSpillSlots()
387 FrameIdx = in assignCalleeSavedSpillSlots()
391 CS.setFrameIdx(FrameIdx); in assignCalleeSavedSpillSlots()
554 AdjustStackOffset(MachineFrameInfo *MFI, int FrameIdx, in AdjustStackOffset() argument
559 Offset += MFI->getObjectSize(FrameIdx); in AdjustStackOffset()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/MSP430/
DMSP430InstrInfo.cpp37 unsigned SrcReg, bool isKill, int FrameIdx, in storeRegToStackSlot() argument
47 MachinePointerInfo(PseudoSourceValue::getFixedStack(FrameIdx)), in storeRegToStackSlot()
49 MFI.getObjectSize(FrameIdx), in storeRegToStackSlot()
50 MFI.getObjectAlignment(FrameIdx)); in storeRegToStackSlot()
54 .addFrameIndex(FrameIdx).addImm(0) in storeRegToStackSlot()
58 .addFrameIndex(FrameIdx).addImm(0) in storeRegToStackSlot()
66 unsigned DestReg, int FrameIdx, in loadRegFromStackSlot() argument
76 MachinePointerInfo(PseudoSourceValue::getFixedStack(FrameIdx)), in loadRegFromStackSlot()
78 MFI.getObjectSize(FrameIdx), in loadRegFromStackSlot()
79 MFI.getObjectAlignment(FrameIdx)); in loadRegFromStackSlot()
[all …]
DMSP430RegisterInfo.cpp229 int FrameIdx = MF.getFrameInfo()->CreateFixedObject(2, -4, true); in processFunctionBeforeFrameFinalized() local
230 (void)FrameIdx; in processFunctionBeforeFrameFinalized()
231 assert(FrameIdx == MF.getFrameInfo()->getObjectIndexBegin() && in processFunctionBeforeFrameFinalized()
/external/llvm/lib/Target/MSP430/
DMSP430InstrInfo.cpp39 unsigned SrcReg, bool isKill, int FrameIdx, in storeRegToStackSlot() argument
48 MachinePointerInfo::getFixedStack(MF, FrameIdx), in storeRegToStackSlot()
49 MachineMemOperand::MOStore, MFI.getObjectSize(FrameIdx), in storeRegToStackSlot()
50 MFI.getObjectAlignment(FrameIdx)); in storeRegToStackSlot()
54 .addFrameIndex(FrameIdx).addImm(0) in storeRegToStackSlot()
58 .addFrameIndex(FrameIdx).addImm(0) in storeRegToStackSlot()
66 unsigned DestReg, int FrameIdx, in loadRegFromStackSlot() argument
75 MachinePointerInfo::getFixedStack(MF, FrameIdx), in loadRegFromStackSlot()
76 MachineMemOperand::MOLoad, MFI.getObjectSize(FrameIdx), in loadRegFromStackSlot()
77 MFI.getObjectAlignment(FrameIdx)); in loadRegFromStackSlot()
[all …]
DMSP430FrameLowering.cpp296 int FrameIdx = MF.getFrameInfo()->CreateFixedObject(2, -4, true); in processFunctionBeforeFrameFinalized() local
297 (void)FrameIdx; in processFunctionBeforeFrameFinalized()
298 assert(FrameIdx == MF.getFrameInfo()->getObjectIndexBegin() && in processFunctionBeforeFrameFinalized()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/MSP430/
DMSP430InstrInfo.cpp39 unsigned SrcReg, bool isKill, int FrameIdx, in storeRegToStackSlot() argument
48 MachinePointerInfo::getFixedStack(MF, FrameIdx), in storeRegToStackSlot()
49 MachineMemOperand::MOStore, MFI.getObjectSize(FrameIdx), in storeRegToStackSlot()
50 MFI.getObjectAlignment(FrameIdx)); in storeRegToStackSlot()
54 .addFrameIndex(FrameIdx).addImm(0) in storeRegToStackSlot()
58 .addFrameIndex(FrameIdx).addImm(0) in storeRegToStackSlot()
66 unsigned DestReg, int FrameIdx, in loadRegFromStackSlot() argument
75 MachinePointerInfo::getFixedStack(MF, FrameIdx), in loadRegFromStackSlot()
76 MachineMemOperand::MOLoad, MFI.getObjectSize(FrameIdx), in loadRegFromStackSlot()
77 MFI.getObjectAlignment(FrameIdx)); in loadRegFromStackSlot()
[all …]
DMSP430FrameLowering.cpp295 int FrameIdx = MF.getFrameInfo().CreateFixedObject(2, -4, true); in processFunctionBeforeFrameFinalized() local
296 (void)FrameIdx; in processFunctionBeforeFrameFinalized()
297 assert(FrameIdx == MF.getFrameInfo().getObjectIndexBegin() && in processFunctionBeforeFrameFinalized()
/external/llvm/lib/Target/NVPTX/
DNVPTXPrologEpilogPass.cpp83 AdjustStackOffset(MachineFrameInfo *MFI, int FrameIdx, in AdjustStackOffset() argument
88 Offset += MFI->getObjectSize(FrameIdx); in AdjustStackOffset()
90 unsigned Align = MFI->getObjectAlignment(FrameIdx); in AdjustStackOffset()
100 DEBUG(dbgs() << "alloc FI(" << FrameIdx << ") at SP[" << -Offset << "]\n"); in AdjustStackOffset()
101 MFI->setObjectOffset(FrameIdx, -Offset); // Set the computed offset in AdjustStackOffset()
103 DEBUG(dbgs() << "alloc FI(" << FrameIdx << ") at SP[" << Offset << "]\n"); in AdjustStackOffset()
104 MFI->setObjectOffset(FrameIdx, Offset); in AdjustStackOffset()
105 Offset += MFI->getObjectSize(FrameIdx); in AdjustStackOffset()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/NVPTX/
DNVPTXPrologEpilogPass.cpp83 AdjustStackOffset(MachineFrameInfo &MFI, int FrameIdx, in AdjustStackOffset() argument
88 Offset += MFI.getObjectSize(FrameIdx); in AdjustStackOffset()
90 unsigned Align = MFI.getObjectAlignment(FrameIdx); in AdjustStackOffset()
100 LLVM_DEBUG(dbgs() << "alloc FI(" << FrameIdx << ") at SP[" << -Offset in AdjustStackOffset()
102 MFI.setObjectOffset(FrameIdx, -Offset); // Set the computed offset in AdjustStackOffset()
104 LLVM_DEBUG(dbgs() << "alloc FI(" << FrameIdx << ") at SP[" << Offset in AdjustStackOffset()
106 MFI.setObjectOffset(FrameIdx, Offset); in AdjustStackOffset()
107 Offset += MFI.getObjectSize(FrameIdx); in AdjustStackOffset()
/external/llvm/lib/Target/PowerPC/
DPPCInstrInfo.cpp958 int FrameIdx, in StoreRegToStackSlot() argument
971 FrameIdx)); in StoreRegToStackSlot()
977 FrameIdx)); in StoreRegToStackSlot()
982 FrameIdx)); in StoreRegToStackSlot()
987 FrameIdx)); in StoreRegToStackSlot()
992 FrameIdx)); in StoreRegToStackSlot()
998 FrameIdx)); in StoreRegToStackSlot()
1004 FrameIdx)); in StoreRegToStackSlot()
1010 FrameIdx)); in StoreRegToStackSlot()
1016 FrameIdx)); in StoreRegToStackSlot()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/Alpha/
DAlphaInstrInfo.cpp145 unsigned SrcReg, bool isKill, int FrameIdx, in storeRegToStackSlot() argument
158 .addFrameIndex(FrameIdx).addReg(Alpha::F31); in storeRegToStackSlot()
162 .addFrameIndex(FrameIdx).addReg(Alpha::F31); in storeRegToStackSlot()
166 .addFrameIndex(FrameIdx).addReg(Alpha::F31); in storeRegToStackSlot()
174 unsigned DestReg, int FrameIdx, in loadRegFromStackSlot() argument
184 .addFrameIndex(FrameIdx).addReg(Alpha::F31); in loadRegFromStackSlot()
187 .addFrameIndex(FrameIdx).addReg(Alpha::F31); in loadRegFromStackSlot()
190 .addFrameIndex(FrameIdx).addReg(Alpha::F31); in loadRegFromStackSlot()
/external/llvm/lib/Target/AArch64/
DAArch64FrameLowering.cpp877 int FrameIdx; member
938 RPI.FrameIdx = CSI[i].getFrameIdx(); in computeCalleeSaveRegisterPairs()
944 assert(MFI->getObjectAlignment(RPI.FrameIdx) <= 16); in computeCalleeSaveRegisterPairs()
945 MFI->setObjectAlignment(RPI.FrameIdx, 16); in computeCalleeSaveRegisterPairs()
995 dbgs() << ") -> fi#(" << RPI.FrameIdx; in spillCalleeSavedRegisters()
997 dbgs() << ", " << RPI.FrameIdx+1; in spillCalleeSavedRegisters()
1006 MachinePointerInfo::getFixedStack(MF, RPI.FrameIdx + 1), in spillCalleeSavedRegisters()
1014 MachinePointerInfo::getFixedStack(MF, RPI.FrameIdx), in spillCalleeSavedRegisters()
1056 dbgs() << ") -> fi#(" << RPI.FrameIdx; in restoreCalleeSavedRegisters()
1058 dbgs() << ", " << RPI.FrameIdx+1; in restoreCalleeSavedRegisters()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/CellSPU/
DSPUInstrInfo.cpp141 unsigned SrcReg, bool isKill, int FrameIdx, in storeRegToStackSlot() argument
146 bool isValidFrameIdx = (FrameIdx < SPUFrameLowering::maxFrameOffset()); in storeRegToStackSlot()
170 .addReg(SrcReg, getKillRegState(isKill)), FrameIdx); in storeRegToStackSlot()
176 unsigned DestReg, int FrameIdx, in loadRegFromStackSlot() argument
181 bool isValidFrameIdx = (FrameIdx < SPUFrameLowering::maxFrameOffset()); in loadRegFromStackSlot()
204 addFrameReference(BuildMI(MBB, MI, DL, get(opc), DestReg), FrameIdx); in loadRegFromStackSlot()
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/
DMachineFrameInfo.h36 int FrameIdx; variable
40 : Reg(R), FrameIdx(FI) {} in Reg()
44 int getFrameIdx() const { return FrameIdx; } in getFrameIdx()
45 void setFrameIdx(int FI) { FrameIdx = FI; } in setFrameIdx()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64FrameLowering.cpp1144 int FrameIdx; member
1220 RPI.FrameIdx = CSI[i].getFrameIdx(); in computeCalleeSaveRegisterPairs()
1226 assert(MFI.getObjectAlignment(RPI.FrameIdx) <= 16); in computeCalleeSaveRegisterPairs()
1227 MFI.setObjectAlignment(RPI.FrameIdx, 16); in computeCalleeSaveRegisterPairs()
1292 dbgs() << ") -> fi#(" << RPI.FrameIdx; in spillCalleeSavedRegisters()
1293 if (RPI.isPaired()) dbgs() << ", " << RPI.FrameIdx + 1; in spillCalleeSavedRegisters()
1304 MachinePointerInfo::getFixedStack(MF, RPI.FrameIdx + 1), in spillCalleeSavedRegisters()
1312 MachinePointerInfo::getFixedStack(MF, RPI.FrameIdx), in spillCalleeSavedRegisters()
1353 dbgs() << ") -> fi#(" << RPI.FrameIdx; in restoreCalleeSavedRegisters()
1354 if (RPI.isPaired()) dbgs() << ", " << RPI.FrameIdx + 1; in restoreCalleeSavedRegisters()
[all …]
/external/llvm/include/llvm/CodeGen/
DMachineFrameInfo.h39 int FrameIdx; variable
43 : Reg(R), FrameIdx(FI) {} in Reg()
47 int getFrameIdx() const { return FrameIdx; } in getFrameIdx()
48 void setFrameIdx(int FI) { FrameIdx = FI; } in setFrameIdx()
/external/swiftshader/third_party/LLVM/lib/Target/XCore/
DXCoreFrameLowering.cpp351 int FrameIdx; in processFunctionBeforeCalleeSavedScan() local
354 FrameIdx = MFI->CreateFixedObject(RC->getSize(), 0, true); in processFunctionBeforeCalleeSavedScan()
356 FrameIdx = MFI->CreateStackObject(RC->getSize(), RC->getAlignment(), in processFunctionBeforeCalleeSavedScan()
359 XFI->setUsesLR(FrameIdx); in processFunctionBeforeCalleeSavedScan()
360 XFI->setLRSpillSlot(FrameIdx); in processFunctionBeforeCalleeSavedScan()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DMachineFrameInfo.h33 int FrameIdx; variable
50 : Reg(R), FrameIdx(FI), Restored(true) {} in Reg()
54 int getFrameIdx() const { return FrameIdx; } in getFrameIdx()
55 void setFrameIdx(int FI) { FrameIdx = FI; } in setFrameIdx()

1234