diff options
| author | Oliver Schneider <git-no-reply-9879165716479413131@oli-obk.de> | 2018-01-26 13:45:41 +0100 |
|---|---|---|
| committer | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2018-03-08 08:34:10 +0100 |
| commit | 03ef614f8f9026d15d64249e576e4ea06c12f686 (patch) | |
| tree | b69c6033e51a505d1d4162036315946f28f90ae3 /src | |
| parent | bdda1196f2ee661657f3a215307e9ed7f0df13f6 (diff) | |
| download | rust-03ef614f8f9026d15d64249e576e4ea06c12f686.tar.gz rust-03ef614f8f9026d15d64249e576e4ea06c12f686.zip | |
Rename simd shuffle function and adjust comment
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_trans/mir/block.rs | 2 | ||||
| -rw-r--r-- | src/librustc_trans/mir/constant.rs | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/librustc_trans/mir/block.rs b/src/librustc_trans/mir/block.rs index cc344fdf063..9d70f8669b2 100644 --- a/src/librustc_trans/mir/block.rs +++ b/src/librustc_trans/mir/block.rs @@ -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, ); diff --git a/src/librustc_trans/mir/constant.rs b/src/librustc_trans/mir/constant.rs index 954abf4c5d7..1b470665cd9 100644 --- a/src/librustc_trans/mir/constant.rs +++ b/src/librustc_trans/mir/constant.rs @@ -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| { |
