Commit 17c1921
authored
[mlir][spirv] Add support for structs decorations (#149793)
An alternative implementation could use `ArrayRef` of `NamedAttribute`s
or `NamedAttrList` to store structs decorations, as the deserializer
uses `NamedAttribute`s for decorations. However, using a custom struct
allows us to store the `spirv::Decoration`s directly rather than its
name in a `StringRef`/`StringAttr`.1 parent 330b40e commit 17c1921
File tree
10 files changed
+270
-78
lines changed- mlir
- include/mlir/Dialect/SPIRV/IR
- lib
- Dialect/SPIRV/IR
- Target/SPIRV
- Deserialization
- Serialization
- test
- Dialect/SPIRV/IR
- Target/SPIRV
10 files changed
+270
-78
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
333 | 356 | | |
334 | 357 | | |
335 | 358 | | |
336 | | - | |
| 359 | + | |
| 360 | + | |
337 | 361 | | |
338 | 362 | | |
339 | 363 | | |
| |||
367 | 391 | | |
368 | 392 | | |
369 | 393 | | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
370 | 397 | | |
371 | 398 | | |
372 | 399 | | |
| |||
380 | 407 | | |
381 | 408 | | |
382 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
383 | 415 | | |
384 | 416 | | |
385 | 417 | | |
386 | 418 | | |
387 | 419 | | |
388 | | - | |
| 420 | + | |
| 421 | + | |
389 | 422 | | |
390 | 423 | | |
391 | 424 | | |
| |||
396 | 429 | | |
397 | 430 | | |
398 | 431 | | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
399 | 435 | | |
400 | 436 | | |
401 | 437 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
693 | 693 | | |
694 | 694 | | |
695 | 695 | | |
696 | | - | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
697 | 699 | | |
698 | 700 | | |
699 | 701 | | |
| |||
767 | 769 | | |
768 | 770 | | |
769 | 771 | | |
770 | | - | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
771 | 802 | | |
772 | 803 | | |
773 | 804 | | |
774 | 805 | | |
775 | | - | |
| 806 | + | |
| 807 | + | |
776 | 808 | | |
777 | 809 | | |
778 | 810 | | |
779 | 811 | | |
780 | | - | |
| 812 | + | |
| 813 | + | |
781 | 814 | | |
782 | 815 | | |
783 | 816 | | |
| |||
893 | 926 | | |
894 | 927 | | |
895 | 928 | | |
896 | | - | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
897 | 946 | | |
898 | 947 | | |
899 | 948 | | |
| |||
0 commit comments