summaryrefslogtreecommitdiff
path: root/mlir/utils
diff options
context:
space:
mode:
authorCullen Rhodes <cullen.rhodes@arm.com>2022-05-13 15:11:25 +0000
committerCullen Rhodes <cullen.rhodes@arm.com>2022-05-17 13:28:31 +0000
commit6ad6b00f6a47cd23b882f65ba6da45e227ba536a (patch)
treebf74917669afad44cb3c224cdd5be8cd43e96d7a /mlir/utils
parent9bb0f4616a75515e93981af05e58f186ac7714ce (diff)
downloadllvm-6ad6b00f6a47cd23b882f65ba6da45e227ba536a.tar.gz
[mlir] vim: add bf16 type
Diffstat (limited to 'mlir/utils')
-rw-r--r--mlir/utils/vim/syntax/mlir.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/utils/vim/syntax/mlir.vim b/mlir/utils/vim/syntax/mlir.vim
index d874149379bc..7989032eada8 100644
--- a/mlir/utils/vim/syntax/mlir.vim
+++ b/mlir/utils/vim/syntax/mlir.vim
@@ -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.
@@ -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*<.*>/