Skip to content

Commit

Permalink
Rebase cleanup: is_simd lost its parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
huonw committed Aug 17, 2015
1 parent 4b24249 commit 62ba85b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions src/librustc_trans/trans/intrinsic.rs
Expand Up @@ -1358,10 +1358,10 @@ fn generic_simd_intrinsic<'blk, 'tcx, 'a>

if let Some(cmp_op) = comparison {
assert_eq!(arg_tys.len(), 2);
require!(arg_tys[0].is_simd(tcx),
require!(arg_tys[0].is_simd(),
"SIMD comparison intrinsic monomorphized for non-SIMD argument type `{}`",
arg_tys[0]);
require!(ret_ty.is_simd(tcx),
require!(ret_ty.is_simd(),
"SIMD comparison intrinsic monomorphized for non-SIMD return type `{}`",
ret_ty);

Expand Down Expand Up @@ -1393,10 +1393,10 @@ fn generic_simd_intrinsic<'blk, 'tcx, 'a>
"bad `simd_shuffle` instruction only caught in trans?")
};

require!(arg_tys[0].is_simd(tcx),
require!(arg_tys[0].is_simd(),
"SIMD shuffle intrinsic monomorphized with non-SIMD input type `{}`",
arg_tys[0]);
require!(ret_ty.is_simd(tcx),
require!(ret_ty.is_simd(),
"SIMD shuffle intrinsic monomorphized for non-SIMD return type `{}`",
ret_ty);

Expand Down Expand Up @@ -1451,7 +1451,7 @@ fn generic_simd_intrinsic<'blk, 'tcx, 'a>
}

if name == "simd_insert" {
require!(arg_tys[0].is_simd(tcx),
require!(arg_tys[0].is_simd(),
"SIMD insert intrinsic monomorphized for non-SIMD input type");

let elem_ty = arg_tys[0].simd_type(tcx);
Expand All @@ -1460,7 +1460,7 @@ fn generic_simd_intrinsic<'blk, 'tcx, 'a>
return InsertElement(bcx, llargs[0], llargs[2], llargs[1])
}
if name == "simd_extract" {
require!(arg_tys[0].is_simd(tcx),
require!(arg_tys[0].is_simd(),
"SIMD insert intrinsic monomorphized for non-SIMD input type");

let elem_ty = arg_tys[0].simd_type(tcx);
Expand All @@ -1470,10 +1470,10 @@ fn generic_simd_intrinsic<'blk, 'tcx, 'a>
}

if name == "simd_cast" {
require!(arg_tys[0].is_simd(tcx),
require!(arg_tys[0].is_simd(),
"SIMD cast intrinsic monomorphized with non-SIMD input type `{}`",
arg_tys[0]);
require!(ret_ty.is_simd(tcx),
require!(ret_ty.is_simd(),
"SIMD cast intrinsic monomorphized with non-SIMD return type `{}`",
ret_ty);
require!(arg_tys[0].simd_size(tcx) == ret_ty.simd_size(tcx),
Expand Down Expand Up @@ -1614,7 +1614,7 @@ fn generic_simd_intrinsic<'blk, 'tcx, 'a>
($($name: ident: $($($p: ident),* => $call: expr),*;)*) => {
$(
if name == stringify!($name) {
require!(arg_tys[0].is_simd(tcx),
require!(arg_tys[0].is_simd(),
"`{}` intrinsic monomorphized with non-SIMD type `{}`",
name, arg_tys[0]);
let in_ = arg_tys[0].simd_type(tcx);
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_typeck/check/intrinsic.rs
Expand Up @@ -481,7 +481,7 @@ fn match_intrinsic_type_to_type<'tcx, 'a>(
},
Pointer(_) => unimplemented!(),
Vector(ref inner_expected, len) => {
if !t.is_simd(tcx) {
if !t.is_simd() {
simple_error(&format!("non-simd type `{}`", t),
"simd type");
return;
Expand Down

0 comments on commit 62ba85b

Please sign in to comment.