@@ -288,13 +288,13 @@ fn local_place<'tcx>(
288
288
fx. local_map [ & local]
289
289
}
290
290
291
- pub fn codegen_fn_prelude ( fx : & mut FunctionCx < ' _ , ' _ , impl Backend > , start_ebb : Ebb ) {
291
+ pub fn codegen_fn_prelude ( fx : & mut FunctionCx < ' _ , ' _ , impl Backend > , start_block : Block ) {
292
292
let ssa_analyzed = crate :: analyze:: analyze ( fx) ;
293
293
294
294
#[ cfg( debug_assertions) ]
295
295
self :: comments:: add_args_header_comment ( fx) ;
296
296
297
- self :: returning:: codegen_return_param ( fx, & ssa_analyzed, start_ebb ) ;
297
+ self :: returning:: codegen_return_param ( fx, & ssa_analyzed, start_block ) ;
298
298
299
299
// None means pass_mode == NoPass
300
300
enum ArgKind < ' tcx > {
@@ -322,13 +322,13 @@ pub fn codegen_fn_prelude(fx: &mut FunctionCx<'_, '_, impl Backend>, start_ebb:
322
322
323
323
let mut params = Vec :: new ( ) ;
324
324
for ( i, arg_ty) in tupled_arg_tys. types ( ) . enumerate ( ) {
325
- let param = cvalue_for_param ( fx, start_ebb , Some ( local) , Some ( i) , arg_ty) ;
325
+ let param = cvalue_for_param ( fx, start_block , Some ( local) , Some ( i) , arg_ty) ;
326
326
params. push ( param) ;
327
327
}
328
328
329
329
( local, ArgKind :: Spread ( params) , arg_ty)
330
330
} else {
331
- let param = cvalue_for_param ( fx, start_ebb , Some ( local) , None , arg_ty) ;
331
+ let param = cvalue_for_param ( fx, start_block , Some ( local) , None , arg_ty) ;
332
332
( local, ArgKind :: Normal ( param) , arg_ty)
333
333
}
334
334
} )
@@ -337,10 +337,10 @@ pub fn codegen_fn_prelude(fx: &mut FunctionCx<'_, '_, impl Backend>, start_ebb:
337
337
assert ! ( fx. caller_location. is_none( ) ) ;
338
338
if fx. instance . def . requires_caller_location ( fx. tcx ) {
339
339
// Store caller location for `#[track_caller]`.
340
- fx. caller_location = Some ( cvalue_for_param ( fx, start_ebb , None , None , fx. tcx . caller_location_ty ( ) ) . unwrap ( ) ) ;
340
+ fx. caller_location = Some ( cvalue_for_param ( fx, start_block , None , None , fx. tcx . caller_location_ty ( ) ) . unwrap ( ) ) ;
341
341
}
342
342
343
- fx. bcx . switch_to_block ( start_ebb ) ;
343
+ fx. bcx . switch_to_block ( start_block ) ;
344
344
fx. bcx . ins ( ) . nop ( ) ;
345
345
346
346
#[ cfg( debug_assertions) ]
@@ -416,7 +416,7 @@ pub fn codegen_fn_prelude(fx: &mut FunctionCx<'_, '_, impl Backend>, start_ebb:
416
416
417
417
fx. bcx
418
418
. ins ( )
419
- . jump ( * fx. ebb_map . get ( START_BLOCK ) . unwrap ( ) , & [ ] ) ;
419
+ . jump ( * fx. block_map . get ( START_BLOCK ) . unwrap ( ) , & [ ] ) ;
420
420
}
421
421
422
422
pub fn codegen_terminator_call < ' tcx > (
@@ -458,8 +458,8 @@ pub fn codegen_terminator_call<'tcx>(
458
458
InstanceDef :: DropGlue ( _, None ) => {
459
459
// empty drop glue - a nop.
460
460
let ( _, dest) = destination. expect ( "Non terminating drop_in_place_real???" ) ;
461
- let ret_ebb = fx. get_ebb ( dest) ;
462
- fx. bcx . ins ( ) . jump ( ret_ebb , & [ ] ) ;
461
+ let ret_block = fx. get_block ( dest) ;
462
+ fx. bcx . ins ( ) . jump ( ret_block , & [ ] ) ;
463
463
return ;
464
464
}
465
465
_ => { }
@@ -498,8 +498,8 @@ pub fn codegen_terminator_call<'tcx>(
498
498
) ;
499
499
500
500
if let Some ( ( _, dest) ) = destination {
501
- let ret_ebb = fx. get_ebb ( dest) ;
502
- fx. bcx . ins ( ) . jump ( ret_ebb , & [ ] ) ;
501
+ let ret_block = fx. get_block ( dest) ;
502
+ fx. bcx . ins ( ) . jump ( ret_block , & [ ] ) ;
503
503
} else {
504
504
trap_unreachable ( fx, "[corruption] Diverging function returned" ) ;
505
505
}
@@ -513,7 +513,7 @@ fn codegen_call_inner<'tcx>(
513
513
args : Vec < CValue < ' tcx > > ,
514
514
ret_place : Option < CPlace < ' tcx > > ,
515
515
) {
516
- // FIXME mark the current ebb as cold when calling a `#[cold]` function.
516
+ // FIXME mark the current block as cold when calling a `#[cold]` function.
517
517
let fn_sig = fx
518
518
. tcx
519
519
. normalize_erasing_late_bound_regions ( ParamEnv :: reveal_all ( ) , & fn_ty. fn_sig ( fx. tcx ) ) ;
0 commit comments