@@ -663,60 +663,60 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
663
663
}
664
664
665
665
fn neg ( & mut self , a : RValue < ' gcc > ) -> RValue < ' gcc > {
666
- set_rval_location ( self , self . gcc_neg ( a) )
666
+ set_rval_location ( self , self . gcc_neg ( a) )
667
667
}
668
668
669
669
fn fneg ( & mut self , a : RValue < ' gcc > ) -> RValue < ' gcc > {
670
- set_rval_location ( self , self . cx . context . new_unary_op ( self . loc , UnaryOp :: Minus , a. get_type ( ) , a) )
670
+ set_rval_location ( self , self . cx . context . new_unary_op ( self . loc , UnaryOp :: Minus , a. get_type ( ) , a) )
671
671
}
672
672
673
673
fn not ( & mut self , a : RValue < ' gcc > ) -> RValue < ' gcc > {
674
- set_rval_location ( self , self . gcc_not ( a) )
674
+ set_rval_location ( self , self . gcc_not ( a) )
675
675
}
676
676
677
677
fn unchecked_sadd ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
678
- set_rval_location ( self , self . gcc_add ( a, b) )
678
+ set_rval_location ( self , self . gcc_add ( a, b) )
679
679
}
680
680
681
681
fn unchecked_uadd ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
682
- set_rval_location ( self , self . gcc_add ( a, b) )
682
+ set_rval_location ( self , self . gcc_add ( a, b) )
683
683
}
684
684
685
685
fn unchecked_ssub ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
686
- set_rval_location ( self , self . gcc_sub ( a, b) )
686
+ set_rval_location ( self , self . gcc_sub ( a, b) )
687
687
}
688
688
689
689
fn unchecked_usub ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
690
690
// TODO(antoyo): should generate poison value?
691
- set_rval_location ( self , self . gcc_sub ( a, b) )
691
+ set_rval_location ( self , self . gcc_sub ( a, b) )
692
692
}
693
693
694
694
fn unchecked_smul ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
695
- set_rval_location ( self , self . gcc_mul ( a, b) )
695
+ set_rval_location ( self , self . gcc_mul ( a, b) )
696
696
}
697
697
698
698
fn unchecked_umul ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
699
- set_rval_location ( self , self . gcc_mul ( a, b) )
699
+ set_rval_location ( self , self . gcc_mul ( a, b) )
700
700
}
701
701
702
702
fn fadd_fast ( & mut self , lhs : RValue < ' gcc > , rhs : RValue < ' gcc > ) -> RValue < ' gcc > {
703
703
// NOTE: it seems like we cannot enable fast-mode for a single operation in GCC.
704
- set_rval_location ( self , lhs + rhs)
704
+ set_rval_location ( self , lhs + rhs)
705
705
}
706
706
707
707
fn fsub_fast ( & mut self , lhs : RValue < ' gcc > , rhs : RValue < ' gcc > ) -> RValue < ' gcc > {
708
708
// NOTE: it seems like we cannot enable fast-mode for a single operation in GCC.
709
- set_rval_location ( self , lhs - rhs)
709
+ set_rval_location ( self , lhs - rhs)
710
710
}
711
711
712
712
fn fmul_fast ( & mut self , lhs : RValue < ' gcc > , rhs : RValue < ' gcc > ) -> RValue < ' gcc > {
713
713
// NOTE: it seems like we cannot enable fast-mode for a single operation in GCC.
714
- set_rval_location ( self , lhs * rhs)
714
+ set_rval_location ( self , lhs * rhs)
715
715
}
716
716
717
717
fn fdiv_fast ( & mut self , lhs : RValue < ' gcc > , rhs : RValue < ' gcc > ) -> RValue < ' gcc > {
718
718
// NOTE: it seems like we cannot enable fast-mode for a single operation in GCC.
719
- set_rval_location ( self , lhs / rhs)
719
+ set_rval_location ( self , lhs / rhs)
720
720
}
721
721
722
722
fn frem_fast ( & mut self , lhs : RValue < ' gcc > , rhs : RValue < ' gcc > ) -> RValue < ' gcc > {
@@ -1014,24 +1014,24 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
1014
1014
}
1015
1015
1016
1016
fn fptosi ( & mut self , value : RValue < ' gcc > , dest_ty : Type < ' gcc > ) -> RValue < ' gcc > {
1017
- set_rval_location ( self , self . gcc_float_to_int_cast ( value, dest_ty) )
1017
+ set_rval_location ( self , self . gcc_float_to_int_cast ( value, dest_ty) )
1018
1018
}
1019
1019
1020
1020
fn uitofp ( & mut self , value : RValue < ' gcc > , dest_ty : Type < ' gcc > ) -> RValue < ' gcc > {
1021
- set_rval_location ( self , self . gcc_uint_to_float_cast ( value, dest_ty) )
1021
+ set_rval_location ( self , self . gcc_uint_to_float_cast ( value, dest_ty) )
1022
1022
}
1023
1023
1024
1024
fn sitofp ( & mut self , value : RValue < ' gcc > , dest_ty : Type < ' gcc > ) -> RValue < ' gcc > {
1025
- set_rval_location ( self , self . gcc_int_to_float_cast ( value, dest_ty) )
1025
+ set_rval_location ( self , self . gcc_int_to_float_cast ( value, dest_ty) )
1026
1026
}
1027
1027
1028
1028
fn fptrunc ( & mut self , value : RValue < ' gcc > , dest_ty : Type < ' gcc > ) -> RValue < ' gcc > {
1029
1029
// TODO(antoyo): make sure it truncates.
1030
- set_rval_location ( self , self . context . new_cast ( self . loc , value, dest_ty) )
1030
+ set_rval_location ( self , self . context . new_cast ( self . loc , value, dest_ty) )
1031
1031
}
1032
1032
1033
1033
fn fpext ( & mut self , value : RValue < ' gcc > , dest_ty : Type < ' gcc > ) -> RValue < ' gcc > {
1034
- set_rval_location ( self , self . context . new_cast ( self . loc , value, dest_ty) )
1034
+ set_rval_location ( self , self . context . new_cast ( self . loc , value, dest_ty) )
1035
1035
}
1036
1036
1037
1037
fn ptrtoint ( & mut self , value : RValue < ' gcc > , dest_ty : Type < ' gcc > ) -> RValue < ' gcc > {
@@ -1059,7 +1059,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
1059
1059
( false , true ) => {
1060
1060
// NOTE: Projecting a field of a pointer type will attempt a cast from a signed char to
1061
1061
// a pointer, which is not supported by gccjit.
1062
- return self . cx . context . new_cast ( self . loc , self . inttoptr ( value, val_type. make_pointer ( ) ) , dest_ty) ;
1062
+ self . cx . context . new_cast ( self . loc , self . inttoptr ( value, val_type. make_pointer ( ) ) , dest_ty)
1063
1063
} ,
1064
1064
( false , false ) => {
1065
1065
// When they are not pointers, we want a transmute (or reinterpret_cast).
0 commit comments