diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-12-08 00:23:35 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-12-08 00:23:35 +0000 |
commit | cf5f97edf1355be0d7847c73559f8f2b73b54074 (patch) | |
tree | 9a9486e369d9f00af98d839ce6a5d3fbfb8bc2ba /include | |
parent | b7e206eab9de36cefa28ca79b560772d69cfa607 (diff) | |
download | external_llvm-cf5f97edf1355be0d7847c73559f8f2b73b54074.zip external_llvm-cf5f97edf1355be0d7847c73559f8f2b73b54074.tar.gz external_llvm-cf5f97edf1355be0d7847c73559f8f2b73b54074.tar.bz2 |
Merging r196637:
------------------------------------------------------------------------
r196637 | arsenm | 2013-12-06 18:58:41 -0800 (Fri, 06 Dec 2013) | 1 line
Add getBitCastOrAddrSpaceCast
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@196707 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/IR/Constants.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/llvm/IR/Constants.h b/include/llvm/IR/Constants.h index f1cee5a..dac20c9 100644 --- a/include/llvm/IR/Constants.h +++ b/include/llvm/IR/Constants.h @@ -943,12 +943,20 @@ public: Type *Ty ///< The type to trunc or bitcast C to ); - /// @brief Create a BitCast or a PtrToInt cast constant expression + /// @brief Create a BitCast, AddrSpaceCast, or a PtrToInt cast constant + /// expression. static Constant *getPointerCast( Constant *C, ///< The pointer value to be casted (operand 0) Type *Ty ///< The type to which cast should be made ); + /// @brief Create a BitCast or AddrSpaceCast for a pointer type depending on + /// the address space. + static Constant *getPointerBitCastOrAddrSpaceCast( + Constant *C, ///< The constant to addrspacecast or bitcast + Type *Ty ///< The type to bitcast or addrspacecast C to + ); + /// @brief Create a ZExt, Bitcast or Trunc for integer -> integer casts static Constant *getIntegerCast( Constant *C, ///< The integer constant to be casted |