mlir.json
2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"fileTypes":[
"mlir"
],
"repository":{
"attribute":{
"match":"\\W[\\w_][\\w\\d_.$]*\\s*=",
"name":"meta.attribute.mlir"
},
"branch_target":{
"match":"\\^bb[\\w\\d_$\\.-]+",
"name":"entity.name.label.mlir"
},
"comment":{
"match":"\/\/.*$",
"name":"comment.line.double-slash.mlir"
},
"identifier":{
"match":"[\\%#@][\\w_][\\w\\d_.$]*",
"captures":{
"0":{
"name":"variable.mlir"
}
},
"name":"meta.identifier.mlir"
},
"integer":{
"match":"[\\Wx]([0-9]+)",
"captures":{
"1":{
"name":"constant.numeric.mlir"
}
},
"name":"meta.identifier.mlir"
},
"string":{
"end":"\"",
"begin":"\"",
"beginCaptures":{
"0":{
"name":"punctuation.definition.string.begin.mlir"
}
},
"patterns":[
{
"match":"\\\\[nt\"]",
"name":"constant.character.escape.mlir"
},
{
"match":"\\\\.",
"name":"invalid.illegal.mlir"
}
],
"endCaptures":{
"0":{
"name":"punctuation.definition.string.end.mlir"
}
},
"name":"string.quoted.double.mlir"
},
"types":{
"match":"[\\Wx](index|i[1-9][0-9]*|f16|bf16|f32|f64|memref|tensor|vector)\\b",
"captures":{
"1":{
"name":"storage.type.mlir"
}
},
"name":"meta.types.simple.mlir"
}
},
"patterns":[
{
"include":"#comment"
},
{
"include":"#string"
},
{
"match":"\\b(func)\\b\\s*(@[\\w_][\\w\\d_.$]*)",
"captures":{
"1":{
"name":"keyword.function.mlir"
},
"2":{
"name":"entity.name.function.mlir"
}
},
"name":"support.function.mlir"
},
{
"match":"\\b(attributes|br|call|constant|loc|return)\\b",
"name":"keyword.module.mlir"
},
{
"include":"#identifier"
},
{
"include":"#branch_target"
},
{
"include":"#attribute"
},
{
"include":"#types"
},
{
"include":"#integer"
}
],
"name":"MLIR",
"scopeName":"source.mlir"
}