Commit a300087
committed
refactor: replace
The only difference between our wrappers and the plain LLVM functions
is that our wrappers take an extra `volatile` argument. But we can easily
just set the `volatile` flag on the LLVM IR instructions after creating
them using `LLVMSetVolatile`.LLVMRustBuildMem{Cpy,Move,Set} with plain LLVM functions1 parent 5767910 commit a300087
File tree
3 files changed
+50
-77
lines changed- compiler
- rustc_codegen_llvm/src
- llvm
- rustc_llvm/llvm-wrapper
3 files changed
+50
-77
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
| 180 | + | |
188 | 181 | | |
189 | 182 | | |
190 | 183 | | |
| |||
1103 | 1096 | | |
1104 | 1097 | | |
1105 | 1098 | | |
1106 | | - | |
| 1099 | + | |
1107 | 1100 | | |
1108 | 1101 | | |
1109 | 1102 | | |
1110 | 1103 | | |
1111 | 1104 | | |
1112 | 1105 | | |
1113 | | - | |
1114 | 1106 | | |
1115 | 1107 | | |
1116 | 1108 | | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
1117 | 1115 | | |
1118 | 1116 | | |
1119 | 1117 | | |
| |||
1136 | 1134 | | |
1137 | 1135 | | |
1138 | 1136 | | |
1139 | | - | |
1140 | | - | |
| 1137 | + | |
| 1138 | + | |
1141 | 1139 | | |
1142 | 1140 | | |
1143 | 1141 | | |
1144 | 1142 | | |
1145 | 1143 | | |
1146 | 1144 | | |
1147 | | - | |
1148 | | - | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
1149 | 1152 | | |
1150 | 1153 | | |
1151 | 1154 | | |
| |||
1159 | 1162 | | |
1160 | 1163 | | |
1161 | 1164 | | |
1162 | | - | |
1163 | | - | |
1164 | | - | |
1165 | | - | |
1166 | | - | |
1167 | | - | |
1168 | | - | |
1169 | | - | |
1170 | | - | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
1171 | 1173 | | |
1172 | 1174 | | |
1173 | 1175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1693 | 1693 | | |
1694 | 1694 | | |
1695 | 1695 | | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
1696 | 1721 | | |
1697 | 1722 | | |
1698 | 1723 | | |
| |||
2016 | 2041 | | |
2017 | 2042 | | |
2018 | 2043 | | |
2019 | | - | |
2020 | | - | |
2021 | | - | |
2022 | | - | |
2023 | | - | |
2024 | | - | |
2025 | | - | |
2026 | | - | |
2027 | | - | |
2028 | | - | |
2029 | | - | |
2030 | | - | |
2031 | | - | |
2032 | | - | |
2033 | | - | |
2034 | | - | |
2035 | | - | |
2036 | | - | |
2037 | | - | |
2038 | | - | |
2039 | | - | |
2040 | | - | |
2041 | | - | |
2042 | | - | |
2043 | | - | |
2044 | | - | |
2045 | | - | |
2046 | 2044 | | |
2047 | 2045 | | |
2048 | 2046 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1378 | 1378 | | |
1379 | 1379 | | |
1380 | 1380 | | |
1381 | | - | |
1382 | | - | |
1383 | | - | |
1384 | | - | |
1385 | | - | |
1386 | | - | |
1387 | | - | |
1388 | | - | |
1389 | | - | |
1390 | | - | |
1391 | | - | |
1392 | | - | |
1393 | | - | |
1394 | | - | |
1395 | | - | |
1396 | | - | |
1397 | | - | |
1398 | | - | |
1399 | | - | |
1400 | | - | |
1401 | | - | |
1402 | | - | |
1403 | | - | |
1404 | | - | |
1405 | | - | |
1406 | | - | |
1407 | | - | |
1408 | 1381 | | |
1409 | 1382 | | |
1410 | 1383 | | |
| |||
0 commit comments