Add a comment to TargetInstrInfo about FoldImmediate
This comment documents the current behavior of the ARM implementation of this callback, and also the soon-to-be-committed PPC version. llvm-svn: 178959
This commit is contained in:
parent
1c9a95ab2a
commit
537ec71775
|
@ -774,6 +774,10 @@ public:
|
|||
|
||||
/// FoldImmediate - 'Reg' is known to be defined by a move immediate
|
||||
/// instruction, try to fold the immediate into the use instruction.
|
||||
/// If MRI->hasOneNonDBGUse(Reg) is true, and this function returns true,
|
||||
/// then the caller may assume that DefMI has been erased from its parent
|
||||
/// block. The caller may assume that it will not be erased by this
|
||||
/// function otherwise.
|
||||
virtual bool FoldImmediate(MachineInstr *UseMI, MachineInstr *DefMI,
|
||||
unsigned Reg, MachineRegisterInfo *MRI) const {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue