Skip to content

Commit

Permalink
[mlir] vim: add bf16 type
Browse files Browse the repository at this point in the history
  • Loading branch information
c-rhodes committed May 17, 2022
1 parent 9bb0f46 commit 6ad6b00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mlir/utils/vim/syntax/mlir.vim
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ syn case match

" Types.
"
syn keyword mlirType index f16 f32 f64
syn keyword mlirType index f16 f32 f64 bf16
" Signless integer types.
syn match mlirType /\<i\d\+\>/
" Unsigned integer types.
Expand All @@ -23,7 +23,7 @@ syn match mlirType /\<ui\d\+\>/
syn match mlirType /\<si\d\+\>/

" 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.
syn match mlirType /\<memref\ze\s*<.*>/
Expand Down

0 comments on commit 6ad6b00

Please sign in to comment.