summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCFrameInfo.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2010-11-18 23:25:52 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2010-11-18 23:25:52 +0000
commit14ee344944cad9a61ff15e113c27df093d851ff1 (patch)
treef6888cee9de9a226327cf8a1952493116cd282fb /llvm/lib/Target/PowerPC/PPCFrameInfo.cpp
parenta391c97bd0032c0b5af03cde95f7c40683c02be8 (diff)
downloadbcm5719-llvm-14ee344944cad9a61ff15e113c27df093d851ff1.tar.gz
bcm5719-llvm-14ee344944cad9a61ff15e113c27df093d851ff1.zip
Move getInitialFrameState() to TargetFrameInfo
llvm-svn: 119754
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCFrameInfo.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCFrameInfo.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCFrameInfo.cpp b/llvm/lib/Target/PowerPC/PPCFrameInfo.cpp
index 453975c2671..8fa4bdad6e1 100644
--- a/llvm/lib/Target/PowerPC/PPCFrameInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPCFrameInfo.cpp
@@ -689,3 +689,10 @@ void PPCFrameInfo::emitEpilogue(MachineFunction &MF,
BuildMI(MBB, MBBI, dl, TII.get(PPC::TAILBA8)).addImm(JumpTarget.getImm());
}
}
+
+void PPCFrameInfo::getInitialFrameState(std::vector<MachineMove> &Moves) const {
+ // Initial state of the frame pointer is R1.
+ MachineLocation Dst(MachineLocation::VirtualFP);
+ MachineLocation Src(PPC::R1, 0);
+ Moves.push_back(MachineMove(0, Dst, Src));
+}
OpenPOWER on IntegriCloud