Commit a356b10
committed
[SPIR-V] Fix SPIRVEmitIntrinsics undefined behavior
InstrSet in SPIRVEmitIntrinsics is uninitialized before running
runOnFunction. This change adds a new function
getPreferredInstructionSet in SPIRVSubtarget.1 parent b7eee2c commit a356b10
File tree
4 files changed
+18
-18
lines changed- llvm/lib/Target/SPIRV
4 files changed
+18
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
| 547 | + | |
554 | 548 | | |
555 | 549 | | |
556 | 550 | | |
| |||
607 | 601 | | |
608 | 602 | | |
609 | 603 | | |
610 | | - | |
611 | | - | |
612 | 604 | | |
613 | | - | |
614 | | - | |
| 605 | + | |
| 606 | + | |
615 | 607 | | |
616 | 608 | | |
617 | 609 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
| |||
896 | 895 | | |
897 | 896 | | |
898 | 897 | | |
899 | | - | |
900 | | - | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
901 | 901 | | |
902 | 902 | | |
903 | 903 | | |
| |||
2317 | 2317 | | |
2318 | 2318 | | |
2319 | 2319 | | |
2320 | | - | |
2321 | | - | |
2322 | 2320 | | |
2323 | 2321 | | |
2324 | 2322 | | |
| |||
2475 | 2473 | | |
2476 | 2474 | | |
2477 | 2475 | | |
2478 | | - | |
2479 | | - | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
2480 | 2479 | | |
2481 | 2480 | | |
2482 | 2481 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
114 | 122 | | |
115 | 123 | | |
116 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
0 commit comments