[llvm-commits] [llvm] r108075 - /llvm/trunk/include/llvm/Target/TargetInstrInfo.h
Jakob Stoklund Olesen
stoklund at 2pi.dk
Sat Jul 10 22:17:06 PDT 2010
Author: stoklund
Date: Sun Jul 11 00:17:06 2010
New Revision: 108075
URL: http://llvm.org/viewvc/llvm-project?rev=108075&view=rev
Log:
Remove copyRegToReg from TargetInstrInfo so it is not longer accesible.
Use a COPY instruction instead for register copies, or TII::copyPhysReg() after
COPY instructions are lowered.
Targets should implement copyPhysReg instead of copyRegToReg.
Modified:
llvm/trunk/include/llvm/Target/TargetInstrInfo.h
Modified: llvm/trunk/include/llvm/Target/TargetInstrInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetInstrInfo.h?rev=108075&r1=108074&r2=108075&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetInstrInfo.h (original)
+++ llvm/trunk/include/llvm/Target/TargetInstrInfo.h Sun Jul 11 00:17:06 2010
@@ -353,19 +353,6 @@
return false;
}
- /// copyRegToReg - Emit instructions to copy between a pair of registers. It
- /// returns false if the target does not how to copy between the specified
- /// registers.
- virtual bool copyRegToReg(MachineBasicBlock &MBB,
- MachineBasicBlock::iterator MI,
- unsigned DestReg, unsigned SrcReg,
- const TargetRegisterClass *DestRC,
- const TargetRegisterClass *SrcRC,
- DebugLoc DL) const {
- assert(0 && "Target didn't implement TargetInstrInfo::copyRegToReg!");
- return false;
- }
-
/// copyPhysReg - Emit instructions to copy a pair of physical registers.
virtual void copyPhysReg(MachineBasicBlock &MBB,
MachineBasicBlock::iterator MI, DebugLoc DL,
@@ -665,6 +652,18 @@
MachineBasicBlock::iterator MI, DebugLoc DL,
unsigned DestReg, unsigned SrcReg,
bool KillSrc) const;
+ /// copyRegToReg - Legacy hook going away soon. Targets should implement
+ /// copyPhysReg instead.
+ virtual bool copyRegToReg(MachineBasicBlock &MBB,
+ MachineBasicBlock::iterator MI,
+ unsigned DestReg, unsigned SrcReg,
+ const TargetRegisterClass *DestRC,
+ const TargetRegisterClass *SrcRC,
+ DebugLoc DL) const {
+ assert(0 && "Target didn't implement TargetInstrInfo::copyPhysReg!");
+ return false;
+ }
+
};
} // End llvm namespace
More information about the llvm-commits
mailing list