On 06/12/2018 02:18 PM, Martin Liška wrote: > Hi. > > Following patch improves GIMPLE VIM syntax format. Please take a look > at attached screenshots. > > Ready for trunk? > Martin > > https://drive.google.com/file/d/1KK3GvfX-VXtI_S-TOcIrPq-pex1WTAIJ/view?usp=sharing > https://drive.google.com/file/d/1LpKpBJX5jepFgYBjujWbMyUZGfkPBzDD/view?usp=sharing > > > --- > contrib/gimple.vim | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > >
Hi. There's slightly updated version that I'm going to install. Martin
>From c221d54d8864f50f5cee2b88b61b1fc9e424bd09 Mon Sep 17 00:00:00 2001 From: marxin <mli...@suse.cz> Date: Tue, 12 Jun 2018 13:50:10 +0200 Subject: [PATCH 2/2] Improve gimple.vim syntax file. --- contrib/gimple.vim | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/contrib/gimple.vim b/contrib/gimple.vim index 6334dfab619..bee1319e575 100644 --- a/contrib/gimple.vim +++ b/contrib/gimple.vim @@ -89,6 +89,14 @@ if s:unknown_tree_is_error syn match gimpleUnknownTree "\vUnknown tree: \w+" end +" Ignore probability of edges and basic blocks +" <bb 2> [70.00%]: +syn match gimpleFrequency " \[\d*\.\d*%\]" + +" Ignore basic block with a count +" <bb 10> [local count: 118111601]: +syn match gimpleBBCount "\v\[(local )?count: \d+\]" + " Numbers syn match gimpleNumber "\v([^.a-zA-Z0-9_])\zs-?\d+B?" syn match gimpleFloat "\v\W\zs-?\d*\.\d+(e\+\d+)?" @@ -109,6 +117,13 @@ syn match gimpleGotoLabel "\v<bb \d+\>[^:]" " Line numbers, generated with -fdump-tree-*-lineno syn match gimpleLineNo "\v\[[^\]]+:\d+:\d+\]" +" DEBUG statements +syn match gimpleDebug "\v# DEBUG.*" + +" GIMPLE predict statement +syn match gimplePrediction "\v\/\/ predicted.*" + + " Misc C/C++-like keywords syn keyword gimpleStructure struct union enum typedef class syn keyword gimpleStorageClass static register auto volatile extern const @@ -134,6 +149,10 @@ hi def link gimpleAnnotationOp Debug hi def link gimpleAnnotationMark Debug hi def link gimpleString String hi def link gimpleUnknownTree Error +hi def link gimpleDebug Debug +hi def link gimplePrediction Debug +hi def link gimpleFrequency Debug +hi def link gimpleBBCount Debug let b:current_syntax = "gimple" -- 2.17.1