Rename simd shuffle function and adjust comment

This commit is contained in:
Oliver Schneider 2018-01-26 13:45:41 +01:00 committed by Oliver Schneider
parent bdda1196f2
commit 03ef614f8f
No known key found for this signature in database
GPG key ID: A69F8D225B3AD7D9
2 changed files with 7 additions and 7 deletions

View file

@ -530,7 +530,7 @@ impl<'a, 'tcx> FunctionCx<'a, 'tcx> {
span_bug!(span, "shuffle indices must be constant");
}
mir::Operand::Constant(ref constant) => {
let (llval, ty) = self.remove_me_shuffle_indices(
let (llval, ty) = self.simd_shuffle_indices(
&bx,
constant,
);

View file

@ -184,12 +184,12 @@ impl<'a, 'tcx> FunctionCx<'a, 'tcx> {
}.and_then(|c| self.const_to_miri_value(bx, c))
}
// Old version of trans_constant now used just for SIMD shuffle
pub fn remove_me_shuffle_indices(&mut self,
bx: &Builder<'a, 'tcx>,
constant: &mir::Constant<'tcx>)
-> (ValueRef, Ty<'tcx>)
{
/// process constant containing SIMD shuffle indices
pub fn simd_shuffle_indices(
&mut self,
bx: &Builder<'a, 'tcx>,
constant: &mir::Constant<'tcx>,
) -> (ValueRef, Ty<'tcx>) {
let layout = bx.cx.layout_of(constant.ty);
self.mir_constant_to_miri_value(bx, constant)
.and_then(|c| {