Reintroduce the InlineHint function attribute.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 6 Feb 2010 01:16:28 +0000 (01:16 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 6 Feb 2010 01:16:28 +0000 (01:16 +0000)
commit570a4a5d9ca31f276a67502d1e0533d59d331fea
tree306ece29a43dcc79fe17a0665e6534ce137e4582
parent8d535859e583183591503aa63cd4559271803920
Reintroduce the InlineHint function attribute.

This time it's for real! I am going to hook this up in the frontends as well.

The inliner has some experimental heuristics for dealing with the inline hint.
When given a -respect-inlinehint option, functions marked with the inline
keyword are given a threshold just above the default for -O3.

We need some experiments to determine if that is the right thing to do.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95466 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
bindings/ocaml/llvm/llvm.ml
bindings/ocaml/llvm/llvm.mli
docs/LangRef.html
include/llvm-c/Core.h
include/llvm/Attributes.h
include/llvm/Transforms/IPO/InlinerPass.h
lib/AsmParser/LLLexer.cpp
lib/AsmParser/LLParser.cpp
lib/AsmParser/LLToken.h
lib/Target/CppBackend/CPPBackend.cpp
lib/Transforms/IPO/Inliner.cpp
lib/VMCore/Attributes.cpp
utils/llvm.grm
utils/vim/llvm.vim