diff options
author | Devang Patel <dpatel@apple.com> | 2009-06-05 21:57:13 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-06-05 21:57:13 +0000 |
commit | 578efa920abd218ba75a0fb3c9b8398f4c0a774b (patch) | |
tree | 6837a5d548b2b8e81d676e7659d64f17dc0972bd /include/llvm/Attributes.h | |
parent | abc019968067736a499467f7db7fb758a425ca06 (diff) | |
download | llvm-578efa920abd218ba75a0fb3c9b8398f4c0a774b.tar.gz llvm-578efa920abd218ba75a0fb3c9b8398f4c0a774b.tar.bz2 llvm-578efa920abd218ba75a0fb3c9b8398f4c0a774b.tar.xz |
Add new function attribute - noimplicitfloat
Update code generator to use this attribute and remove NoImplicitFloat target option.
Update llc to set this attribute when -no-implicit-float command line option is used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72959 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Attributes.h')
-rw-r--r-- | include/llvm/Attributes.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Attributes.h b/include/llvm/Attributes.h index 492b023663..a594e3223d 100644 --- a/include/llvm/Attributes.h +++ b/include/llvm/Attributes.h @@ -55,6 +55,8 @@ const Attributes Alignment = 31<<16; ///< Alignment of parameter (5 bits) // 0 means unaligned different from align 1 const Attributes NoCapture = 1<<21; ///< Function creates no aliases of pointer const Attributes NoRedZone = 1<<22; /// disable redzone +const Attributes NoImplicitFloat = 1<<23; /// disable implicit floating point + /// instructions. /// @brief Attributes that only apply to function parameters. const Attributes ParameterOnly = ByVal | Nest | StructRet | NoCapture; @@ -62,7 +64,7 @@ const Attributes ParameterOnly = ByVal | Nest | StructRet | NoCapture; /// @brief Attributes that only apply to function. const Attributes FunctionOnly = NoReturn | NoUnwind | ReadNone | ReadOnly | NoInline | AlwaysInline | OptimizeForSize | StackProtect | StackProtectReq | - NoRedZone; + NoRedZone | NoImplicitFloat; /// @brief Parameter attributes that do not apply to vararg call arguments. const Attributes VarArgsIncompatible = StructRet; |