Expose isPointerType to clients of dsanalysis
authorChris Lattner <sabre@nondot.org>
Thu, 7 Nov 2002 05:21:15 +0000 (05:21 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 7 Nov 2002 05:21:15 +0000 (05:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4597 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DSSupport.h
include/llvm/Analysis/DataStructure/DSSupport.h

index dfd4bd79764b3ab2c8b988c9a5fca41b17b96654..e2633ee9ece9c863fdac879c5728976cd83e6ff6 100644 (file)
@@ -26,6 +26,11 @@ namespace DS { // FIXME: After the paper, this should get cleaned up
   enum { PointerShift = 3,     // 64bit ptrs = 3, 32 bit ptrs = 2
          PointerSize = 1 << PointerShift
   };
+
+  // isPointerType - Return true if this first class type is big enough to hold
+  // a pointer.
+  //
+  bool isPointerType(const Type *Ty);
 };
 
 //===----------------------------------------------------------------------===//
index dfd4bd79764b3ab2c8b988c9a5fca41b17b96654..e2633ee9ece9c863fdac879c5728976cd83e6ff6 100644 (file)
@@ -26,6 +26,11 @@ namespace DS { // FIXME: After the paper, this should get cleaned up
   enum { PointerShift = 3,     // 64bit ptrs = 3, 32 bit ptrs = 2
          PointerSize = 1 << PointerShift
   };
+
+  // isPointerType - Return true if this first class type is big enough to hold
+  // a pointer.
+  //
+  bool isPointerType(const Type *Ty);
 };
 
 //===----------------------------------------------------------------------===//