Remove the InlineHint attribute. There are no current or planned
authorEric Christopher <echristo@apple.com>
Fri, 15 Jan 2010 21:36:30 +0000 (21:36 +0000)
committerEric Christopher <echristo@apple.com>
Fri, 15 Jan 2010 21:36:30 +0000 (21:36 +0000)
users.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93558 91177308-0d34-0410-b5e6-96231b3b80d8

12 files changed:
bindings/ocaml/llvm/llvm.ml
bindings/ocaml/llvm/llvm.mli
docs/LangRef.html
include/llvm-c/Core.h
include/llvm/Attributes.h
lib/AsmParser/LLLexer.cpp
lib/AsmParser/LLParser.cpp
lib/AsmParser/LLToken.h
lib/Target/CppBackend/CPPBackend.cpp
lib/VMCore/Attributes.cpp
utils/llvm.grm
utils/vim/llvm.vim

index 37d0fd7c85f446a1bbf80906ee7447820ad91fce..25e47ab5e270885c2fd2fda06f39fe0b3ae02f03 100644 (file)
@@ -93,7 +93,6 @@ module Attribute = struct
   | Noredzone
   | Noimplicitfloat
   | Naked
-  | Inlinehint
 end
 
 module Icmp = struct
@@ -848,7 +847,7 @@ module ModuleProvider = struct
                   = "LLVMCreateModuleProviderForExistingModule"
   external dispose : llmoduleprovider -> unit = "llvm_dispose_module_provider"
 end
-  
+
 
 (*===-- Memory buffers ----------------------------------------------------===*)
 
index a7c2bcfd719b73f5020a4b4d9d31419d66b745f1..c703ef7fbf0b2258e8b021178d319e994518374d 100644 (file)
@@ -143,7 +143,6 @@ module Attribute : sig
   | Noredzone
   | Noimplicitfloat
   | Naked
-  | Inlinehint
 end
 
 (** The predicate for an integer comparison ([icmp]) instruction.
index d8229033f9257b542fa01184dad0ac90af6d9b36..9a563d670817e99bf0adfb53a7bf491b21c1dfc3 100644 (file)
@@ -1083,11 +1083,6 @@ define void @f() optsize { ... }
       function into callers whenever possible, ignoring any active inlining size
       threshold for this caller.</dd>
 
-  <dt><tt><b>inlinehint</b></tt></dt>
-  <dd>This attribute indicates that the source code contained a hint that inlining
-      this function is desirable (such as the "inline" keyword in C/C++).  It
-      is just a hint; it imposes no requirements on the inliner.</dd>
-
   <dt><tt><b>noinline</b></tt></dt>
   <dd>This attribute indicates that the inliner should never inline this
       function in any situation. This attribute may not be used together with
index 687920549c16dae19bb55fcf60bef51dc59dffb2..7824729f311b62ef258f69753f476226fed6b162 100644 (file)
@@ -117,8 +117,7 @@ typedef enum {
     LLVMNoCaptureAttribute  = 1<<21,
     LLVMNoRedZoneAttribute  = 1<<22,
     LLVMNoImplicitFloatAttribute = 1<<23,
-    LLVMNakedAttribute      = 1<<24,
-    LLVMInlineHintAttribute = 1<<25
+    LLVMNakedAttribute      = 1<<24
 } LLVMAttribute;
 
 typedef enum {
index 068f81fc7de22e3b98ef99b60f0cdf8ab43b31a8..7fa5d4ae6bd9b65a8b38a144a907418aba6a8c24 100644 (file)
@@ -58,8 +58,6 @@ const Attributes NoRedZone = 1<<22; /// disable redzone
 const Attributes NoImplicitFloat = 1<<23; /// disable implicit floating point
                                           /// instructions.
 const Attributes Naked           = 1<<24; ///< Naked function
-const Attributes InlineHint      = 1<<25; ///< source said inlining was
-                                          ///desirable
 
 /// @brief Attributes that only apply to function parameters.
 const Attributes ParameterOnly = ByVal | Nest | StructRet | NoCapture;
@@ -68,7 +66,7 @@ const Attributes ParameterOnly = ByVal | Nest | StructRet | NoCapture;
 /// be used on return values or function parameters.
 const Attributes FunctionOnly = NoReturn | NoUnwind | ReadNone | ReadOnly |
   NoInline | AlwaysInline | OptimizeForSize | StackProtect | StackProtectReq |
-  NoRedZone | NoImplicitFloat | Naked | InlineHint;
+  NoRedZone | NoImplicitFloat | Naked;
 
 /// @brief Parameter attributes that do not apply to vararg call arguments.
 const Attributes VarArgsIncompatible = StructRet;
index 8ad658d858dbe8fc3bc4312e07a8a57f0abdc142..2a926d2e5e867b015948c4264499fd306499ab73 100644 (file)
@@ -558,7 +558,6 @@ lltok::Kind LLLexer::LexIdentifier() {
   KEYWORD(readnone);
   KEYWORD(readonly);
 
-  KEYWORD(inlinehint);
   KEYWORD(noinline);
   KEYWORD(alwaysinline);
   KEYWORD(optsize);
index e4039ab168090fa63503ac02e63ab9a56282a3a4..04a5263cea03668f64ed8d6d06442a744d900814 100644 (file)
@@ -947,7 +947,6 @@ bool LLParser::ParseOptionalAttrs(unsigned &Attrs, unsigned AttrKind) {
     case lltok::kw_noinline:        Attrs |= Attribute::NoInline; break;
     case lltok::kw_readnone:        Attrs |= Attribute::ReadNone; break;
     case lltok::kw_readonly:        Attrs |= Attribute::ReadOnly; break;
-    case lltok::kw_inlinehint:      Attrs |= Attribute::InlineHint; break;
     case lltok::kw_alwaysinline:    Attrs |= Attribute::AlwaysInline; break;
     case lltok::kw_optsize:         Attrs |= Attribute::OptimizeForSize; break;
     case lltok::kw_ssp:             Attrs |= Attribute::StackProtect; break;
index 7f1807c7d0db8beae7891bcf5af838756df16c3d..80eb19477448d59ba302be8c2265ecafa890487c 100644 (file)
@@ -85,7 +85,6 @@ namespace lltok {
     kw_readnone,
     kw_readonly,
 
-    kw_inlinehint,
     kw_noinline,
     kw_alwaysinline,
     kw_optsize,
index a872fbd614e1c70104ddcad4cee800f3ac346627..73272bcd37eb58cea35172056c8dce96de560e1a 100644 (file)
@@ -472,7 +472,6 @@ namespace {
         HANDLE_ATTR(Nest);
         HANDLE_ATTR(ReadNone);
         HANDLE_ATTR(ReadOnly);
-        HANDLE_ATTR(InlineHint);
         HANDLE_ATTR(NoInline);
         HANDLE_ATTR(AlwaysInline);
         HANDLE_ATTR(OptimizeForSize);
index a371c6f92eb45ad51c4498357965073c8ebc66b5..65155f1d48955bd5ec381cd5c56187a0585e4108 100644 (file)
@@ -56,8 +56,6 @@ std::string Attribute::getAsString(Attributes Attrs) {
     Result += "optsize ";
   if (Attrs & Attribute::NoInline)
     Result += "noinline ";
-  if (Attrs & Attribute::InlineHint)
-    Result += "inlinehint ";
   if (Attrs & Attribute::AlwaysInline)
     Result += "alwaysinline ";
   if (Attrs & Attribute::StackProtect)
index 86a707a925d90a4bb12c23c995a114dcf0f62390..4499d4b35a9f7c5124a3aa34a84f90683d040e4a 100644 (file)
@@ -161,7 +161,6 @@ FuncAttr      ::= noreturn
  | signext
  | readnone
  | readonly
- | inlinehint
  | noinline
  | alwaysinline
  | optsize
index 6e4a207b68eb86c9832a70bbc281f06f53d698a0..48a4c68aefabcf69a1eb815b457a0a67af907d1c 100644 (file)
@@ -51,7 +51,7 @@ syn keyword llvmKeyword volatile fastcc coldcc cc ccc
 syn keyword llvmKeyword x86_stdcallcc x86_fastcallcc
 syn keyword llvmKeyword signext zeroext inreg sret nounwind noreturn
 syn keyword llvmKeyword nocapture byval nest readnone readonly noalias
-syn keyword llvmKeyword inlinehint noinline alwaysinline optsize ssp sspreq
+syn keyword llvmKeyword noinline alwaysinline optsize ssp sspreq
 syn keyword llvmKeyword noredzone noimplicitfloat naked
 syn keyword llvmKeyword module asm align tail to
 syn keyword llvmKeyword addrspace section alias sideeffect c gc