[llvm] e1edc1c - [Utils] Add highlighting definition for byref IR attribute
Anatoly Trosinenko via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 25 06:23:25 PDT 2020
Author: Anatoly Trosinenko
Date: 2020-08-25T16:19:24+03:00
New Revision: e1edc1c76dc1efa38b76d42da81f32768e89ba24
URL: https://github.com/llvm/llvm-project/commit/e1edc1c76dc1efa38b76d42da81f32768e89ba24
DIFF: https://github.com/llvm/llvm-project/commit/e1edc1c76dc1efa38b76d42da81f32768e89ba24.diff
LOG: [Utils] Add highlighting definition for byref IR attribute
This patch assumes `byref` can be handled identically to `byval`.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D85768
Added:
Modified:
llvm/utils/kate/llvm.xml
llvm/utils/vim/syntax/llvm.vim
llvm/utils/vscode/llvm/syntaxes/ll.tmLanguage.yaml
Removed:
################################################################################
diff --git a/llvm/utils/kate/llvm.xml b/llvm/utils/kate/llvm.xml
index 3a61220eadcb..6e08af54eaa4 100644
--- a/llvm/utils/kate/llvm.xml
+++ b/llvm/utils/kate/llvm.xml
@@ -68,6 +68,7 @@
<item> zeroext </item>
<item> signext </item>
<item> inreg </item>
+ <item> byref </item>
<item> byval </item>
<item> sret </item>
<item> noalias </item>
diff --git a/llvm/utils/vim/syntax/llvm.vim b/llvm/utils/vim/syntax/llvm.vim
index ebdd8faae3ef..68c41e79d657 100644
--- a/llvm/utils/vim/syntax/llvm.vim
+++ b/llvm/utils/vim/syntax/llvm.vim
@@ -55,6 +55,7 @@ syn keyword llvmKeyword
\ available_externally
\ blockaddress
\ builtin
+ \ byref
\ byval
\ c
\ catch
diff --git a/llvm/utils/vscode/llvm/syntaxes/ll.tmLanguage.yaml b/llvm/utils/vscode/llvm/syntaxes/ll.tmLanguage.yaml
index e6c574444321..60c5b13d2741 100644
--- a/llvm/utils/vscode/llvm/syntaxes/ll.tmLanguage.yaml
+++ b/llvm/utils/vscode/llvm/syntaxes/ll.tmLanguage.yaml
@@ -152,6 +152,7 @@ patterns:
\\bavailable_externally\\b|\
\\bblockaddress\\b|\
\\bbuiltin\\b|\
+ \\bbyref\\b|\
\\bbyval\\b|\
\\bc\\b|\
\\bcatch\\b|\
More information about the llvm-commits
mailing list