1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

[NFC] Add x86_amx and some missed half, bfloat keywords to llvm plugin syntaxes

Reviewed By: LuoYuanke

Differential Revision: https://reviews.llvm.org/D97444
This commit is contained in:
Wang, Pengfei 2021-03-03 10:00:10 +08:00
parent 5ee5202199
commit 7756ba82cf
4 changed files with 9 additions and 5 deletions

View File

@ -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>

View File

@ -67,7 +67,7 @@ FPredicates ::= oeq | one | olt | ogt | ole | oge | ord | uno | ueq | une
| 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 @@ OptSection ::= + _ | SectionString ;
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

View File

@ -15,7 +15,7 @@ syn case match
" 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\+\>/

View File

@ -14,6 +14,7 @@ scopeName: source.llvm
patterns:
- match: "\\bvoid\\b|\
\\bhalf\\b|\
\\bbfloat\\b|\
\\bfloat\\b|\
\\bdouble\\b|\
\\bx86_fp80\\b|\
@ -22,6 +23,7 @@ patterns:
\\blabel\\b|\
\\bmetadata\\b|\
\\bx86_mmx\\b|\
\\bx86_amx\\b|\
\\btype\\b|\
\\blabel\\b|\
\\bopaque\\b|\