summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCInstrInfo.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-06-16 07:33:11 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-06-16 07:33:11 +0000
commit58dcb0e0cd3fa973b5fd005aecab1df6aeea5cd6 (patch)
tree0909e00e9275158712cd584f186f52b27cde04c5 /lib/Target/PowerPC/PPCInstrInfo.h
parent355780128986e375c7ac2a75025ac129bb8280bf (diff)
downloadllvm-58dcb0e0cd3fa973b5fd005aecab1df6aeea5cd6.tar.gz
llvm-58dcb0e0cd3fa973b5fd005aecab1df6aeea5cd6.tar.bz2
llvm-58dcb0e0cd3fa973b5fd005aecab1df6aeea5cd6.tar.xz
Add option to commuteInstruction() which forces it to create a new (commuted) instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52308 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCInstrInfo.h')
-rw-r--r--lib/Target/PowerPC/PPCInstrInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCInstrInfo.h b/lib/Target/PowerPC/PPCInstrInfo.h
index ffeab791c8..df36e9af69 100644
--- a/lib/Target/PowerPC/PPCInstrInfo.h
+++ b/lib/Target/PowerPC/PPCInstrInfo.h
@@ -96,7 +96,7 @@ public:
// commuteInstruction - We can commute rlwimi instructions, but only if the
// rotate amt is zero. We also have to munge the immediates a bit.
- virtual MachineInstr *commuteInstruction(MachineInstr *MI) const;
+ virtual MachineInstr *commuteInstruction(MachineInstr *MI, bool NewMI) const;
virtual void insertNoop(MachineBasicBlock &MBB,
MachineBasicBlock::iterator MI) const;