aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetInstrInfo.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-08-26 18:03:31 +0000
committerOwen Anderson <resistor@mac.com>2008-08-26 18:03:31 +0000
commit940f83e772ca2007d62faffc83094bd7e8da6401 (patch)
tree694da4480cf7a13b73a4526ac7769da901b501e7 /include/llvm/Target/TargetInstrInfo.h
parenta0b3909d432e9f2c79aee8ec3133f9b9ec71dc1a (diff)
downloadexternal_llvm-940f83e772ca2007d62faffc83094bd7e8da6401.zip
external_llvm-940f83e772ca2007d62faffc83094bd7e8da6401.tar.gz
external_llvm-940f83e772ca2007d62faffc83094bd7e8da6401.tar.bz2
Make TargetInstrInfo::copyRegToReg return a bool indicating whether the copy requested
was inserted or not. This allows bitcast in fast isel to properly handle the case where an appropriate reg-to-reg copy is not available. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55375 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetInstrInfo.h')
-rw-r--r--include/llvm/Target/TargetInstrInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h
index b8d9395..91ba3ad 100644
--- a/include/llvm/Target/TargetInstrInfo.h
+++ b/include/llvm/Target/TargetInstrInfo.h
@@ -221,7 +221,7 @@ public:
}
/// copyRegToReg - Add a copy between a pair of registers
- virtual void copyRegToReg(MachineBasicBlock &MBB,
+ virtual bool copyRegToReg(MachineBasicBlock &MBB,
MachineBasicBlock::iterator MI,
unsigned DestReg, unsigned SrcReg,
const TargetRegisterClass *DestRC,