Initial support for carrying MachineInstrs in SUnits.
[oota-llvm.git] / include / llvm / CodeGen / PseudoSourceValue.h
index 95ae1d43ab334f783d72fca5bf240d91629d0166..dccf735ed029e8ca87fa2d59501798cf0df0a026 100644 (file)
@@ -17,6 +17,9 @@
 #include "llvm/Value.h"
 
 namespace llvm {
+  class MachineFrameInfo;
+  class raw_ostream;
+
   /// PseudoSourceValue - Special value supplied for machine level alias
   /// analysis. It indicates that the a memory access references the functions
   /// stack frame (e.g., a spill slot), below the stack frame (e.g., argument
@@ -25,7 +28,11 @@ namespace llvm {
   public:
     PseudoSourceValue();
 
-    virtual void print(std::ostream &OS) const;
+    virtual void print(raw_ostream &OS) const;
+
+    /// isConstant - Test whether this PseudoSourceValue has a constant value.
+    ///
+    virtual bool isConstant(const MachineFrameInfo *) const;
 
     /// classof - Methods for support type inquiry through isa, cast, and
     /// dyn_cast: