diff options
author | Duncan Sands <baldrick@free.fr> | 2009-09-26 15:35:35 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-09-26 15:35:35 +0000 |
commit | 3548ea8e905269e819fdd4c7fab42142b745c6c5 (patch) | |
tree | 10e110cbda235efd41cf7f7a5a0d219f1e613ff0 /include/llvm/Support/TargetFolder.h | |
parent | 11eab02b770086c119a18aae0fe214fbe5eed0d0 (diff) |
For the NSWSub support in the builder to actually be useable,
there need to be corresponding changes to the constant folders,
done in this patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82862 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/TargetFolder.h')
-rw-r--r-- | include/llvm/Support/TargetFolder.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/TargetFolder.h b/include/llvm/Support/TargetFolder.h index 77533c00b1..8e28632b7e 100644 --- a/include/llvm/Support/TargetFolder.h +++ b/include/llvm/Support/TargetFolder.h @@ -60,6 +60,9 @@ public: Constant *CreateSub(Constant *LHS, Constant *RHS) const { return Fold(ConstantExpr::getSub(LHS, RHS)); } + Constant *CreateNSWSub(Constant *LHS, Constant *RHS) const { + return Fold(ConstantExpr::getNSWSub(LHS, RHS)); + } Constant *CreateFSub(Constant *LHS, Constant *RHS) const { return Fold(ConstantExpr::getFSub(LHS, RHS)); } |