diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-12-28 21:08:28 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-12-28 21:08:28 +0000 |
| commit | 26c23467c5075871475af905d44b08b462b475c0 (patch) | |
| tree | eaf36eefa02cb175fe2f864f1cd00a97a8448fe8 /llvm/lib | |
| parent | ca4362fee74f0f759f45da2e8db05bc304a8fc2b (diff) | |
| download | bcm5719-llvm-26c23467c5075871475af905d44b08b462b475c0.tar.gz bcm5719-llvm-26c23467c5075871475af905d44b08b462b475c0.zip | |
Rename FunctionFrameInfo to MachineFrameInfo
llvm-svn: 5201
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/InstSelectSimple.cpp | 14 | ||||
| -rw-r--r-- | llvm/lib/Target/X86/X86RegisterInfo.cpp | 22 |
2 files changed, 18 insertions, 18 deletions
diff --git a/llvm/lib/Target/X86/InstSelectSimple.cpp b/llvm/lib/Target/X86/InstSelectSimple.cpp index 2e1ea044c1e..ad8501d7982 100644 --- a/llvm/lib/Target/X86/InstSelectSimple.cpp +++ b/llvm/lib/Target/X86/InstSelectSimple.cpp @@ -20,7 +20,7 @@ #include "llvm/CodeGen/MachineFunction.h" #include "llvm/CodeGen/MachineInstrBuilder.h" #include "llvm/CodeGen/SSARegMap.h" -#include "llvm/CodeGen/FunctionFrameInfo.h" +#include "llvm/CodeGen/MachineFrameInfo.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Support/InstVisitor.h" #include "llvm/Target/MRegisterInfo.h" @@ -345,7 +345,7 @@ void ISel::LoadArgumentsToVirtualRegs(Function &Fn) { // ... // unsigned ArgOffset = 0; - FunctionFrameInfo *FFI = F->getFrameInfo(); + MachineFrameInfo *MFI = F->getFrameInfo(); for (Function::aiterator I = Fn.abegin(), E = Fn.aend(); I != E; ++I) { unsigned Reg = getReg(*I); @@ -355,26 +355,26 @@ void ISel::LoadArgumentsToVirtualRegs(Function &Fn) { switch (getClassB(I->getType())) { case cByte: - FI = FFI->CreateFixedObject(1, ArgOffset); + FI = MFI->CreateFixedObject(1, ArgOffset); addFrameReference(BuildMI(BB, X86::MOVmr8, 4, Reg), FI); break; case cShort: - FI = FFI->CreateFixedObject(2, ArgOffset); + FI = MFI->CreateFixedObject(2, ArgOffset); addFrameReference(BuildMI(BB, X86::MOVmr16, 4, Reg), FI); break; case cInt: - FI = FFI->CreateFixedObject(4, ArgOffset); + FI = MFI->CreateFixedObject(4, ArgOffset); addFrameReference(BuildMI(BB, X86::MOVmr32, 4, Reg), FI); break; case cFP: unsigned Opcode; if (I->getType() == Type::FloatTy) { Opcode = X86::FLDr32; - FI = FFI->CreateFixedObject(4, ArgOffset); + FI = MFI->CreateFixedObject(4, ArgOffset); } else { Opcode = X86::FLDr64; ArgOffset += 4; // doubles require 4 additional bytes - FI = FFI->CreateFixedObject(8, ArgOffset); + FI = MFI->CreateFixedObject(8, ArgOffset); } addFrameReference(BuildMI(BB, Opcode, 4, Reg), FI); break; diff --git a/llvm/lib/Target/X86/X86RegisterInfo.cpp b/llvm/lib/Target/X86/X86RegisterInfo.cpp index 7c89f740312..d45b21bf31c 100644 --- a/llvm/lib/Target/X86/X86RegisterInfo.cpp +++ b/llvm/lib/Target/X86/X86RegisterInfo.cpp @@ -12,7 +12,7 @@ #include "llvm/Type.h" #include "llvm/CodeGen/MachineInstrBuilder.h" #include "llvm/CodeGen/MachineFunction.h" -#include "llvm/CodeGen/FunctionFrameInfo.h" +#include "llvm/CodeGen/MachineFrameInfo.h" #include "Support/CommandLine.h" namespace { @@ -139,8 +139,8 @@ void X86RegisterInfo::eliminateFrameIndex(MachineFunction &MF, int Offset = MF.getFrameInfo()->getObjectOffset(FrameIndex); if (!hasFP(MF) && hasSPAdjust(MF)) { - const FunctionFrameInfo *FFI = MF.getFrameInfo(); - Offset += FFI->getStackSize() + FFI->getMaxCallFrameSize(); + const MachineFrameInfo *MFI = MF.getFrameInfo(); + Offset += MFI->getStackSize() + MFI->getMaxCallFrameSize(); } MI.SetMachineOperandConst(i, MachineOperand::MO_SignExtendedImmed, Offset); @@ -159,15 +159,15 @@ void X86RegisterInfo::processFunctionBeforeFrameFinalized(MachineFunction &MF) void X86RegisterInfo::emitPrologue(MachineFunction &MF) const { MachineBasicBlock &MBB = MF.front(); // Prolog goes in entry BB MachineBasicBlock::iterator MBBI = MBB.begin(); - const FunctionFrameInfo *FFI = MF.getFrameInfo(); + const MachineFrameInfo *MFI = MF.getFrameInfo(); MachineInstr *MI; // Get the number of bytes to allocate from the FrameInfo - unsigned NumBytes = FFI->getStackSize(); + unsigned NumBytes = MFI->getStackSize(); if (hasFP(MF)) { // Get the offset of the stack slot for the EBP register... which is // guaranteed to be the last slot by processFunctionBeforeFrameFinalized. - int EBPOffset = FFI->getObjectOffset(FFI->getObjectIndexEnd()-1); + int EBPOffset = MFI->getObjectOffset(MFI->getObjectIndexEnd()-1); MI = addRegOffset(BuildMI(X86::MOVrm32, 5), // mov [ESP-<offset>], EBP X86::ESP, EBPOffset).addReg(X86::EBP); @@ -187,7 +187,7 @@ void X86RegisterInfo::emitPrologue(MachineFunction &MF) const { // in the function immediately on entry to the current function. This // eliminates the need for add/sub ESP brackets around call sites. // - NumBytes += FFI->getMaxCallFrameSize(); + NumBytes += MFI->getMaxCallFrameSize(); } if (NumBytes) { @@ -199,7 +199,7 @@ void X86RegisterInfo::emitPrologue(MachineFunction &MF) const { void X86RegisterInfo::emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const { - const FunctionFrameInfo *FFI = MF.getFrameInfo(); + const MachineFrameInfo *MFI = MF.getFrameInfo(); MachineBasicBlock::iterator MBBI = MBB.end()-1; MachineInstr *MI; assert((*MBBI)->getOpcode() == X86::RET && @@ -208,7 +208,7 @@ void X86RegisterInfo::emitEpilogue(MachineFunction &MF, if (hasFP(MF)) { // Get the offset of the stack slot for the EBP register... which is // guaranteed to be the last slot by processFunctionBeforeFrameFinalized. - int EBPOffset = FFI->getObjectOffset(FFI->getObjectIndexEnd()-1); + int EBPOffset = MFI->getObjectOffset(MFI->getObjectIndexEnd()-1); // mov ESP, EBP MI = BuildMI(X86::MOVrr32, 1,X86::ESP).addReg(X86::EBP); @@ -221,8 +221,8 @@ void X86RegisterInfo::emitEpilogue(MachineFunction &MF, if (!hasSPAdjust(MF)) return; // Get the number of bytes allocated from the FrameInfo... - unsigned NumBytes = FFI->getStackSize(); - NumBytes += FFI->getMaxCallFrameSize(); + unsigned NumBytes = MFI->getStackSize(); + NumBytes += MFI->getMaxCallFrameSize(); if (NumBytes) { // adjust stack pointer back: ESP += numbytes MI =BuildMI(X86::ADDri32, 2, X86::ESP).addReg(X86::ESP).addZImm(NumBytes); |

