@@ -800,65 +800,63 @@ fn trans_intrinsic(ccx: @crate_ctxt, decl: ValueRef, item: @ast::foreign_item,
800
800
some ( substs) , some ( item. span ) ) ;
801
801
let mut bcx = top_scope_block ( fcx, none) , lltop = bcx. llbb ;
802
802
match ccx. sess . str_of ( item. ident ) {
803
- // NB: Transitionary, de-mode-ing. Remove the first string of each
804
- // pattern when the old intrinsics are gone.
805
- ~"atomic_xchng" | ~"atomic_xchg" => {
803
+ ~"atomic_xchg" => {
806
804
let old = AtomicRMW ( bcx, Xchg ,
807
805
get_param ( decl, first_real_arg) ,
808
806
get_param ( decl, first_real_arg + 1 u) ,
809
807
SequentiallyConsistent ) ;
810
808
Store ( bcx, old, fcx. llretptr ) ;
811
809
}
812
- ~"atomic_xchng_acq" | ~" atomic_xchg_acq" => {
810
+ ~"atomic_xchg_acq" => {
813
811
let old = AtomicRMW ( bcx, Xchg ,
814
812
get_param ( decl, first_real_arg) ,
815
813
get_param ( decl, first_real_arg + 1 u) ,
816
814
Acquire ) ;
817
815
Store ( bcx, old, fcx. llretptr ) ;
818
816
}
819
- ~"atomic_xchng_rel" | ~" atomic_xchg_rel" => {
817
+ ~"atomic_xchg_rel" => {
820
818
let old = AtomicRMW ( bcx, Xchg ,
821
819
get_param ( decl, first_real_arg) ,
822
820
get_param ( decl, first_real_arg + 1 u) ,
823
821
Release ) ;
824
822
Store ( bcx, old, fcx. llretptr ) ;
825
823
}
826
- ~"atomic_add" | ~" atomic_xadd" => {
824
+ ~"atomic_xadd" => {
827
825
let old = AtomicRMW ( bcx, lib:: llvm:: Add ,
828
826
get_param ( decl, first_real_arg) ,
829
827
get_param ( decl, first_real_arg + 1 u) ,
830
828
SequentiallyConsistent ) ;
831
829
Store ( bcx, old, fcx. llretptr ) ;
832
830
}
833
- ~"atomic_add_acq" | ~" atomic_xadd_acq" => {
831
+ ~"atomic_xadd_acq" => {
834
832
let old = AtomicRMW ( bcx, lib:: llvm:: Add ,
835
833
get_param ( decl, first_real_arg) ,
836
834
get_param ( decl, first_real_arg + 1 u) ,
837
835
Acquire ) ;
838
836
Store ( bcx, old, fcx. llretptr ) ;
839
837
}
840
- ~"atomic_add_rel" | ~" atomic_xadd_rel" => {
838
+ ~"atomic_xadd_rel" => {
841
839
let old = AtomicRMW ( bcx, lib:: llvm:: Add ,
842
840
get_param ( decl, first_real_arg) ,
843
841
get_param ( decl, first_real_arg + 1 u) ,
844
842
Release ) ;
845
843
Store ( bcx, old, fcx. llretptr ) ;
846
844
}
847
- ~"atomic_sub" | ~" atomic_xsub" => {
845
+ ~"atomic_xsub" => {
848
846
let old = AtomicRMW ( bcx, lib:: llvm:: Sub ,
849
847
get_param ( decl, first_real_arg) ,
850
848
get_param ( decl, first_real_arg + 1 u) ,
851
849
SequentiallyConsistent ) ;
852
850
Store ( bcx, old, fcx. llretptr ) ;
853
851
}
854
- ~"atomic_sub_acq" | ~" atomic_xsub_acq" => {
852
+ ~"atomic_xsub_acq" => {
855
853
let old = AtomicRMW ( bcx, lib:: llvm:: Sub ,
856
854
get_param ( decl, first_real_arg) ,
857
855
get_param ( decl, first_real_arg + 1 u) ,
858
856
Acquire ) ;
859
857
Store ( bcx, old, fcx. llretptr ) ;
860
858
}
861
- ~"atomic_sub_rel" | ~" atomic_xsub_rel" => {
859
+ ~"atomic_xsub_rel" => {
862
860
let old = AtomicRMW ( bcx, lib:: llvm:: Sub ,
863
861
get_param ( decl, first_real_arg) ,
864
862
get_param ( decl, first_real_arg + 1 u) ,
0 commit comments