diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-03-06 17:33:55 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-03-06 17:33:55 +0000 |
commit | 38c18efe4137fb97464c7bc3428a5da19874a578 (patch) | |
tree | 79e07769533fec4d3bf69112f5b08e652b1141ad /include | |
parent | d530a9670113a18fdd6fa39c15b294d9b5fb7080 (diff) | |
download | llvm-38c18efe4137fb97464c7bc3428a5da19874a578.tar.gz llvm-38c18efe4137fb97464c7bc3428a5da19874a578.tar.bz2 llvm-38c18efe4137fb97464c7bc3428a5da19874a578.tar.xz |
Teach lint about address spaces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203132 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/IR/InstrTypes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/IR/InstrTypes.h b/include/llvm/IR/InstrTypes.h index 4e247e9c9c..35357b1458 100644 --- a/include/llvm/IR/InstrTypes.h +++ b/include/llvm/IR/InstrTypes.h @@ -582,6 +582,11 @@ public: Type *IntPtrTy ///< Integer type corresponding to pointer ) const; + /// @brief Determine if this cast is a no-op cast. + bool isNoopCast( + const DataLayout *DL ///< DataLayout to get the Int Ptr type from. + ) const; + /// Determine how a pair of casts can be eliminated, if they can be at all. /// This is a helper function for both CastInst and ConstantExpr. /// @returns 0 if the CastInst pair can't be eliminated, otherwise |