Changes in directory llvm/include/llvm/Target:
TargetInstrInfo.h updated: 1.129 -> 1.130
---
Log message:
Added CanBeDuplicated(). It returns true if an instruction can be safely
duplicated (e.g. during ifcvt).
---
Diffs of the changes: (+7 -0)
TargetInstrInfo.h | 7 +++++++
1 files changed, 7 insertions(+)
Index: llvm/include/llvm/Target/TargetInstrInfo.h
diff -u llvm/include/llvm/Target/TargetInstrInfo.h:1.129
llvm/include/llvm/Target/TargetInstrInfo.h:1.130
--- llvm/include/llvm/Target/TargetInstrInfo.h:1.129 Thu Jun 14 17:03:45 2007
+++ llvm/include/llvm/Target/TargetInstrInfo.h Fri Jun 15 16:13:54 2007
@@ -415,6 +415,13 @@
return false;
}
+ /// CanBeDuplicated - Returns true if the instruction can be duplicated
+ /// without causing unforseenable side-effect (e.g. instructions with unique
+ /// labels attached).
+ virtual bool CanBeDuplicated(const MachineInstr *MI) const {
+ return false;
+ }
+
/// isUnpredicatedTerminator - Returns true if the instruction is a
/// terminator instruction that has not been predicated.
virtual bool isUnpredicatedTerminator(const MachineInstr *MI) const;
_______________________________________________
llvm-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits