@@ -37,7 +37,7 @@ pub const Inst = struct {
37
37
/// liveness analysis without any special handling.
38
38
/// Uses the `arg` field.
39
39
arg ,
40
- /// Float or integer addition. For integers, wrapping is undefined behavior.
40
+ /// Float or integer addition. For integers, wrapping is illegal behavior.
41
41
/// Both operands are guaranteed to be the same type, and the result type
42
42
/// is the same as both operands.
43
43
/// Uses the `bin_op` field.
@@ -66,7 +66,7 @@ pub const Inst = struct {
66
66
/// is the same as both operands.
67
67
/// Uses the `bin_op` field.
68
68
add_sat ,
69
- /// Float or integer subtraction. For integers, wrapping is undefined behavior.
69
+ /// Float or integer subtraction. For integers, wrapping is illegal behavior.
70
70
/// Both operands are guaranteed to be the same type, and the result type
71
71
/// is the same as both operands.
72
72
/// Uses the `bin_op` field.
@@ -95,7 +95,7 @@ pub const Inst = struct {
95
95
/// is the same as both operands.
96
96
/// Uses the `bin_op` field.
97
97
sub_sat ,
98
- /// Float or integer multiplication. For integers, wrapping is undefined behavior.
98
+ /// Float or integer multiplication. For integers, wrapping is illegal behavior.
99
99
/// Both operands are guaranteed to be the same type, and the result type
100
100
/// is the same as both operands.
101
101
/// Uses the `bin_op` field.
@@ -131,23 +131,23 @@ pub const Inst = struct {
131
131
div_float ,
132
132
/// Same as `div_float` with optimized float mode.
133
133
div_float_optimized ,
134
- /// Truncating integer or float division. For integers, wrapping is undefined behavior.
134
+ /// Truncating integer or float division. For integers, wrapping is illegal behavior.
135
135
/// Both operands are guaranteed to be the same type, and the result type
136
136
/// is the same as both operands.
137
137
/// Uses the `bin_op` field.
138
138
div_trunc ,
139
139
/// Same as `div_trunc` with optimized float mode.
140
140
div_trunc_optimized ,
141
- /// Flooring integer or float division. For integers, wrapping is undefined behavior.
141
+ /// Flooring integer or float division. For integers, wrapping is illegal behavior.
142
142
/// Both operands are guaranteed to be the same type, and the result type
143
143
/// is the same as both operands.
144
144
/// Uses the `bin_op` field.
145
145
div_floor ,
146
146
/// Same as `div_floor` with optimized float mode.
147
147
div_floor_optimized ,
148
148
/// Integer or float division.
149
- /// If a remainder would be produced, undefined behavior occurs.
150
- /// For integers, overflow is undefined behavior.
149
+ /// If a remainder would be produced, illegal behavior occurs.
150
+ /// For integers, overflow is illegal behavior.
151
151
/// Both operands are guaranteed to be the same type, and the result type
152
152
/// is the same as both operands.
153
153
/// Uses the `bin_op` field.
@@ -170,14 +170,14 @@ pub const Inst = struct {
170
170
mod_optimized ,
171
171
/// Add an offset to a pointer, returning a new pointer.
172
172
/// The offset is in element type units, not bytes.
173
- /// Wrapping is undefined behavior.
173
+ /// Wrapping is illegal behavior.
174
174
/// The lhs is the pointer, rhs is the offset. Result type is the same as lhs.
175
175
/// The pointer may be a slice.
176
176
/// Uses the `ty_pl` field. Payload is `Bin`.
177
177
ptr_add ,
178
178
/// Subtract an offset from a pointer, returning a new pointer.
179
179
/// The offset is in element type units, not bytes.
180
- /// Wrapping is undefined behavior.
180
+ /// Wrapping is illegal behavior.
181
181
/// The lhs is the pointer, rhs is the offset. Result type is the same as lhs.
182
182
/// The pointer may be a slice.
183
183
/// Uses the `ty_pl` field. Payload is `Bin`.
@@ -577,10 +577,10 @@ pub const Inst = struct {
577
577
/// sign but an equal or smaller number of bits.
578
578
/// Uses the `ty_op` field.
579
579
trunc ,
580
- /// ?T => T. If the value is null, undefined behavior.
580
+ /// ?T => T. If the value is null, illegal behavior.
581
581
/// Uses the `ty_op` field.
582
582
optional_payload ,
583
- /// *?T => *T. If the value is null, undefined behavior.
583
+ /// *?T => *T. If the value is null, illegal behavior.
584
584
/// Uses the `ty_op` field.
585
585
optional_payload_ptr ,
586
586
/// *?T => *T. Sets the value to non-null with an undefined payload value.
@@ -589,16 +589,16 @@ pub const Inst = struct {
589
589
/// Given a payload value, wraps it in an optional type.
590
590
/// Uses the `ty_op` field.
591
591
wrap_optional ,
592
- /// E!T -> T. If the value is an error, undefined behavior.
592
+ /// E!T -> T. If the value is an error, illegal behavior.
593
593
/// Uses the `ty_op` field.
594
594
unwrap_errunion_payload ,
595
- /// E!T -> E. If the value is not an error, undefined behavior.
595
+ /// E!T -> E. If the value is not an error, illegal behavior.
596
596
/// Uses the `ty_op` field.
597
597
unwrap_errunion_err ,
598
- /// *(E!T) -> *T. If the value is an error, undefined behavior.
598
+ /// *(E!T) -> *T. If the value is an error, illegal behavior.
599
599
/// Uses the `ty_op` field.
600
600
unwrap_errunion_payload_ptr ,
601
- /// *(E!T) -> E. If the value is not an error, undefined behavior.
601
+ /// *(E!T) -> E. If the value is not an error, illegal behavior.
602
602
/// Uses the `ty_op` field.
603
603
unwrap_errunion_err_ptr ,
604
604
/// *(E!T) => *T. Sets the value to non-error with an undefined payload value.
0 commit comments