summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-08-26 01:08:21 +0000
committerDale Johannesen <dalej@apple.com>2009-08-26 01:08:21 +0000
commit2aaf5395640d33eb2db8b7c41829e23459ab54f6 (patch)
tree1dda5eb2c9e6235d3d26225d0348856a9c6c3d29 /llvm/utils
parenta1b4dd96f298008e10f5ff09cf7b25556fab96b8 (diff)
downloadbcm5719-llvm-2aaf5395640d33eb2db8b7c41829e23459ab54f6.tar.gz
bcm5719-llvm-2aaf5395640d33eb2db8b7c41829e23459ab54f6.zip
Add an 'inline hint' attribute to represent source
code hints that it would be a good idea to inline a function ("inline" keyword). No functional change yet; FEs do not emit this and inliner does not use it. llvm-svn: 80063
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/llvm.grm1
-rw-r--r--llvm/utils/vim/llvm.vim2
2 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/llvm.grm b/llvm/utils/llvm.grm
index 4499d4b35a9..86a707a925d 100644
--- a/llvm/utils/llvm.grm
+++ b/llvm/utils/llvm.grm
@@ -161,6 +161,7 @@ FuncAttr ::= noreturn
| signext
| readnone
| readonly
+ | inlinehint
| noinline
| alwaysinline
| optsize
diff --git a/llvm/utils/vim/llvm.vim b/llvm/utils/vim/llvm.vim
index b99b04cdd14..2cc266bd27e 100644
--- a/llvm/utils/vim/llvm.vim
+++ b/llvm/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
OpenPOWER on IntegriCloud