Rename simd shuffle function and adjust comment
This commit is contained in:
parent
bdda1196f2
commit
03ef614f8f
2 changed files with 7 additions and 7 deletions
|
@ -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,
|
||||
);
|
||||
|
|
|
@ -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| {
|
||||
|
|
Loading…
Add table
Reference in a new issue