[Mlir-commits] [mlir] 6ad6b00 - [mlir] vim: add bf16 type
Cullen Rhodes
llvmlistbot at llvm.org
Tue May 17 06:29:24 PDT 2022
Author: Cullen Rhodes
Date: 2022-05-17T13:28:31Z
New Revision: 6ad6b00f6a47cd23b882f65ba6da45e227ba536a
URL: https://github.com/llvm/llvm-project/commit/6ad6b00f6a47cd23b882f65ba6da45e227ba536a
DIFF: https://github.com/llvm/llvm-project/commit/6ad6b00f6a47cd23b882f65ba6da45e227ba536a.diff
LOG: [mlir] vim: add bf16 type
Added:
Modified:
mlir/utils/vim/syntax/mlir.vim
Removed:
################################################################################
diff --git a/mlir/utils/vim/syntax/mlir.vim b/mlir/utils/vim/syntax/mlir.vim
index d874149379bc7..7989032eada88 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*<.*>/
More information about the Mlir-commits
mailing list