pub fn compute_layout_and_offsets<Bx: BuilderMethods<'a, 'tcx>>(&mut self, bx: &Bx) {
        let mut layout = Layout::from_size_align(0, 1).unwrap();
        for ld in &self.sir_builder.func.local_decls {
            let (size, align) = bx.cx().get_size_align(ld.ty);
            let l = Layout::from_size_align(size, align).unwrap();
            let (nl, off) = layout.extend(l).unwrap();
            self.sir_builder.func.offsets.push(off);
            layout = nl;
        }
        layout = layout.pad_to_align();
        self.sir_builder.func.layout = (layout.size(), layout.align());
    }
/// Compute layout and offsets required for blackholing.
Compute layout and offsets required for blackholing.
Compute layout and offsets required for blackholing .
pub fn compute_layout_and_offsets<Bx: BuilderMethods<'a, 'tcx>>(&mut self, bx: &Bx) {
        let mut layout = Layout::from_size_align(0, 1).unwrap();
        for ld in &self.sir_builder.func.local_decls {
            let (size, align) = bx.cx().get_size_align(ld.ty);
            let l = Layout::from_size_align(size, align).unwrap();
            let (nl, off) = layout.extend(l).unwrap();
            self.sir_builder.func.offsets.push(off);
            layout = nl;
        }
        layout = layout.pad_to_align();
        self.sir_builder.func.layout = (layout.size(), layout.align());
    }
pub fn compute_layout_and_offsets < Bx : BuilderMethods < ' a , ' tcx > > ( & mut self , bx : & Bx ) { let mut layout = Layout :: from_size_align ( 0 , 1 ) . unwrap ( ) ; for ld in & self . sir_builder . func . local_decls { let ( size , align ) = bx . cx ( ) . get_size_align ( ld . ty ) ; let l = Layout :: from_size_align ( size , align ) . unwrap ( ) ; let ( nl , off ) = layout . extend ( l ) . unwrap ( ) ; self . sir_builder . func . offsets . push ( off ) ; layout = nl ; } layout = layout . pad_to_align ( ) ; self . sir_builder . func . layout = ( layout . size ( ) , layout . align ( ) ) ; }
Compute layout and offsets required for blackholing.
Compute layout and offsets required for blackholing .
&mut self
bx
&Bx
&mut self
bx
&Bx