| ... | ... | @@ -124,17 +124,6 @@ pub const Tag = enum { |
| 124 | 124 | work_group_id, |
| 125 | 125 | }; |
| 126 | 126 | |
| 127 | | pub const MemLocRequirement = enum { |
| 128 | | /// The builtin never needs a memory location. |
| 129 | | never, |
| 130 | | /// The builtin always needs a memory location. |
| 131 | | always, |
| 132 | | /// The builtin forwards the question to argument at index 0. |
| 133 | | forward0, |
| 134 | | /// The builtin forwards the question to argument at index 1. |
| 135 | | forward1, |
| 136 | | }; |
| 137 | | |
| 138 | 127 | pub const EvalToError = enum { |
| 139 | 128 | /// The builtin cannot possibly evaluate to an error. |
| 140 | 129 | never, |
| ... | ... | @@ -146,8 +135,6 @@ pub const EvalToError = enum { |
| 146 | 135 | |
| 147 | 136 | tag: Tag, |
| 148 | 137 | |
| 149 | | /// Info about the builtin call's ability to take advantage of a result location pointer. |
| 150 | | needs_mem_loc: MemLocRequirement = .never, |
| 151 | 138 | /// Info about the builtin call's possibility of returning an error. |
| 152 | 139 | eval_to_error: EvalToError = .never, |
| 153 | 140 | /// `true` if the builtin call can be the left-hand side of an expression (assigned to). |
| ... | ... | @@ -193,7 +180,6 @@ pub const list = list: { |
| 193 | 180 | "@as", |
| 194 | 181 | .{ |
| 195 | 182 | .tag = .as, |
| 196 | | .needs_mem_loc = .forward1, |
| 197 | 183 | .eval_to_error = .maybe, |
| 198 | 184 | .param_count = 2, |
| 199 | 185 | }, |
| ... | ... | @@ -230,7 +216,6 @@ pub const list = list: { |
| 230 | 216 | "@bitCast", |
| 231 | 217 | .{ |
| 232 | 218 | .tag = .bit_cast, |
| 233 | | .needs_mem_loc = .forward0, |
| 234 | 219 | .param_count = 1, |
| 235 | 220 | }, |
| 236 | 221 | }, |
| ... | ... | @@ -311,7 +296,6 @@ pub const list = list: { |
| 311 | 296 | "@call", |
| 312 | 297 | .{ |
| 313 | 298 | .tag = .call, |
| 314 | | .needs_mem_loc = .always, |
| 315 | 299 | .eval_to_error = .maybe, |
| 316 | 300 | .param_count = 3, |
| 317 | 301 | }, |
| ... | ... | @@ -503,7 +487,6 @@ pub const list = list: { |
| 503 | 487 | "@field", |
| 504 | 488 | .{ |
| 505 | 489 | .tag = .field, |
| 506 | | .needs_mem_loc = .always, |
| 507 | 490 | .eval_to_error = .maybe, |
| 508 | 491 | .param_count = 2, |
| 509 | 492 | .allows_lvalue = true, |
| ... | ... | @@ -817,7 +800,6 @@ pub const list = list: { |
| 817 | 800 | "@src", |
| 818 | 801 | .{ |
| 819 | 802 | .tag = .src, |
| 820 | | .needs_mem_loc = .always, |
| 821 | 803 | .param_count = 0, |
| 822 | 804 | .illegal_outside_function = true, |
| 823 | 805 | }, |
| ... | ... | @@ -987,7 +969,6 @@ pub const list = list: { |
| 987 | 969 | "@unionInit", |
| 988 | 970 | .{ |
| 989 | 971 | .tag = .union_init, |
| 990 | | .needs_mem_loc = .always, |
| 991 | 972 | .param_count = 3, |
| 992 | 973 | }, |
| 993 | 974 | }, |