aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Bitcode
diff options
context:
space:
mode:
authorMichael Ilseman <milseman@apple.com>2012-11-27 00:43:38 +0000
committerMichael Ilseman <milseman@apple.com>2012-11-27 00:43:38 +0000
commit495d10ad56d1113ba33e0589e7c4f96f3c16fa52 (patch)
treecbcbe1cc27c28f06774260ca1894aa0f1e58b60c /include/llvm/Bitcode
parent15c13d3e63d7745bccad74d547af4e3482193eaa (diff)
downloadexternal_llvm-495d10ad56d1113ba33e0589e7c4f96f3c16fa52.zip
external_llvm-495d10ad56d1113ba33e0589e7c4f96f3c16fa52.tar.gz
external_llvm-495d10ad56d1113ba33e0589e7c4f96f3c16fa52.tar.bz2
Fast-math flags for the bitcode
Added in bitcode enum for the serializing of fast-math flags. Added in the reading/writing of fast-math flags from the OptimizationFlags record for BinaryOps. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168646 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bitcode')
-rw-r--r--include/llvm/Bitcode/LLVMBitCodes.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Bitcode/LLVMBitCodes.h b/include/llvm/Bitcode/LLVMBitCodes.h
index 511e3a3..3c7c2b3 100644
--- a/include/llvm/Bitcode/LLVMBitCodes.h
+++ b/include/llvm/Bitcode/LLVMBitCodes.h
@@ -240,6 +240,16 @@ namespace bitc {
PEO_EXACT = 0
};
+ /// Flags for serializing FPMathOperator's
+ /// SubclassOptionalData contents.
+ enum FastMathFlags {
+ FMF_UNSAFE_ALGEBRA = 0,
+ FMF_NO_NANS = 1,
+ FMF_NO_INFS = 2,
+ FMF_NO_SIGNED_ZEROS = 3,
+ FMF_ALLOW_RECIPROCAL = 4
+ };
+
/// Encoded AtomicOrdering values.
enum AtomicOrderingCodes {
ORDERING_NOTATOMIC = 0,