aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-09-18 04:54:57 +0000
committerChris Lattner <sabre@nondot.org>2006-09-18 04:54:57 +0000
commit79bc332ddb5200d61fb3739502cb0e8b8bb850bf (patch)
tree13125f713680fa4686e568689b7c9c9892ab3015 /include
parentb33a42a21f3e44e12c291752dd2cdf3b5d5d65a2 (diff)
downloadexternal_llvm-79bc332ddb5200d61fb3739502cb0e8b8bb850bf.zip
external_llvm-79bc332ddb5200d61fb3739502cb0e8b8bb850bf.tar.gz
external_llvm-79bc332ddb5200d61fb3739502cb0e8b8bb850bf.tar.bz2
add a helper method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30452 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Instructions.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index d7e52d1..03ce246 100644
--- a/include/llvm/Instructions.h
+++ b/include/llvm/Instructions.h
@@ -498,6 +498,11 @@ public:
: UnaryInstruction(Ty, Cast, S, Name, InsertAtEnd) {
}
+ /// isTruncIntCast - Return true if this is a truncating integer cast
+ /// instruction, e.g. a cast from long to uint.
+ bool isTruncIntCast() const;
+
+
virtual CastInst *clone() const;
// Methods for support type inquiry through isa, cast, and dyn_cast: