summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Support/ConstantFolder.h
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2011-02-07 09:21:52 +0000
committerDuncan Sands <baldrick@free.fr>2011-02-07 09:21:52 +0000
commit648f55b2b435cd05085c0af5ae9ab27e0c5a3047 (patch)
treeb2fcb3a2050055fc9cd630a63e3829eb2162d1d3 /llvm/include/llvm/Support/ConstantFolder.h
parent0209aec4c67bdcd8f33ccb7c00606abd17e57dcf (diff)
downloadbcm5719-llvm-648f55b2b435cd05085c0af5ae9ab27e0c5a3047.tar.gz
bcm5719-llvm-648f55b2b435cd05085c0af5ae9ab27e0c5a3047.zip
Add IRBuilder methods for creating an exact udiv, like for exact sdiv.
llvm-svn: 125002
Diffstat (limited to 'llvm/include/llvm/Support/ConstantFolder.h')
-rw-r--r--llvm/include/llvm/Support/ConstantFolder.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/ConstantFolder.h b/llvm/include/llvm/Support/ConstantFolder.h
index ea6c5fd82a0..93adb3a403d 100644
--- a/llvm/include/llvm/Support/ConstantFolder.h
+++ b/llvm/include/llvm/Support/ConstantFolder.h
@@ -72,6 +72,9 @@ public:
Constant *CreateUDiv(Constant *LHS, Constant *RHS) const {
return ConstantExpr::getUDiv(LHS, RHS);
}
+ Constant *CreateExactUDiv(Constant *LHS, Constant *RHS) const {
+ return ConstantExpr::getExactUDiv(LHS, RHS);
+ }
Constant *CreateSDiv(Constant *LHS, Constant *RHS) const {
return ConstantExpr::getSDiv(LHS, RHS);
}
OpenPOWER on IntegriCloud