summaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-09-24 00:06:15 +0000
committerDan Gohman <gohman@apple.com>2008-09-24 00:06:15 +0000
commit3e4fb70c6af53a2d00e057a7e4a8f93eb2ff2112 (patch)
treed572e85f18edc9d97f5b8cbaa5d6395fdd31801d /include/llvm/CodeGen
parent20bcaff6a7f93a9894f7233c449b016bafe93b26 (diff)
downloadexternal_llvm-3e4fb70c6af53a2d00e057a7e4a8f93eb2ff2112.zip
external_llvm-3e4fb70c6af53a2d00e057a7e4a8f93eb2ff2112.tar.gz
external_llvm-3e4fb70c6af53a2d00e057a7e4a8f93eb2ff2112.tar.bz2
Add a method to MachineInstr for testing whether it makes
any volatile memory references. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56528 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/MachineInstr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h
index 3171af9..8efea62 100644
--- a/include/llvm/CodeGen/MachineInstr.h
+++ b/include/llvm/CodeGen/MachineInstr.h
@@ -250,8 +250,16 @@ public:
/// the instruction's location and its intended destination.
bool isSafeToMove(const TargetInstrInfo *TII, bool &SawStore);
+ /// isSafeToReMat - Return true if it's safe to rematerialize the specified
+ /// instruction which defined the specified register instead of copying it.
bool isSafeToReMat(const TargetInstrInfo *TII, unsigned DstReg);
+ /// hasVolatileMemoryRef - Return true if this instruction may have a
+ /// volatile memory reference, or if the information describing the
+ /// memory reference is not available. Return false if it is known to
+ /// have no volatile memory references.
+ bool hasVolatileMemoryRef() const;
+
//
// Debugging support
//