aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-02-06 01:16:28 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-02-06 01:16:28 +0000
commit570a4a5d9ca31f276a67502d1e0533d59d331fea (patch)
tree306ece29a43dcc79fe17a0665e6534ce137e4582 /utils
parent8d535859e583183591503aa63cd4559271803920 (diff)
downloadexternal_llvm-570a4a5d9ca31f276a67502d1e0533d59d331fea.zip
external_llvm-570a4a5d9ca31f276a67502d1e0533d59d331fea.tar.gz
external_llvm-570a4a5d9ca31f276a67502d1e0533d59d331fea.tar.bz2
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
Diffstat (limited to 'utils')
-rw-r--r--utils/llvm.grm1
-rw-r--r--utils/vim/llvm.vim2
2 files changed, 2 insertions, 1 deletions
diff --git a/utils/llvm.grm b/utils/llvm.grm
index 4499d4b..86a707a 100644
--- a/utils/llvm.grm
+++ b/utils/llvm.grm
@@ -161,6 +161,7 @@ FuncAttr ::= noreturn
| signext
| readnone
| readonly
+ | inlinehint
| noinline
| alwaysinline
| optsize
diff --git a/utils/vim/llvm.vim b/utils/vim/llvm.vim
index 48a4c68..6e4a207 100644
--- a/utils/vim/llvm.vim
+++ b/utils/vim/llvm.vim
@@ -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 noinline alwaysinline optsize ssp sspreq
+syn keyword llvmKeyword inlinehint 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