diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-06-16 07:33:11 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-06-16 07:33:11 +0000 |
commit | 58dcb0e0cd3fa973b5fd005aecab1df6aeea5cd6 (patch) | |
tree | 0909e00e9275158712cd584f186f52b27cde04c5 /lib/Target/PowerPC/PPCInstrInfo.h | |
parent | 355780128986e375c7ac2a75025ac129bb8280bf (diff) | |
download | llvm-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.h | 2 |
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; |