aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-07 05:21:15 +0000
committerChris Lattner <sabre@nondot.org>2002-11-07 05:21:15 +0000
commit04781177b9893a206f9adee30a9d1f871b26fe19 (patch)
tree180e2635f3487deb489aa2278820f5345642830f
parentb10604341fa3771bf6d76e1185616f9073450f3c (diff)
Expose isPointerType to clients of dsanalysis
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4597 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Analysis/DSSupport.h5
-rw-r--r--include/llvm/Analysis/DataStructure/DSSupport.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DSSupport.h b/include/llvm/Analysis/DSSupport.h
index dfd4bd7976..e2633ee9ec 100644
--- a/include/llvm/Analysis/DSSupport.h
+++ b/include/llvm/Analysis/DSSupport.h
@@ -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);
};
//===----------------------------------------------------------------------===//
diff --git a/include/llvm/Analysis/DataStructure/DSSupport.h b/include/llvm/Analysis/DataStructure/DSSupport.h
index dfd4bd7976..e2633ee9ec 100644
--- a/include/llvm/Analysis/DataStructure/DSSupport.h
+++ b/include/llvm/Analysis/DataStructure/DSSupport.h
@@ -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);
};
//===----------------------------------------------------------------------===//