Add+Use mir::BinOp::Cmp
This commit is contained in:
parent
744c664ba2
commit
3da115a93b
35 changed files with 521 additions and 119 deletions
|
@ -90,6 +90,7 @@ impl<'tcx> MirPass<'tcx> for LowerIntrinsics {
|
|||
sym::wrapping_add
|
||||
| sym::wrapping_sub
|
||||
| sym::wrapping_mul
|
||||
| sym::three_way_compare
|
||||
| sym::unchecked_add
|
||||
| sym::unchecked_sub
|
||||
| sym::unchecked_mul
|
||||
|
@ -109,6 +110,7 @@ impl<'tcx> MirPass<'tcx> for LowerIntrinsics {
|
|||
sym::wrapping_add => BinOp::Add,
|
||||
sym::wrapping_sub => BinOp::Sub,
|
||||
sym::wrapping_mul => BinOp::Mul,
|
||||
sym::three_way_compare => BinOp::Cmp,
|
||||
sym::unchecked_add => BinOp::AddUnchecked,
|
||||
sym::unchecked_sub => BinOp::SubUnchecked,
|
||||
sym::unchecked_mul => BinOp::MulUnchecked,
|
||||
|
|
|
@ -525,6 +525,7 @@ impl<'tcx> Validator<'_, 'tcx> {
|
|||
| BinOp::Lt
|
||||
| BinOp::Ge
|
||||
| BinOp::Gt
|
||||
| BinOp::Cmp
|
||||
| BinOp::Offset
|
||||
| BinOp::Add
|
||||
| BinOp::AddUnchecked
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue