mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Add a new method, described in the comment.
llvm-svn: 19683
This commit is contained in:
parent
ceca0b7b62
commit
2a03fa3a5c
@ -177,6 +177,18 @@ public:
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// commuteInstruction - If a target has any instructions that are commutable,
|
||||
/// but require converting to a different instruction or making non-trivial
|
||||
/// changes to commute them, this method can overloaded to do this. The
|
||||
/// default implementation of this method simply swaps the first two operands
|
||||
/// of MI and returns it.
|
||||
///
|
||||
/// If a target wants to make more aggressive changes, they can construct and
|
||||
/// return a new machine instruction. If an instruction cannot commute, it
|
||||
/// can also return null.
|
||||
///
|
||||
virtual MachineInstr *commuteInstruction(MachineInstr *MI) const;
|
||||
|
||||
/// Insert a goto (unconditional branch) sequence to TMBB, at the
|
||||
/// end of MBB
|
||||
virtual void insertGoto(MachineBasicBlock& MBB,
|
||||
|
Loading…
Reference in New Issue
Block a user