Doxygenate comments.
[oota-llvm.git] / include / llvm / CodeGen / MachineInstr.h
index 3171af9606edd866ddee539138442aee5f7cd9f9..0cdad848b9ac13a39511ae7934790d5d235c9436 100644 (file)
@@ -248,9 +248,17 @@ public:
   /// isSafeToMove - Return true if it is safe to move this instruction. If
   /// SawStore is set to true, it means that there is a store (or call) between
   /// the instruction's location and its intended destination.
-  bool isSafeToMove(const TargetInstrInfo *TII, bool &SawStore);
+  bool isSafeToMove(const TargetInstrInfo *TII, bool &SawStore) const;
 
-  bool isSafeToReMat(const TargetInstrInfo *TII, unsigned DstReg);
+  /// 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) const;
+
+  /// 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