Commit 9147628
authored
Add triton-opt and triton-llvm-opt for Triton (#8)
Also allow to use opt, llc and custom tools for Triron IRs.
mlir-opt remains disabled for Triton as it seem to be unusable without --allow-unregistered-dialect. Yet a user can call mlir-opt as unspecified custom tool (if anybody reading this commit message disagrees - please don't hesitate and comment on the PR or open an issue).
TODO:
Triton support is still very raw, need to dump IR not from cache dir. With that fix - merge triton_llvm_ir and llvm_ir IR targets.
Explore AMD and Intel lowering for Triton.
opt tool bar starts to get overloaded - explicit listing of tools in MLIR ecosystem supported by the app is good for novices like myself, but for advanced users it should be a command line.
git blame note: I've applied npx prettier --write without preserving intermediate stage, so diff became bigger, then I have anticipated.1 parent 529bbed commit 9147628
File tree
9 files changed
+422
-287
lines changed- backend
- src/app
- tests
9 files changed
+422
-287
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| 59 | + | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| |||
156 | 159 | | |
157 | 160 | | |
158 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
159 | 166 | | |
160 | 167 | | |
161 | 168 | | |
| |||
341 | 348 | | |
342 | 349 | | |
343 | 350 | | |
344 | | - | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
345 | 354 | | |
346 | 355 | | |
347 | 356 | | |
| |||
403 | 412 | | |
404 | 413 | | |
405 | 414 | | |
406 | | - | |
| 415 | + | |
| 416 | + | |
407 | 417 | | |
408 | 418 | | |
409 | 419 | | |
| |||
427 | 437 | | |
428 | 438 | | |
429 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
430 | 446 | | |
431 | 447 | | |
432 | 448 | | |
| |||
437 | 453 | | |
438 | 454 | | |
439 | 455 | | |
440 | | - | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
441 | 460 | | |
442 | 461 | | |
443 | 462 | | |
| |||
0 commit comments