From b37223ef392186b0b862ba0709f68fcdc849bdd0 Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Thu, 26 Sep 2024 09:18:55 +0200 Subject: [PATCH] drop AbstractGPUInterpreter --- src/jlgen.jl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/jlgen.jl b/src/jlgen.jl index cc6d5b3f..7de6c3c3 100644 --- a/src/jlgen.jl +++ b/src/jlgen.jl @@ -319,8 +319,7 @@ else get_method_table_view(world::UInt, mt::MTType) = OverlayMethodTable(world, mt) end -abstract type AbstractGPUInterpreter <: CC.AbstractInterpreter end -struct GPUInterpreter <: AbstractGPUInterpreter +struct GPUInterpreter <: CC.AbstractInterpreter world::UInt method_table::GPUMethodTableView @@ -446,7 +445,7 @@ struct DeferredCallInfo <: CC.CallInfo end # recognize calls to gpuc.deferred and save DeferredCallInfo metadata -function CC.abstract_call_known(interp::AbstractGPUInterpreter, @nospecialize(f), +function CC.abstract_call_known(interp::GPUInterppreter, @nospecialize(f), arginfo::CC.ArgInfo, si::CC.StmtInfo, sv::CC.AbsIntState, max_methods::Int = CC.get_max_methods(interp, f, sv)) (; fargs, argtypes) = arginfo @@ -519,7 +518,7 @@ function find_deferred_edges(ir::CC.IRCode) end if VERSION >= v"1.11.0-" -function CC.ipo_dataflow_analysis!(interp::AbstractGPUInterpreter, ir::CC.IRCode, +function CC.ipo_dataflow_analysis!(interp::GPUInterppreter, ir::CC.IRCode, caller::CC.InferenceResult) edges = find_deferred_edges(ir) if !isempty(edges) @@ -530,7 +529,7 @@ function CC.ipo_dataflow_analysis!(interp::AbstractGPUInterpreter, ir::CC.IRCode end else # v1.10 # 1.10 doesn't have stack_analysis_result or ipo_dataflow_analysis -function CC.finish(interp::AbstractGPUInterpreter, opt::CC.OptimizationState, ir::CC.IRCode, +function CC.finish(interp::GPUInterppreter, opt::CC.OptimizationState, ir::CC.IRCode, caller::CC.InferenceResult) edges = find_deferred_edges(ir) if !isempty(edges)