rust/tests/mir-opt/const_prop
Dylan DPC dbd090c655
Rollup merge of #110694 - est31:builtin, r=petrochenkov
Implement builtin # syntax and use it for offset_of!(...)

Add `builtin #` syntax to the parser, as well as a generic infrastructure to support both item and expression position builtin syntaxes. The PR also uses this infrastructure for the implementation of the `offset_of!` macro, added by #106934.

cc `@petrochenkov` `@DrMeepster`

cc #110680 `builtin #` tracking issue
cc #106655 `offset_of!` tracking issue
2023-05-09 12:33:45 +05:30
..
address_of_pair.fn0.ConstProp.diff Reject borrows of projections in ConstProp. 2023-05-04 21:51:44 +00:00
address_of_pair.rs Add tests. 2023-05-04 21:50:46 +00:00
aggregate.foo.ConstProp.diff
aggregate.foo.PreCodegen.after.mir
aggregate.main.ConstProp.diff
aggregate.main.PreCodegen.after.mir
aggregate.rs
array_index.main.ConstProp.32bit.diff
array_index.main.ConstProp.64bit.diff
array_index.rs
bad_op_div_by_zero.main.ConstProp.diff
bad_op_div_by_zero.rs
bad_op_mod_by_zero.main.ConstProp.diff Make ConstProp tests unit. 2023-05-02 16:46:56 +00:00
bad_op_mod_by_zero.rs Make ConstProp tests unit. 2023-05-02 16:46:56 +00:00
bad_op_unsafe_oob_for_slices.main.ConstProp.32bit.diff Propagate PlaceElem::Index. 2023-05-07 11:10:52 +00:00
bad_op_unsafe_oob_for_slices.main.ConstProp.64bit.diff Propagate PlaceElem::Index. 2023-05-07 11:10:52 +00:00
bad_op_unsafe_oob_for_slices.rs Make ConstProp tests unit. 2023-05-02 16:46:56 +00:00
boolean_identities.rs
boolean_identities.test.ConstProp.diff
boxes.main.ConstProp.diff
boxes.rs
cast.main.ConstProp.diff
cast.rs
checked_add.main.ConstProp.diff
checked_add.rs
const_prop_fails_gracefully.main.ConstProp.diff
const_prop_fails_gracefully.rs
control_flow_simplification.hello.ConstProp.diff
control_flow_simplification.hello.PreCodegen.before.mir
control_flow_simplification.rs
discriminant.main.ConstProp.32bit.diff
discriminant.main.ConstProp.64bit.diff
discriminant.rs
indirect.main.ConstProp.diff
indirect.rs
inherit_overflow.main.ConstProp.diff
inherit_overflow.rs
invalid_constant.main.ConstProp.diff Make ConstProp tests unit. 2023-05-02 16:46:56 +00:00
invalid_constant.main.RemoveZsts.diff
invalid_constant.rs Make ConstProp tests unit. 2023-05-02 16:46:56 +00:00
issue_66971.main.ConstProp.diff
issue_66971.rs
issue_67019.main.ConstProp.diff
issue_67019.rs
large_array_index.main.ConstProp.32bit.diff Propagate PlaceElem::Index. 2023-05-07 11:10:52 +00:00
large_array_index.main.ConstProp.64bit.diff Propagate PlaceElem::Index. 2023-05-07 11:10:52 +00:00
large_array_index.rs Make ConstProp tests unit. 2023-05-02 16:46:56 +00:00
mult_by_zero.rs Make some tests unit. 2023-04-23 17:13:18 +00:00
mult_by_zero.test.ConstProp.diff Make some tests unit. 2023-04-23 17:13:18 +00:00
mutable_variable_aggregate_mut_ref.main.ConstProp.diff Make some tests unit. 2023-04-23 17:13:18 +00:00
mutable_variable_aggregate_mut_ref.rs Make some tests unit. 2023-04-23 17:13:18 +00:00
mutable_variable_aggregate_partial_read.main.ConstProp.diff Make some tests unit. 2023-04-23 17:13:18 +00:00
mutable_variable_aggregate_partial_read.rs Make some tests unit. 2023-04-23 17:13:18 +00:00
mutable_variable_aggregate.main.ConstProp.diff Make some tests unit. 2023-04-23 17:13:18 +00:00
mutable_variable_aggregate.rs Make some tests unit. 2023-04-23 17:13:18 +00:00
mutable_variable_no_prop.main.ConstProp.diff Make some tests unit. 2023-04-23 17:13:18 +00:00
mutable_variable_no_prop.rs Make some tests unit. 2023-04-23 17:13:18 +00:00
mutable_variable_unprop_assign.main.ConstProp.diff Make some tests unit. 2023-04-23 17:13:18 +00:00
mutable_variable_unprop_assign.rs Make some tests unit. 2023-04-23 17:13:18 +00:00
mutable_variable.main.ConstProp.diff Make some tests unit. 2023-04-23 17:13:18 +00:00
mutable_variable.rs Make some tests unit. 2023-04-23 17:13:18 +00:00
offset_of.concrete.ConstProp.diff Migrate offset_of from a macro to builtin # syntax 2023-05-05 21:44:13 +02:00
offset_of.generic.ConstProp.diff Migrate offset_of from a macro to builtin # syntax 2023-05-05 21:44:13 +02:00
offset_of.rs Make some tests unit. 2023-04-23 17:13:18 +00:00
read_immutable_static.main.ConstProp.diff Make some tests unit. 2023-04-23 17:13:18 +00:00
read_immutable_static.rs Make some tests unit. 2023-04-23 17:13:18 +00:00
ref_deref_project.main.ConstProp.diff
ref_deref_project.rs
ref_deref.main.ConstProp.diff
ref_deref.rs
reify_fn_ptr.main.ConstProp.diff Make ConstProp tests unit. 2023-05-02 16:46:56 +00:00
reify_fn_ptr.rs Make ConstProp tests unit. 2023-05-02 16:46:56 +00:00
repeat.main.ConstProp.32bit.diff Make ConstProp tests unit. 2023-05-02 16:46:56 +00:00
repeat.main.ConstProp.64bit.diff Make ConstProp tests unit. 2023-05-02 16:46:56 +00:00
repeat.rs Make ConstProp tests unit. 2023-05-02 16:46:56 +00:00
return_place.add.ConstProp.diff
return_place.add.PreCodegen.before.mir Make ConstProp tests unit. 2023-05-02 16:46:56 +00:00
return_place.rs Make ConstProp tests unit. 2023-05-02 16:46:56 +00:00
scalar_literal_propagation.main.ConstProp.diff Make ConstProp tests unit. 2023-05-02 16:46:56 +00:00
scalar_literal_propagation.rs Make ConstProp tests unit. 2023-05-02 16:46:56 +00:00
slice_len.main.ConstProp.32bit.diff
slice_len.main.ConstProp.64bit.diff
slice_len.rs Rename InstCombine to InstSimplify 2023-05-06 23:22:32 -04:00
switch_int.main.ConstProp.diff Make ConstProp tests unit. 2023-05-02 16:46:56 +00:00
switch_int.main.SimplifyConstCondition-after-const-prop.diff Make ConstProp tests unit. 2023-05-02 16:46:56 +00:00
switch_int.rs Make ConstProp tests unit. 2023-05-02 16:46:56 +00:00
transmute.from_char.ConstProp.32bit.diff Use EMIT_MIR_FOR_EACH_BIT_WIDTH in transmute mir-opt test 2023-04-27 00:00:00 +00:00
transmute.from_char.ConstProp.64bit.diff Use EMIT_MIR_FOR_EACH_BIT_WIDTH in transmute mir-opt test 2023-04-27 00:00:00 +00:00
transmute.invalid_bool.ConstProp.32bit.diff Use EMIT_MIR_FOR_EACH_BIT_WIDTH in transmute mir-opt test 2023-04-27 00:00:00 +00:00
transmute.invalid_bool.ConstProp.64bit.diff Use EMIT_MIR_FOR_EACH_BIT_WIDTH in transmute mir-opt test 2023-04-27 00:00:00 +00:00
transmute.invalid_char.ConstProp.32bit.diff Use EMIT_MIR_FOR_EACH_BIT_WIDTH in transmute mir-opt test 2023-04-27 00:00:00 +00:00
transmute.invalid_char.ConstProp.64bit.diff Use EMIT_MIR_FOR_EACH_BIT_WIDTH in transmute mir-opt test 2023-04-27 00:00:00 +00:00
transmute.less_as_i8.ConstProp.32bit.diff Use EMIT_MIR_FOR_EACH_BIT_WIDTH in transmute mir-opt test 2023-04-27 00:00:00 +00:00
transmute.less_as_i8.ConstProp.64bit.diff Use EMIT_MIR_FOR_EACH_BIT_WIDTH in transmute mir-opt test 2023-04-27 00:00:00 +00:00
transmute.rs Use EMIT_MIR_FOR_EACH_BIT_WIDTH in transmute mir-opt test 2023-04-27 00:00:00 +00:00
transmute.undef_union_as_integer.ConstProp.32bit.diff Use EMIT_MIR_FOR_EACH_BIT_WIDTH in transmute mir-opt test 2023-04-27 00:00:00 +00:00
transmute.undef_union_as_integer.ConstProp.64bit.diff Use EMIT_MIR_FOR_EACH_BIT_WIDTH in transmute mir-opt test 2023-04-27 00:00:00 +00:00
transmute.unreachable_box.ConstProp.32bit.diff Use EMIT_MIR_FOR_EACH_BIT_WIDTH in transmute mir-opt test 2023-04-27 00:00:00 +00:00
transmute.unreachable_box.ConstProp.64bit.diff Use EMIT_MIR_FOR_EACH_BIT_WIDTH in transmute mir-opt test 2023-04-27 00:00:00 +00:00
transmute.unreachable_direct.ConstProp.32bit.diff Use EMIT_MIR_FOR_EACH_BIT_WIDTH in transmute mir-opt test 2023-04-27 00:00:00 +00:00
transmute.unreachable_direct.ConstProp.64bit.diff Use EMIT_MIR_FOR_EACH_BIT_WIDTH in transmute mir-opt test 2023-04-27 00:00:00 +00:00
transmute.unreachable_mut.ConstProp.32bit.diff Use EMIT_MIR_FOR_EACH_BIT_WIDTH in transmute mir-opt test 2023-04-27 00:00:00 +00:00
transmute.unreachable_mut.ConstProp.64bit.diff Use EMIT_MIR_FOR_EACH_BIT_WIDTH in transmute mir-opt test 2023-04-27 00:00:00 +00:00
transmute.unreachable_ref.ConstProp.32bit.diff Use EMIT_MIR_FOR_EACH_BIT_WIDTH in transmute mir-opt test 2023-04-27 00:00:00 +00:00
transmute.unreachable_ref.ConstProp.64bit.diff Use EMIT_MIR_FOR_EACH_BIT_WIDTH in transmute mir-opt test 2023-04-27 00:00:00 +00:00
transmute.valid_char.ConstProp.32bit.diff Use EMIT_MIR_FOR_EACH_BIT_WIDTH in transmute mir-opt test 2023-04-27 00:00:00 +00:00
transmute.valid_char.ConstProp.64bit.diff Use EMIT_MIR_FOR_EACH_BIT_WIDTH in transmute mir-opt test 2023-04-27 00:00:00 +00:00
tuple_literal_propagation.main.ConstProp.diff Make ConstProp tests unit. 2023-05-02 16:46:56 +00:00
tuple_literal_propagation.rs Make ConstProp tests unit. 2023-05-02 16:46:56 +00:00
while_let_loops.change_loop_body.ConstProp.diff Make ConstProp tests unit. 2023-05-02 16:46:56 +00:00
while_let_loops.rs Make ConstProp tests unit. 2023-05-02 16:46:56 +00:00