diff options
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPC32InstrInfo.h')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPC32InstrInfo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC32InstrInfo.h b/llvm/lib/Target/PowerPC/PPC32InstrInfo.h index 35bab982f0d..bbc0be4cd56 100644 --- a/llvm/lib/Target/PowerPC/PPC32InstrInfo.h +++ b/llvm/lib/Target/PowerPC/PPC32InstrInfo.h @@ -38,6 +38,10 @@ public: unsigned& sourceReg, unsigned& destReg) const; + // 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; + static unsigned invertPPCBranchOpcode(unsigned Opcode) { switch (Opcode) { default: assert(0 && "Unknown PPC branch opcode!"); |