summaryrefslogtreecommitdiff
path: root/include/llvm/Support/NoFolder.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-11 17:05:24 +0000
committerDan Gohman <gohman@apple.com>2009-08-11 17:05:24 +0000
commit59c4f5c2fc82af14b0f4f332709aac62921c6177 (patch)
tree5292327d7cd9f9a067e7687645fbcf3df77d9b82 /include/llvm/Support/NoFolder.h
parentd30658c3ffd1e33e98b82750202a9375bf5963ed (diff)
downloadllvm-59c4f5c2fc82af14b0f4f332709aac62921c6177.tar.gz
llvm-59c4f5c2fc82af14b0f4f332709aac62921c6177.tar.bz2
llvm-59c4f5c2fc82af14b0f4f332709aac62921c6177.tar.xz
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/NoFolder.h')
-rw-r--r--include/llvm/Support/NoFolder.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/NoFolder.h b/include/llvm/Support/NoFolder.h
index e0fb9cdb3f..b89c084b58 100644
--- a/include/llvm/Support/NoFolder.h
+++ b/include/llvm/Support/NoFolder.h
@@ -63,6 +63,9 @@ public:
Value *CreateSDiv(Constant *LHS, Constant *RHS) const {
return BinaryOperator::CreateSDiv(LHS, RHS);
}
+ Value *CreateExactSDiv(Constant *LHS, Constant *RHS) const {
+ return BinaryOperator::CreateExactSDiv(LHS, RHS);
+ }
Value *CreateFDiv(Constant *LHS, Constant *RHS) const {
return BinaryOperator::CreateFDiv(LHS, RHS);
}