From 5281e86c0cc7d6b44fa2321aedb1fb059fb79b59 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..c6be8c94 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::GPUInterpreter, @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::GPUInterpreter, 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::GPUInterpreter, opt::CC.OptimizationState, ir::CC.IRCode, caller::CC.InferenceResult) edges = find_deferred_edges(ir) if !isempty(edges)