@@ -357,11 +357,16 @@ impl WriteBackendMethods for GccCodegenBackend {
357357 type ThinData = ThinData ;
358358 type ThinBuffer = ThinBuffer ;
359359
360- fn run_fat_lto (
360+ fn run_and_optimize_fat_lto (
361361 cgcx : & CodegenContext < Self > ,
362362 modules : Vec < FatLtoInput < Self > > ,
363363 cached_modules : Vec < ( SerializedModule < Self :: ModuleBuffer > , WorkProduct ) > ,
364+ diff_fncs : Vec < AutoDiffItem > ,
364365 ) -> Result < ModuleCodegen < Self :: Module > , FatalError > {
366+ if !diff_fncs. is_empty ( ) {
367+ unimplemented ! ( ) ;
368+ }
369+
365370 back:: lto:: run_fat ( cgcx, modules, cached_modules)
366371 }
367372
@@ -391,14 +396,6 @@ impl WriteBackendMethods for GccCodegenBackend {
391396 Ok ( ( ) )
392397 }
393398
394- fn optimize_fat (
395- _cgcx : & CodegenContext < Self > ,
396- _module : & mut ModuleCodegen < Self :: Module > ,
397- ) -> Result < ( ) , FatalError > {
398- // TODO(antoyo)
399- Ok ( ( ) )
400- }
401-
402399 fn optimize_thin (
403400 cgcx : & CodegenContext < Self > ,
404401 thin : ThinModule < Self > ,
@@ -432,14 +429,6 @@ impl WriteBackendMethods for GccCodegenBackend {
432429 ) -> Result < ModuleCodegen < Self :: Module > , FatalError > {
433430 back:: write:: link ( cgcx, dcx, modules)
434431 }
435-
436- fn autodiff (
437- _cgcx : & CodegenContext < Self > ,
438- _module : & ModuleCodegen < Self :: Module > ,
439- _diff_functions : Vec < AutoDiffItem > ,
440- ) -> Result < ( ) , FatalError > {
441- unimplemented ! ( )
442- }
443432}
444433
445434/// This is the entrypoint for a hot plugged rustc_codegen_gccjit
0 commit comments