@@ -20,7 +20,6 @@ use rustc_data_structures::fx::{FxHashMap, FxIndexSet};
2020use rustc_data_structures:: profiling:: { get_resident_set_size, print_time_passes_entry} ;
2121use rustc_data_structures:: sync:: par_map;
2222use rustc_data_structures:: unord:: UnordMap ;
23- use rustc_hir as hir;
2423use rustc_hir:: def_id:: { DefId , LOCAL_CRATE } ;
2524use rustc_hir:: lang_items:: LangItem ;
2625use rustc_metadata:: EncodedMetadata ;
@@ -30,6 +29,7 @@ use rustc_middle::middle::debugger_visualizer::{DebuggerVisualizerFile, Debugger
3029use rustc_middle:: middle:: exported_symbols;
3130use rustc_middle:: middle:: exported_symbols:: SymbolExportKind ;
3231use rustc_middle:: middle:: lang_items;
32+ use rustc_middle:: mir:: BinOp ;
3333use rustc_middle:: mir:: mono:: { CodegenUnit , CodegenUnitNameBuilder , MonoItem } ;
3434use rustc_middle:: query:: Providers ;
3535use rustc_middle:: ty:: layout:: { HasTyCtxt , LayoutOf , TyAndLayout } ;
@@ -46,32 +46,32 @@ use std::time::{Duration, Instant};
4646
4747use itertools:: Itertools ;
4848
49- pub fn bin_op_to_icmp_predicate ( op : hir :: BinOpKind , signed : bool ) -> IntPredicate {
49+ pub fn bin_op_to_icmp_predicate ( op : BinOp , signed : bool ) -> IntPredicate {
5050 match op {
51- hir :: BinOpKind :: Eq => IntPredicate :: IntEQ ,
52- hir :: BinOpKind :: Ne => IntPredicate :: IntNE ,
53- hir :: BinOpKind :: Lt => {
51+ BinOp :: Eq => IntPredicate :: IntEQ ,
52+ BinOp :: Ne => IntPredicate :: IntNE ,
53+ BinOp :: Lt => {
5454 if signed {
5555 IntPredicate :: IntSLT
5656 } else {
5757 IntPredicate :: IntULT
5858 }
5959 }
60- hir :: BinOpKind :: Le => {
60+ BinOp :: Le => {
6161 if signed {
6262 IntPredicate :: IntSLE
6363 } else {
6464 IntPredicate :: IntULE
6565 }
6666 }
67- hir :: BinOpKind :: Gt => {
67+ BinOp :: Gt => {
6868 if signed {
6969 IntPredicate :: IntSGT
7070 } else {
7171 IntPredicate :: IntUGT
7272 }
7373 }
74- hir :: BinOpKind :: Ge => {
74+ BinOp :: Ge => {
7575 if signed {
7676 IntPredicate :: IntSGE
7777 } else {
@@ -86,14 +86,14 @@ pub fn bin_op_to_icmp_predicate(op: hir::BinOpKind, signed: bool) -> IntPredicat
8686 }
8787}
8888
89- pub fn bin_op_to_fcmp_predicate ( op : hir :: BinOpKind ) -> RealPredicate {
89+ pub fn bin_op_to_fcmp_predicate ( op : BinOp ) -> RealPredicate {
9090 match op {
91- hir :: BinOpKind :: Eq => RealPredicate :: RealOEQ ,
92- hir :: BinOpKind :: Ne => RealPredicate :: RealUNE ,
93- hir :: BinOpKind :: Lt => RealPredicate :: RealOLT ,
94- hir :: BinOpKind :: Le => RealPredicate :: RealOLE ,
95- hir :: BinOpKind :: Gt => RealPredicate :: RealOGT ,
96- hir :: BinOpKind :: Ge => RealPredicate :: RealOGE ,
91+ BinOp :: Eq => RealPredicate :: RealOEQ ,
92+ BinOp :: Ne => RealPredicate :: RealUNE ,
93+ BinOp :: Lt => RealPredicate :: RealOLT ,
94+ BinOp :: Le => RealPredicate :: RealOLE ,
95+ BinOp :: Gt => RealPredicate :: RealOGT ,
96+ BinOp :: Ge => RealPredicate :: RealOGE ,
9797 op => {
9898 bug ! (
9999 "comparison_op_to_fcmp_predicate: expected comparison operator, \
@@ -110,7 +110,7 @@ pub fn compare_simd_types<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
110110 rhs : Bx :: Value ,
111111 t : Ty < ' tcx > ,
112112 ret_ty : Bx :: Type ,
113- op : hir :: BinOpKind ,
113+ op : BinOp ,
114114) -> Bx :: Value {
115115 let signed = match t. kind ( ) {
116116 ty:: Float ( _) => {
0 commit comments