Stop using to_hir_binop
in codegen
This commit is contained in:
parent
b54dd08a84
commit
8ee3d29cd9
5 changed files with 37 additions and 36 deletions
|
@ -14,6 +14,7 @@ use rustc_codegen_ssa::mir::operand::{OperandRef, OperandValue};
|
|||
use rustc_codegen_ssa::mir::place::PlaceRef;
|
||||
use rustc_codegen_ssa::traits::*;
|
||||
use rustc_hir as hir;
|
||||
use rustc_middle::mir::BinOp;
|
||||
use rustc_middle::ty::layout::{FnAbiOf, HasTyCtxt, LayoutOf};
|
||||
use rustc_middle::ty::{self, GenericArgsRef, Ty};
|
||||
use rustc_middle::{bug, span_bug};
|
||||
|
@ -1104,12 +1105,12 @@ fn generic_simd_intrinsic<'ll, 'tcx>(
|
|||
let in_ty = arg_tys[0];
|
||||
|
||||
let comparison = match name {
|
||||
sym::simd_eq => Some(hir::BinOpKind::Eq),
|
||||
sym::simd_ne => Some(hir::BinOpKind::Ne),
|
||||
sym::simd_lt => Some(hir::BinOpKind::Lt),
|
||||
sym::simd_le => Some(hir::BinOpKind::Le),
|
||||
sym::simd_gt => Some(hir::BinOpKind::Gt),
|
||||
sym::simd_ge => Some(hir::BinOpKind::Ge),
|
||||
sym::simd_eq => Some(BinOp::Eq),
|
||||
sym::simd_ne => Some(BinOp::Ne),
|
||||
sym::simd_lt => Some(BinOp::Lt),
|
||||
sym::simd_le => Some(BinOp::Le),
|
||||
sym::simd_gt => Some(BinOp::Gt),
|
||||
sym::simd_ge => Some(BinOp::Ge),
|
||||
_ => None,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue