[PATCH] D97444: [X86] Add x86_amx keyword to llvm plugin syntaxes. NFC
Pengfei Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 25 17:50:04 PST 2021
pengfei updated this revision to Diff 326567.
pengfei marked an inline comment as done.
pengfei added a comment.
Address Craig's comment. Adding missed half and bfloat too.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97444/new/
https://reviews.llvm.org/D97444
Files:
llvm/utils/kate/llvm.xml
llvm/utils/llvm.grm
llvm/utils/vim/syntax/llvm.vim
llvm/utils/vscode/llvm/syntaxes/ll.tmLanguage.yaml
Index: llvm/utils/vscode/llvm/syntaxes/ll.tmLanguage.yaml
===================================================================
--- llvm/utils/vscode/llvm/syntaxes/ll.tmLanguage.yaml
+++ llvm/utils/vscode/llvm/syntaxes/ll.tmLanguage.yaml
@@ -14,6 +14,7 @@
patterns:
- match: "\\bvoid\\b|\
\\bhalf\\b|\
+ \\bbfloat\\b|\
\\bfloat\\b|\
\\bdouble\\b|\
\\bx86_fp80\\b|\
@@ -22,6 +23,7 @@
\\blabel\\b|\
\\bmetadata\\b|\
\\bx86_mmx\\b|\
+ \\bx86_amx\\b|\
\\btype\\b|\
\\blabel\\b|\
\\bopaque\\b|\
Index: llvm/utils/vim/syntax/llvm.vim
===================================================================
--- llvm/utils/vim/syntax/llvm.vim
+++ llvm/utils/vim/syntax/llvm.vim
@@ -15,7 +15,7 @@
" Types also include struct, array, vector, etc. but these don't
" benefit as much from having dedicated highlighting rules.
syn keyword llvmType void half bfloat float double x86_fp80 fp128 ppc_fp128
-syn keyword llvmType label metadata x86_mmx
+syn keyword llvmType label metadata x86_mmx x86_amx
syn keyword llvmType type label opaque token
syn match llvmType /\<i\d\+\>/
Index: llvm/utils/llvm.grm
===================================================================
--- llvm/utils/llvm.grm
+++ llvm/utils/llvm.grm
@@ -67,7 +67,7 @@
| ult | ugt | ule | uge | true | false ;
IntType ::= INTTYPE;
-FPType ::= float | double | "ppc_fp128" | fp128 | "x86_fp80";
+FPType ::= half | bfloat | float | double | "ppc_fp128" | fp128 | "x86_fp80";
LocalName ::= LOCALVAR | STRINGCONSTANT | PCTSTRINGCONSTANT ;
OptLocalName ::= LocalName | _ ;
@@ -192,8 +192,8 @@
GlobalVarAttributes ::= + _ | ^ "," GlobalVarAttribute GlobalVarAttributes ;
GlobalVarAttribute ::= SectionString | align EUINT64VAL ;
-PrimType ::= INTTYPE | float | double | "ppc_fp128" | fp128 | "x86_fp80"
- | - label ;
+PrimType ::= INTTYPE | half | bfloat | float | double | "ppc_fp128" | fp128
+ | "x86_fp80" | "x86_mmx" | "x86_amx" | - label ;
Types
::= opaque
Index: llvm/utils/kate/llvm.xml
===================================================================
--- llvm/utils/kate/llvm.xml
+++ llvm/utils/kate/llvm.xml
@@ -100,12 +100,14 @@
<list name="types">
<item> addrspace </item>
<item> half </item>
+ <item> bfloat </item>
<item> float </item>
<item> double </item>
<item> fp128 </item>
<item> x86_fp80 </item>
<item> ppc_fp128 </item>
- <item> x86mmx </item>
+ <item> x86_mmx </item>
+ <item> x86_amx </item>
<item> void </item>
<item> label </item>
<item> metadata </item>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97444.326567.patch
Type: text/x-patch
Size: 2739 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210226/31bef964/attachment.bin>
More information about the llvm-commits
mailing list