aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-07-11 05:17:06 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-07-11 05:17:06 +0000
commitb0a258be2f154e83ef6ffe5f2437aa648a1279ca (patch)
tree75527087be7ceb27332a2c37c5787108cf8b8c2a /include/llvm/Target
parent1ba318982e4dcca66b6cf7ce624af2ba8a55d9d8 (diff)
downloadexternal_llvm-b0a258be2f154e83ef6ffe5f2437aa648a1279ca.zip
external_llvm-b0a258be2f154e83ef6ffe5f2437aa648a1279ca.tar.gz
external_llvm-b0a258be2f154e83ef6ffe5f2437aa648a1279ca.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108075 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r--include/llvm/Target/TargetInstrInfo.h25
1 files changed, 12 insertions, 13 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h
index b505d16..6a4573b 100644
--- a/include/llvm/Target/TargetInstrInfo.h
+++ b/include/llvm/Target/TargetInstrInfo.h
@@ -353,19 +353,6 @@ public:
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 @@ public:
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