Move isKnownNonNull out of AliasAnalysis.h and into ValueTracking.cpp since
[oota-llvm.git] / include / llvm / Analysis / ValueTracking.h
index b5b8bfe590142c1d22d744201f5fde52da004485..3775ec9f07aa8dc77bc4b68073d5c87e01ebc22a 100644 (file)
@@ -183,6 +183,11 @@ namespace llvm {
   bool isSafeToSpeculativelyExecute(const Value *V,
                                     const DataLayout *TD = 0);
 
+  /// isKnownNonNull - Return true if this pointer couldn't possibly be null by
+  /// its definition.  This returns true for allocas, non-extern-weak globals
+  /// and byval arguments.
+  bool isKnownNonNull(const Value *V);
+
 } // end namespace llvm
 
 #endif