summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-13 21:10:44 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-13 21:10:44 +0000
commit6a4848324bc8ed9789e3d9d99e8715b1667547d3 (patch)
tree0d7be7c5469f3d78cc75b980930e1f0c72c2d674 /llvm/utils
parenta4f2925bd10233f143ef92a4df18a5f2457df0dd (diff)
downloadbcm5719-llvm-6a4848324bc8ed9789e3d9d99e8715b1667547d3.tar.gz
bcm5719-llvm-6a4848324bc8ed9789e3d9d99e8715b1667547d3.zip
AsmParser/Bitcode: Add support for MDLocation
This adds assembly and bitcode support for `MDLocation`. The assembly side is rather big, since this is the first `MDNode` subclass (that isn't `MDTuple`). Part of PR21433. (If you're wondering where the mountains of testcase updates are, we don't need them until I update `DILocation` and `DebugLoc` to actually use this class.) llvm-svn: 225830
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/vim/llvm.vim7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/utils/vim/llvm.vim b/llvm/utils/vim/llvm.vim
index 23a34b51336..b7411c3cd31 100644
--- a/llvm/utils/vim/llvm.vim
+++ b/llvm/utils/vim/llvm.vim
@@ -62,7 +62,7 @@ syn keyword llvmKeyword uselistorder_bb
syn keyword llvmError getresult begin end
" Misc syntax.
-syn match llvmNoName /[%@]\d\+\>/
+syn match llvmNoName /[%@!]\d\+\>/
syn match llvmNumber /-\?\<\d\+\>/
syn match llvmFloat /-\?\<\d\+\.\d*\(e[+-]\d\+\)\?\>/
syn match llvmFloat /\<0x\x\+\>/
@@ -73,6 +73,11 @@ syn region llvmString start=/"/ skip=/\\"/ end=/"/
syn match llvmLabel /[-a-zA-Z$._][-a-zA-Z$._0-9]*:/
syn match llvmIdentifier /[%@][-a-zA-Z$._][-a-zA-Z$._0-9]*/
+" Named metadata and specialized metadata keywords.
+syn match llvmIdentifier /![-a-zA-Z$._][-a-zA-Z$._0-9]*\ze\s*$/
+syn match llvmIdentifier /![-a-zA-Z$._][-a-zA-Z$._0-9]*\ze\s*[=!]/
+syn match llvmType /!\zs\a\+\ze\s*(/
+
" Syntax-highlight dejagnu test commands.
syn match llvmSpecialComment /;\s*RUN:.*$/
syn match llvmSpecialComment /;\s*PR\d*\s*$/
OpenPOWER on IntegriCloud