[Mlir-commits] [mlir] 136d78c - [MLIR][NFC] Update vim syntax file

Uday Bondhugula llvmlistbot at llvm.org
Sun Jun 14 05:33:52 PDT 2020


Author: Uday Bondhugula
Date: 2020-06-14T18:03:26+05:30
New Revision: 136d78ca6b6053fd150cbbbee00707fb8e813013

URL: https://github.com/llvm/llvm-project/commit/136d78ca6b6053fd150cbbbee00707fb8e813013
DIFF: https://github.com/llvm/llvm-project/commit/136d78ca6b6053fd150cbbbee00707fb8e813013.diff

LOG: [MLIR][NFC] Update vim syntax file

Add a few more commonly used ops and missing keywords.

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 c49af6afa3cd..d4449068c1e2 100644
--- a/mlir/utils/vim/syntax/mlir.vim
+++ b/mlir/utils/vim/syntax/mlir.vim
@@ -31,10 +31,10 @@ syn match mlirType /x\s*\zsvector/
 " Operations.
 " Core ops (not exhaustive yet).
 " TODO: the list is not exhaustive.
-syn keyword mlirOps alloc alloca addf addi call call_indirect cmpi constant
+syn keyword mlirOps alloc alloca addf addi call call_indirect cmpf cmpi constant
 syn keyword mlirOps dealloc divf dma_start dma_wait dim extract_element
 syn keyword mlirOps getTensor index_cast load memref_cast memref_shape_cast
-syn keyword mlirOps mulf muli prefetch sitofp splat store select subf subi
+syn keyword mlirOps mulf muli negf prefetch sitofp splat store select subf subi
 syn keyword mlirOps subview tensor_cast view
 
 " Affine ops.
@@ -53,6 +53,8 @@ syn match mlirOps /\<loop\.if\>/
 
 " Keywords.
 syn keyword mlirKeyword
+      \ affine_map
+      \ affine_set
       \ dense
       \ else
       \ func


        


More information about the Mlir-commits mailing list