forked from OSchip/llvm-project
[mlir] vim: add bf16 type
This commit is contained in:
parent
9bb0f4616a
commit
6ad6b00f6a
|
@ -14,7 +14,7 @@ syn case match
|
||||||
|
|
||||||
" Types.
|
" Types.
|
||||||
"
|
"
|
||||||
syn keyword mlirType index f16 f32 f64
|
syn keyword mlirType index f16 f32 f64 bf16
|
||||||
" Signless integer types.
|
" Signless integer types.
|
||||||
syn match mlirType /\<i\d\+\>/
|
syn match mlirType /\<i\d\+\>/
|
||||||
" Unsigned integer types.
|
" Unsigned integer types.
|
||||||
|
@ -23,7 +23,7 @@ syn match mlirType /\<ui\d\+\>/
|
||||||
syn match mlirType /\<si\d\+\>/
|
syn match mlirType /\<si\d\+\>/
|
||||||
|
|
||||||
" Elemental types inside memref, tensor, or vector types.
|
" Elemental types inside memref, tensor, or vector types.
|
||||||
syn match mlirType /x\s*\zs\(f16\|f32\|f64\|i\d\+\|ui\d\+\|si\d\+\)/
|
syn match mlirType /x\s*\zs\(bf16|f16\|f32\|f64\|i\d\+\|ui\d\+\|si\d\+\)/
|
||||||
|
|
||||||
" Shaped types.
|
" Shaped types.
|
||||||
syn match mlirType /\<memref\ze\s*<.*>/
|
syn match mlirType /\<memref\ze\s*<.*>/
|
||||||
|
|
Loading…
Reference in New Issue