diff options
| author | Uday Bondhugula <uday@polymagelabs.com> | 2019-12-06 16:16:32 -0800 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-12-06 16:17:06 -0800 |
| commit | ca23bd78d4bed96020f7e681a88c4c767fe594aa (patch) | |
| tree | 5e5aa03cf1d2a3cad336c582cc5f3998270fb01c /mlir/utils/vim | |
| parent | fcc215e39979b0f678de84b37a5e2ab208839a8c (diff) | |
| download | bcm5719-llvm-ca23bd78d4bed96020f7e681a88c4c767fe594aa.tar.gz bcm5719-llvm-ca23bd78d4bed96020f7e681a88c4c767fe594aa.zip | |
NFC - update doc, comments, vim syntax file
- for the symbol rules, the code was updated but the doc wasn't.
Signed-off-by: Uday Bondhugula <uday@polymagelabs.com>
Closes tensorflow/mlir#284
COPYBARA_INTEGRATE_REVIEW=https://github.com/tensorflow/mlir/pull/284 from bondhugula:doc 9aad8b8a715559f7ce61265f3da3f8a3c11b45ea
PiperOrigin-RevId: 284283712
Diffstat (limited to 'mlir/utils/vim')
| -rw-r--r-- | mlir/utils/vim/syntax/mlir.vim | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mlir/utils/vim/syntax/mlir.vim b/mlir/utils/vim/syntax/mlir.vim index 5774d10e774..d9b6a3b29a1 100644 --- a/mlir/utils/vim/syntax/mlir.vim +++ b/mlir/utils/vim/syntax/mlir.vim @@ -31,7 +31,11 @@ syn match mlirType /x\s*\zsvector/ " Operations. " Core ops (not exhaustive yet). " TODO: the list is not exhaustive. -syn keyword mlirOps alloc addf addi call call_indirect cmpi constant dealloc dma_start dma_wait dim extract_element for getTensor if load memref_cast mulf muli splat store select subf subi tensor_cast +syn keyword mlirOps alloc alloca addf addi call call_indirect cmpi constant +syn keyword mlirOps dealloc divf dma_start dma_wait dim extract_element +syn keyword getTensor index_cast load memref_cast memref_shape_cast mulf muli +syn keyword prefetch sitofp splat store select subf subi subview tensor_cast +syn keyword view " Affine ops. syn match mlirOps /\<affine\.apply\>/ @@ -41,13 +45,17 @@ syn match mlirOps /\<affine\.for\>/ syn match mlirOps /\<affine\.if\>/ syn match mlirOps /\<affine\.load\>/ syn match mlirOps /\<affine\.store\>/ +syn match mlirOps /\<loop\.for\>/ +syn match mlirOps /\<loop\.if\>/ " TODO: dialect name prefixed ops (llvm or std). " Keywords. syn keyword mlirKeyword + \ dense \ else \ func + \ module \ return \ step \ to |

