@@ -357,11 +357,16 @@ impl WriteBackendMethods for GccCodegenBackend {
357
357
type ThinData = ThinData ;
358
358
type ThinBuffer = ThinBuffer ;
359
359
360
- fn run_fat_lto (
360
+ fn run_and_optimize_fat_lto (
361
361
cgcx : & CodegenContext < Self > ,
362
362
modules : Vec < FatLtoInput < Self > > ,
363
363
cached_modules : Vec < ( SerializedModule < Self :: ModuleBuffer > , WorkProduct ) > ,
364
+ diff_fncs : Vec < AutoDiffItem > ,
364
365
) -> Result < ModuleCodegen < Self :: Module > , FatalError > {
366
+ if !diff_fncs. is_empty ( ) {
367
+ unimplemented ! ( ) ;
368
+ }
369
+
365
370
back:: lto:: run_fat ( cgcx, modules, cached_modules)
366
371
}
367
372
@@ -391,14 +396,6 @@ impl WriteBackendMethods for GccCodegenBackend {
391
396
Ok ( ( ) )
392
397
}
393
398
394
- fn optimize_fat (
395
- _cgcx : & CodegenContext < Self > ,
396
- _module : & mut ModuleCodegen < Self :: Module > ,
397
- ) -> Result < ( ) , FatalError > {
398
- // TODO(antoyo)
399
- Ok ( ( ) )
400
- }
401
-
402
399
fn optimize_thin (
403
400
cgcx : & CodegenContext < Self > ,
404
401
thin : ThinModule < Self > ,
@@ -432,14 +429,6 @@ impl WriteBackendMethods for GccCodegenBackend {
432
429
) -> Result < ModuleCodegen < Self :: Module > , FatalError > {
433
430
back:: write:: link ( cgcx, dcx, modules)
434
431
}
435
-
436
- fn autodiff (
437
- _cgcx : & CodegenContext < Self > ,
438
- _module : & ModuleCodegen < Self :: Module > ,
439
- _diff_functions : Vec < AutoDiffItem > ,
440
- ) -> Result < ( ) , FatalError > {
441
- unimplemented ! ( )
442
- }
443
432
}
444
433
445
434
/// This is the entrypoint for a hot plugged rustc_codegen_gccjit
0 commit comments