diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-03-13 00:44:09 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-03-13 00:44:09 +0000 |
commit | b27087f5aa574f875598f4a309b7dd687c64a455 (patch) | |
tree | d004a308e8429297ce4869ba39213069f4a1d949 /include/llvm/CodeGen | |
parent | d75686a471ee6ed5260e29d22d54f15152bbc9b4 (diff) | |
download | external_llvm-b27087f5aa574f875598f4a309b7dd687c64a455.zip external_llvm-b27087f5aa574f875598f4a309b7dd687c64a455.tar.gz external_llvm-b27087f5aa574f875598f4a309b7dd687c64a455.tar.bz2 |
Refactor some code out of MachineSink into a MachineInstr query.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48311 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 8 |
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 // |