diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-11 17:05:24 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-11 17:05:24 +0000 |
commit | 59c4f5c2fc82af14b0f4f332709aac62921c6177 (patch) | |
tree | 5292327d7cd9f9a067e7687645fbcf3df77d9b82 /include/llvm/Support/ConstantFolder.h | |
parent | d30658c3ffd1e33e98b82750202a9375bf5963ed (diff) | |
download | external_llvm-59c4f5c2fc82af14b0f4f332709aac62921c6177.zip external_llvm-59c4f5c2fc82af14b0f4f332709aac62921c6177.tar.gz external_llvm-59c4f5c2fc82af14b0f4f332709aac62921c6177.tar.bz2 |
Add convenience functions for creating exact sdiv operators, and
use them in CreatePtrDiff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78682 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/ConstantFolder.h')
-rw-r--r-- | include/llvm/Support/ConstantFolder.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/ConstantFolder.h b/include/llvm/Support/ConstantFolder.h index cb9b055..422d1ad 100644 --- a/include/llvm/Support/ConstantFolder.h +++ b/include/llvm/Support/ConstantFolder.h @@ -56,6 +56,9 @@ public: Constant *CreateSDiv(Constant *LHS, Constant *RHS) const { return ConstantExpr::getSDiv(LHS, RHS); } + Constant *CreateExactSDiv(Constant *LHS, Constant *RHS) const { + return ConstantExpr::getExactSDiv(LHS, RHS); + } Constant *CreateFDiv(Constant *LHS, Constant *RHS) const { return ConstantExpr::getFDiv(LHS, RHS); } |