aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Constants.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-02-07 16:40:21 +0000
committerChris Lattner <sabre@nondot.org>2011-02-07 16:40:21 +0000
commitf067d584a81ae771d301304ea885e55e2de8ee9a (patch)
tree9e3fa2842b0884048e3cf0937db440d77d115168 /include/llvm/Constants.h
parent163a84bbce69947aa314760e6068c704fc0df7a0 (diff)
downloadexternal_llvm-f067d584a81ae771d301304ea885e55e2de8ee9a.tar.gz
external_llvm-f067d584a81ae771d301304ea885e55e2de8ee9a.tar.bz2
external_llvm-f067d584a81ae771d301304ea885e55e2de8ee9a.zip
implement .ll and .bc support for nsw/nuw on shl and exact on lshr/ashr.
Factor some code better. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125006 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r--include/llvm/Constants.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index b782737d31..56f39b9b09 100644
--- a/include/llvm/Constants.h
+++ b/include/llvm/Constants.h
@@ -724,8 +724,12 @@ public:
static Constant *getNUWSub(Constant *C1, Constant *C2);
static Constant *getNSWMul(Constant *C1, Constant *C2);
static Constant *getNUWMul(Constant *C1, Constant *C2);
+ static Constant *getNSWShl(Constant *C1, Constant *C2);
+ static Constant *getNUWShl(Constant *C1, Constant *C2);
static Constant *getExactSDiv(Constant *C1, Constant *C2);
static Constant *getExactUDiv(Constant *C1, Constant *C2);
+ static Constant *getExactAShr(Constant *C1, Constant *C2);
+ static Constant *getExactLShr(Constant *C1, Constant *C2);
/// Transparently provide more efficient getOperand methods.
DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Constant);