aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/InstrTypes.h
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-09-27 21:33:04 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-09-27 21:33:04 +0000
commitae05e7d945aee2846370313e90d2a735f9696a71 (patch)
tree0ca69707766525dc0093e7fa0f02842bc08c115a /include/llvm/InstrTypes.h
parent68b1bbbc55b051182ba0fc181a1ea3267e8b5b1f (diff)
downloadexternal_llvm-ae05e7d945aee2846370313e90d2a735f9696a71.zip
external_llvm-ae05e7d945aee2846370313e90d2a735f9696a71.tar.gz
external_llvm-ae05e7d945aee2846370313e90d2a735f9696a71.tar.bz2
Round out the API for the new optimization flags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82930 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/InstrTypes.h')
-rw-r--r--include/llvm/InstrTypes.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/include/llvm/InstrTypes.h b/include/llvm/InstrTypes.h
index 6d6d0ba..cc923de 100644
--- a/include/llvm/InstrTypes.h
+++ b/include/llvm/InstrTypes.h
@@ -311,17 +311,26 @@ public:
/// setHasNoUnsignedWrap - Set or clear the nsw flag on this instruction,
/// which must be an operator which supports this flag. See LangRef.html
/// for the meaning of this flag.
- void setHasNoUnsignedWrap(bool);
+ void setHasNoUnsignedWrap(bool b = true);
/// setHasNoSignedWrap - Set or clear the nsw flag on this instruction,
/// which must be an operator which supports this flag. See LangRef.html
/// for the meaning of this flag.
- void setHasNoSignedWrap(bool);
+ void setHasNoSignedWrap(bool b = true);
/// setIsExact - Set or clear the exact flag on this instruction,
/// which must be an operator which supports this flag. See LangRef.html
/// for the meaning of this flag.
- void setIsExact(bool);
+ void setIsExact(bool b = true);
+
+ /// hasNoUnsignedWrap - Determine whether the no unsigned wrap flag is set.
+ bool hasNoUnsignedWrap() const;
+
+ /// hasNoSignedWrap - Determine whether the no signed wrap flag is set.
+ bool hasNoSignedWrap() const;
+
+ /// isExact - Determine whether the exact flag is set.
+ bool isExact() const;
// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const BinaryOperator *) { return true; }