diff options
Diffstat (limited to 'include/llvm/Constant.h')
-rw-r--r-- | include/llvm/Constant.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Constant.h b/include/llvm/Constant.h index 80c88b623f..3b3089748e 100644 --- a/include/llvm/Constant.h +++ b/include/llvm/Constant.h @@ -135,6 +135,13 @@ public: "implemented for all constants that have operands!"); assert(0 && "Constants that do not have operands cannot be using 'From'!"); } + + static Constant* getNullValue(const Type* Ty); + + /// @returns the value for an integer constant of the given type that has all + /// its bits set to true. + /// @brief Get the all ones value + static Constant* getAllOnesValue(const Type* Ty); }; } // End llvm namespace |