llvm.org GIT mirror llvm / 59db549
convert targets to the new MF.getMachineMemOperand interface. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114391 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 10 years ago
9 changed file(s) with 42 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
636636 unsigned Align = MFI.getObjectAlignment(FI);
637637
638638 MachineMemOperand *MMO =
639 MF.getMachineMemOperand(PseudoSourceValue::getFixedStack(FI),
640 MachineMemOperand::MOStore, 0,
639 MF.getMachineMemOperand(MachinePointerInfo(
640 PseudoSourceValue::getFixedStack(FI)),
641 MachineMemOperand::MOStore,
641642 MFI.getObjectSize(FI),
642643 Align);
643644
782783 MachineFrameInfo &MFI = *MF.getFrameInfo();
783784 unsigned Align = MFI.getObjectAlignment(FI);
784785 MachineMemOperand *MMO =
785 MF.getMachineMemOperand(PseudoSourceValue::getFixedStack(FI),
786 MachineMemOperand::MOLoad, 0,
786 MF.getMachineMemOperand(
787 MachinePointerInfo(PseudoSourceValue::getFixedStack(FI)),
788 MachineMemOperand::MOLoad,
787789 MFI.getObjectSize(FI),
788790 Align);
789791
7070 MachineFunction &MF = *MBB.getParent();
7171 MachineFrameInfo &MFI = *MF.getFrameInfo();
7272 MachineMemOperand *MMO =
73 MF.getMachineMemOperand(PseudoSourceValue::getFixedStack(FI),
74 MachineMemOperand::MOStore, 0,
73 MF.getMachineMemOperand(
74 MachinePointerInfo(PseudoSourceValue::getFixedStack(FI)),
75 MachineMemOperand::MOStore,
7576 MFI.getObjectSize(FI),
7677 MFI.getObjectAlignment(FI));
7778 AddDefaultPred(BuildMI(MBB, I, DL, get(ARM::tSpill))
9899 MachineFunction &MF = *MBB.getParent();
99100 MachineFrameInfo &MFI = *MF.getFrameInfo();
100101 MachineMemOperand *MMO =
101 MF.getMachineMemOperand(PseudoSourceValue::getFixedStack(FI),
102 MachineMemOperand::MOLoad, 0,
102 MF.getMachineMemOperand(
103 MachinePointerInfo(PseudoSourceValue::getFixedStack(FI)),
104 MachineMemOperand::MOLoad,
103105 MFI.getObjectSize(FI),
104106 MFI.getObjectAlignment(FI));
105107 AddDefaultPred(BuildMI(MBB, I, DL, get(ARM::tRestore), DestReg)
154154 MachineFunction &MF = *MBB.getParent();
155155 MachineFrameInfo &MFI = *MF.getFrameInfo();
156156 MachineMemOperand *MMO =
157 MF.getMachineMemOperand(PseudoSourceValue::getFixedStack(FI),
158 MachineMemOperand::MOStore, 0,
157 MF.getMachineMemOperand(
158 MachinePointerInfo(PseudoSourceValue::getFixedStack(FI)),
159 MachineMemOperand::MOStore,
159160 MFI.getObjectSize(FI),
160161 MFI.getObjectAlignment(FI));
161162 AddDefaultPred(BuildMI(MBB, I, DL, get(ARM::t2STRi12))
180181 MachineFunction &MF = *MBB.getParent();
181182 MachineFrameInfo &MFI = *MF.getFrameInfo();
182183 MachineMemOperand *MMO =
183 MF.getMachineMemOperand(PseudoSourceValue::getFixedStack(FI),
184 MachineMemOperand::MOLoad, 0,
184 MF.getMachineMemOperand(
185 MachinePointerInfo(PseudoSourceValue::getFixedStack(FI)),
186 MachineMemOperand::MOLoad,
185187 MFI.getObjectSize(FI),
186188 MFI.getObjectAlignment(FI));
187189 AddDefaultPred(BuildMI(MBB, I, DL, get(ARM::t2LDRi12), DestReg)
3939 MachineFrameInfo &MFI = *MF.getFrameInfo();
4040
4141 MachineMemOperand *MMO =
42 MF.getMachineMemOperand(PseudoSourceValue::getFixedStack(FrameIdx),
43 MachineMemOperand::MOStore, 0,
42 MF.getMachineMemOperand(
43 MachinePointerInfo(PseudoSourceValue::getFixedStack(FrameIdx)),
44 MachineMemOperand::MOStore,
4445 MFI.getObjectSize(FrameIdx),
4546 MFI.getObjectAlignment(FrameIdx));
4647
6768 MachineFrameInfo &MFI = *MF.getFrameInfo();
6869
6970 MachineMemOperand *MMO =
70 MF.getMachineMemOperand(PseudoSourceValue::getFixedStack(FrameIdx),
71 MachineMemOperand::MOLoad, 0,
71 MF.getMachineMemOperand(
72 MachinePointerInfo(PseudoSourceValue::getFixedStack(FrameIdx)),
73 MachineMemOperand::MOLoad,
7274 MFI.getObjectSize(FrameIdx),
7375 MFI.getObjectAlignment(FrameIdx));
7476
35903590
35913591 // STD the extended value into the stack slot.
35923592 MachineMemOperand *MMO =
3593 MF.getMachineMemOperand(PseudoSourceValue::getFixedStack(FrameIdx),
3594 MachineMemOperand::MOStore, 0, 8, 8);
3593 MF.getMachineMemOperand(
3594 MachinePointerInfo(PseudoSourceValue::getFixedStack(FrameIdx)),
3595 MachineMemOperand::MOStore, 8, 8);
35953596 SDValue Ops[] = { DAG.getEntryNode(), Ext64, FIdx };
35963597 SDValue Store =
35973598 DAG.getMemIntrinsicNode(PPCISD::STD_32, dl, DAG.getVTList(MVT::Other),
468468
469469 const MachineFrameInfo &MFI = *MF.getFrameInfo();
470470 MachineMemOperand *MMO =
471 MF.getMachineMemOperand(PseudoSourceValue::getFixedStack(FrameIdx),
472 MachineMemOperand::MOStore, /*Offset=*/0,
471 MF.getMachineMemOperand(
472 MachinePointerInfo(PseudoSourceValue::getFixedStack(FrameIdx)),
473 MachineMemOperand::MOStore,
473474 MFI.getObjectSize(FrameIdx),
474475 MFI.getObjectAlignment(FrameIdx));
475476 NewMIs.back()->addMemOperand(MF, MMO);
589590
590591 const MachineFrameInfo &MFI = *MF.getFrameInfo();
591592 MachineMemOperand *MMO =
592 MF.getMachineMemOperand(PseudoSourceValue::getFixedStack(FrameIdx),
593 MachineMemOperand::MOLoad, /*Offset=*/0,
593 MF.getMachineMemOperand(
594 MachinePointerInfo(PseudoSourceValue::getFixedStack(FrameIdx)),
595 MachineMemOperand::MOLoad,
594596 MFI.getObjectSize(FrameIdx),
595597 MFI.getObjectAlignment(FrameIdx));
596598 NewMIs.back()->addMemOperand(MF, MMO);
114114 if (TID.mayStore())
115115 Flags |= MachineMemOperand::MOStore;
116116 MachineMemOperand *MMO =
117 MF.getMachineMemOperand(PseudoSourceValue::getFixedStack(FI),
118 Flags, Offset,
119 MFI.getObjectSize(FI),
117 MF.getMachineMemOperand(MachinePointerInfo(
118 PseudoSourceValue::getFixedStack(FI), Offset),
119 Flags, MFI.getObjectSize(FI),
120120 MFI.getObjectAlignment(FI));
121121 return addOffset(MIB.addFrameIndex(FI), Offset)
122122 .addMemOperand(MMO);
94629462 int64_t Offset = (i - 3) * 16 + VarArgsFPOffset;
94639463 MachineMemOperand *MMO =
94649464 F->getMachineMemOperand(
9465 PseudoSourceValue::getFixedStack(RegSaveFrameIndex),
9466 MachineMemOperand::MOStore, Offset,
9465 MachinePointerInfo(PseudoSourceValue::getFixedStack(RegSaveFrameIndex),
9466 Offset),
9467 MachineMemOperand::MOStore,
94679468 /*Size=*/16, /*Align=*/16);
94689469 BuildMI(XMMSaveMBB, DL, TII->get(X86::MOVAPSmr))
94699470 .addFrameIndex(RegSaveFrameIndex)
156156 if (TID.mayStore())
157157 Flags |= MachineMemOperand::MOStore;
158158 MachineMemOperand *MMO =
159 MF.getMachineMemOperand(PseudoSourceValue::getFixedStack(FI),
160 Flags, Offset,
161 MFI.getObjectSize(FI),
159 MF.getMachineMemOperand(MachinePointerInfo(
160 PseudoSourceValue::getFixedStack(FI), Offset),
161 Flags, MFI.getObjectSize(FI),
162162 MFI.getObjectAlignment(FI));
163163 return addOffset(MIB.addFrameIndex(FI), Offset)
164164 .addMemOperand(MMO);