diff options
author | Dan Gohman <djg@cray.com> | 2007-07-18 16:29:46 +0000 |
---|---|---|
committer | Dan Gohman <djg@cray.com> | 2007-07-18 16:29:46 +0000 |
commit | f17a25c88b892d30c2b41ba7ecdfbdfb2b4be9cc (patch) | |
tree | ebb79ea1ee5e3bc1fdf38541a811a8b804f0679a /utils/vim/llvm.vim | |
download | external_llvm-f17a25c88b892d30c2b41ba7ecdfbdfb2b4be9cc.zip external_llvm-f17a25c88b892d30c2b41ba7ecdfbdfb2b4be9cc.tar.gz external_llvm-f17a25c88b892d30c2b41ba7ecdfbdfb2b4be9cc.tar.bz2 |
It's not necessary to do rounding for alloca operations when the requested
alignment is equal to the stack alignment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40004 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/vim/llvm.vim')
-rw-r--r-- | utils/vim/llvm.vim | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/utils/vim/llvm.vim b/utils/vim/llvm.vim new file mode 100644 index 0000000..712a9a5 --- /dev/null +++ b/utils/vim/llvm.vim @@ -0,0 +1,61 @@ +" Vim syntax file +" Language: llvm +" Maintainer: The LLVM team, http://llvm.org/ +" Updated: 2003-06-02 + +if version < 600 + syntax clear +elseif exists("b:current_syntax") + finish +endif + +syn case match + +syn keyword llvmType void bool sbyte ubyte +syn keyword llvmType short ushort int uint +syn keyword llvmType long ulong float double +syn keyword llvmType type label opaque + +syn keyword llvmStatement add sub mul div rem +syn keyword llvmStatement and or xor +syn keyword llvmStatement setne seteq setlt setgt setle setge + +syn keyword llvmStatement phi tail call cast to select shl shr vaarg vanext +syn keyword llvmStatement ret br switch invoke unwind unreachable +syn keyword llvmStatement malloc alloca free load store getelementptr + +syn keyword llvmStatement begin end true false zeroinitializer +syn keyword llvmStatement declare global constant const +syn keyword llvmStatement internal uninitialized external implementation +syn keyword llvmStatement linkonce weak appending +syn keyword llvmStatement undef null to except target endian pointersize deplibs +syn keyword llvmStatement big little volatile fastcc coldcc cc + +"syn match llvmFunction /%[a-zA-Z\$._\-][a-zA-Z\$._\-0-9]*/ +syn match llvmNumber /\<\d\+\>/ +syn match llvmNumber /\<\d\+\.\d*\>/ + +syn match llvmComment /;.*$/ +syn region llvmString start=/"/ skip=/\\"/ end=/"/ +syn match llvmLabel /[\-a-zA-Z\$._0-9]*:/ + + +if version >= 508 || !exists("did_c_syn_inits") + if version < 508 + let did_c_syn_inits = 1 + command -nargs=+ HiLink hi link <args> + else + command -nargs=+ HiLink hi def link <args> + endif + + HiLink llvmType Type + HiLink llvmStatement Statement + HiLink llvmNumber Number + HiLink llvmComment Comment + HiLink llvmString String + HiLink llvmLabel Label + + delcommand HiLink +endif + +let b:current_syntax = "llvm" |