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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444 | def get_all_dialects() -> dict[str, Callable[[], Dialect]]:
"""Returns all available dialects."""
def get_accfg():
from xdsl.dialects.accfg import ACCFG
return ACCFG
def get_affine():
from xdsl.dialects.affine import Affine
return Affine
def get_air():
from xdsl.dialects.experimental.air import AIR
return AIR
def get_arith():
from xdsl.dialects.arith import Arith
return Arith
def get_arm():
from xdsl.dialects.arm import ARM
return ARM
def get_arm_func():
from xdsl.dialects.arm_func import ARM_FUNC
return ARM_FUNC
def get_arm_neon():
from xdsl.dialects.arm_neon import ARM_NEON
return ARM_NEON
def get_bigint():
from xdsl.dialects.bigint import BigInt
return BigInt
def get_bufferization():
from xdsl.dialects.bufferization import Bufferization
return Bufferization
def get_builtin():
from xdsl.dialects.builtin import Builtin
return Builtin
def get_cf():
from xdsl.dialects.cf import Cf
return Cf
def get_cmath():
from xdsl.dialects.cmath import Cmath
return Cmath
def get_comb():
from xdsl.dialects.comb import Comb
return Comb
def get_complex():
from xdsl.dialects.complex import Complex
return Complex
def get_csl():
from xdsl.dialects.csl import CSL
return CSL
def get_csl_stencil():
from xdsl.dialects.csl.csl_stencil import CSL_STENCIL
return CSL_STENCIL
def get_csl_wrapper():
from xdsl.dialects.csl.csl_wrapper import CSL_WRAPPER
return CSL_WRAPPER
def get_dlti():
from xdsl.dialects.dlti import DLTI
return DLTI
def get_dmp():
from xdsl.dialects.experimental.dmp import DMP
return DMP
def get_ematch():
from xdsl.dialects.ematch import Ematch
return Ematch
def get_emitc():
from xdsl.dialects.emitc import EmitC
return EmitC
def get_equivalence():
from xdsl.dialects.equivalence import Equivalence
return Equivalence
def get_eqsat_pdl_interp():
from xdsl.dialects.eqsat_pdl_interp import EqSatPDLInterp
return EqSatPDLInterp
def get_fir():
from xdsl.dialects.experimental.fir import FIR
return FIR
def get_fsm():
from xdsl.dialects.fsm import FSM
return FSM
def get_func():
from xdsl.dialects.func import Func
return Func
def get_gpu():
from xdsl.dialects.gpu import GPU
return GPU
def get_hlfir():
from xdsl.dialects.experimental.hlfir import HLFIR
return HLFIR
def get_hls():
from xdsl.dialects.experimental.hls import HLS
return HLS
def get_hw():
from xdsl.dialects.hw import HW
return HW
def get_linalg():
from xdsl.dialects.linalg import Linalg
return Linalg
def get_irdl():
from xdsl.dialects.irdl.irdl import IRDL
return IRDL
def get_llvm():
from xdsl.dialects.llvm import LLVM
return LLVM
def get_ltl():
from xdsl.dialects.ltl import LTL
return LTL
def get_math():
from xdsl.dialects.math import Math
return Math
def get_math_xdsl():
from xdsl.dialects.math_xdsl import MathXDSL
return MathXDSL
def get_memref():
from xdsl.dialects.memref import MemRef
return MemRef
def get_memref_stream():
from xdsl.dialects.memref_stream import MemRefStream
return MemRefStream
def get_mesh():
from xdsl.dialects.mesh import Mesh
return Mesh
def get_ml_program():
from xdsl.dialects.ml_program import MLProgram
return MLProgram
def get_mod_arith():
from xdsl.dialects.mod_arith import ModArith
return ModArith
def get_mpi():
from xdsl.dialects.mpi import MPI
return MPI
def get_omp():
from xdsl.dialects.omp import OMP
return OMP
def get_pdl():
from xdsl.dialects.pdl import PDL
return PDL
def get_pdl_interp():
from xdsl.dialects.pdl_interp import PDLInterp
return PDLInterp
def get_printf():
from xdsl.dialects.printf import Printf
return Printf
def get_ptr_xdsl():
from xdsl.dialects.ptr import Ptr
return Ptr
def get_riscv_debug():
from xdsl.dialects.riscv_debug import RISCV_Debug
return RISCV_Debug
def get_riscv():
from xdsl.dialects.riscv import RISCV
return RISCV
def get_riscv_func():
from xdsl.dialects.riscv_func import RISCV_Func
return RISCV_Func
def get_riscv_scf():
from xdsl.dialects.riscv_scf import RISCV_Scf
return RISCV_Scf
def get_riscv_cf():
from xdsl.dialects.riscv_cf import RISCV_Cf
return RISCV_Cf
def get_riscv_snitch():
from xdsl.dialects.riscv_snitch import RISCV_Snitch
return RISCV_Snitch
def get_scf():
from xdsl.dialects.scf import Scf
return Scf
def get_seq():
from xdsl.dialects.seq import Seq
return Seq
def get_smt():
from xdsl.dialects.smt import SMT
return SMT
def get_snitch():
from xdsl.dialects.snitch import Snitch
return Snitch
def get_snitch_runtime():
from xdsl.dialects.snitch_runtime import SnitchRuntime
return SnitchRuntime
def get_snitch_stream():
from xdsl.dialects.snitch_stream import SnitchStream
return SnitchStream
def get_stencil():
from xdsl.dialects.stencil import Stencil
return Stencil
def get_stim():
from xdsl.dialects.stim import Stim
return Stim
def get_symref():
from xdsl.dialects.symref import Symref
return Symref
def get_tensor():
from xdsl.dialects.tensor import Tensor
return Tensor
def get_test():
from xdsl.dialects.test import Test
return Test
def get_tosa():
from xdsl.dialects.tosa import TOSA
return TOSA
def get_varith():
from xdsl.dialects.varith import Varith
return Varith
def get_vector():
from xdsl.dialects.vector import Vector
return Vector
def get_wasm():
from xdsl.dialects.wasm import Wasm
return Wasm
def get_x86():
from xdsl.dialects.x86 import X86
return X86
def get_x86_func():
from xdsl.dialects.x86_func import X86_FUNC
return X86_FUNC
def get_x86_scf():
from xdsl.dialects.x86_scf import X86_Scf
return X86_Scf
def get_transform():
from xdsl.dialects.transform import Transform
return Transform
return {
"accfg": get_accfg,
"affine": get_affine,
"air": get_air,
"arith": get_arith,
"arm": get_arm,
"arm_func": get_arm_func,
"arm_neon": get_arm_neon,
"bigint": get_bigint,
"bufferization": get_bufferization,
"builtin": get_builtin,
"cf": get_cf,
"cmath": get_cmath,
"comb": get_comb,
"complex": get_complex,
"csl": get_csl,
"csl_stencil": get_csl_stencil,
"csl_wrapper": get_csl_wrapper,
"dlti": get_dlti,
"dmp": get_dmp,
"ematch": get_ematch,
"emitc": get_emitc,
"equivalence": get_equivalence,
"eqsat_pdl_interp": get_eqsat_pdl_interp,
"fir": get_fir,
"fsm": get_fsm,
"func": get_func,
"gpu": get_gpu,
"hlfir": get_hlfir,
"hls": get_hls,
"hw": get_hw,
"linalg": get_linalg,
"irdl": get_irdl,
"llvm": get_llvm,
"ltl": get_ltl,
"math": get_math,
"math_xdsl": get_math_xdsl,
"memref": get_memref,
"memref_stream": get_memref_stream,
"mesh": get_mesh,
"ml_program": get_ml_program,
"mod_arith": get_mod_arith,
"mpi": get_mpi,
"omp": get_omp,
"pdl": get_pdl,
"pdl_interp": get_pdl_interp,
"printf": get_printf,
"ptr_xdsl": get_ptr_xdsl,
"riscv": get_riscv,
"riscv_debug": get_riscv_debug,
"riscv_func": get_riscv_func,
"riscv_scf": get_riscv_scf,
"riscv_cf": get_riscv_cf,
"riscv_snitch": get_riscv_snitch,
"scf": get_scf,
"seq": get_seq,
"smt": get_smt,
"snitch": get_snitch,
"snrt": get_snitch_runtime,
"snitch_stream": get_snitch_stream,
"stencil": get_stencil,
"stim": get_stim,
"symref": get_symref,
"tensor": get_tensor,
"test": get_test,
"tosa": get_tosa,
"varith": get_varith,
"vector": get_vector,
"wasm": get_wasm,
"x86": get_x86,
"x86_func": get_x86_func,
"x86_scf": get_x86_scf,
"transform": get_transform,
}
|