[llvm-commits] CVS: llvm/lib/Target/SparcV8/SparcV8ISelPattern.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Sep 13 12:32:29 PDT 2005
Changes in directory llvm/lib/Target/SparcV8:
SparcV8ISelPattern.cpp updated: 1.6 -> 1.7
---
Log message:
This has been moved to the target-indep code
---
Diffs of the changes: (+0 -22)
SparcV8ISelPattern.cpp | 22 ----------------------
1 files changed, 22 deletions(-)
Index: llvm/lib/Target/SparcV8/SparcV8ISelPattern.cpp
diff -u llvm/lib/Target/SparcV8/SparcV8ISelPattern.cpp:1.6 llvm/lib/Target/SparcV8/SparcV8ISelPattern.cpp:1.7
--- llvm/lib/Target/SparcV8/SparcV8ISelPattern.cpp:1.6 Tue Aug 16 14:49:35 2005
+++ llvm/lib/Target/SparcV8/SparcV8ISelPattern.cpp Tue Sep 13 14:32:18 2005
@@ -245,34 +245,12 @@
ExprMap.clear();
}
- virtual void EmitFunctionEntryCode(Function &Fn, MachineFunction &MF);
-
unsigned SelectExpr(SDOperand N);
void Select(SDOperand N);
};
}
-void ISel::EmitFunctionEntryCode(Function &Fn, MachineFunction &MF) {
- // If this function has live-in values, emit the copies from pregs to vregs at
- // the top of the function, before anything else.
- MachineBasicBlock *BB = MF.begin();
- if (MF.livein_begin() != MF.livein_end()) {
- SSARegMap *RegMap = MF.getSSARegMap();
- for (MachineFunction::livein_iterator LI = MF.livein_begin(),
- E = MF.livein_end(); LI != E; ++LI) {
- const TargetRegisterClass *RC = RegMap->getRegClass(LI->second);
- if (RC == V8::GPRCRegisterClass) {
- BuildMI(BB, V8::ORrr, 2, LI->second).addReg(LI->first).addReg(V8::G0);
- } else if (RC == V8::FPRCRegisterClass) {
- BuildMI(BB, V8::FMOVSrr, 2, LI->second).addReg(LI->first);
- } else {
- assert(0 && "Unknown regclass!");
- }
- }
- }
-}
-
//These describe LDAx
static const int IMM_LOW = -32768;
static const int IMM_HIGH = 32767;
More information about the llvm-commits
mailing list