aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/MachineInstr.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h
index f212d67..d4438d2 100644
--- a/include/llvm/CodeGen/MachineInstr.h
+++ b/include/llvm/CodeGen/MachineInstr.h
@@ -22,6 +22,7 @@
namespace llvm {
class TargetInstrDesc;
+class TargetInstrInfo;
class TargetRegisterInfo;
template <typename T> struct ilist_traits;
@@ -229,10 +230,15 @@ public:
bool addRegisterDead(unsigned IncomingReg, const TargetRegisterInfo *RegInfo,
bool AddIfNotFound = false);
- /// copyKillDeadInfo - copies killed/dead information from one instr to another
+ /// copyKillDeadInfo - Copies killed/dead information from one instr to another
void copyKillDeadInfo(MachineInstr *OldMI,
const TargetRegisterInfo *RegInfo);
+ /// isSafeToMove - Return true if it is safe to this instruction. If SawStore
+ /// true, it means there is a store (or call) between the instruction the
+ /// localtion and its intended destination.
+ bool isSafeToMove(const TargetInstrInfo *TII, bool &SawStore);
+
//
// Debugging support
//