summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Support/ConstantFolder.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-12-18 03:10:26 +0000
committerDan Gohman <gohman@apple.com>2009-12-18 03:10:26 +0000
commit4e3b29e309454790838e96749cfe49c0b7c07ad8 (patch)
tree5a15104a669ce89ed2ecdaa29cbf979d3fa0ad46 /llvm/include/llvm/Support/ConstantFolder.h
parent4ab4420d7a402c8ecd02540c0bb5a50073dcf8c8 (diff)
downloadbcm5719-llvm-4e3b29e309454790838e96749cfe49c0b7c07ad8.tar.gz
bcm5719-llvm-4e3b29e309454790838e96749cfe49c0b7c07ad8.zip
Add utility routines for NSW multiply.
llvm-svn: 91664
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 eea33dfff61..1339e9fac6a 100644
--- a/llvm/include/llvm/Support/ConstantFolder.h
+++ b/llvm/include/llvm/Support/ConstantFolder.h
@@ -54,6 +54,9 @@ public:
Constant *CreateMul(Constant *LHS, Constant *RHS) const {
return ConstantExpr::getMul(LHS, RHS);
}
+ Constant *CreateNSWMul(Constant *LHS, Constant *RHS) const {
+ return ConstantExpr::getNSWMul(LHS, RHS);
+ }
Constant *CreateFMul(Constant *LHS, Constant *RHS) const {
return ConstantExpr::getFMul(LHS, RHS);
}
OpenPOWER on IntegriCloud