diff --git a/docs/LangRef.html b/docs/LangRef.html index 4d73aaafe8d..56691145273 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -750,7 +750,8 @@ an optional linkage type, an optional parameter attribute for the return type, a function name, a (possibly empty) argument list (each with optional parameter attributes), an optional section, an -optional alignment, an optional garbage collector name, an +optional alignment, an optional garbage collector name, +an optional function notes, an opening curly brace, a list of basic blocks, and a closing curly brace. LLVM function declarations consist of the "declare" keyword, an @@ -910,6 +911,41 @@ collector which will cause the compiler to alter its output in order to support the named garbage collection algorithm.
+ +Each function may specify function notes.
+ +define void @f() notes(inline=Always) { ... }+
define void @f() notes(inline=Always,opt-size) { ... }+
define void @f() notes(inline=Never,opt-size) { ... }+
define void @f() notes(opt-size) { ... }+
+
+This note requests inliner to inline this function irrespective of +inlining size threshold for this function. +
+This note requests inliner to never inline this function in any situation. +This note may not be used together with inline=Always note. +
+This note suggests optimization passes and code generator passes to make +choices that help reduce code size. +
+The notes that are not documented here are considered invalid notes. +