319
319
get_method_table_view (world:: UInt , mt:: MTType ) = OverlayMethodTable (world, mt)
320
320
end
321
321
322
- abstract type AbstractGPUInterpreter <: CC.AbstractInterpreter end
323
- struct GPUInterpreter <: AbstractGPUInterpreter
322
+ struct GPUInterpreter <: CC.AbstractInterpreter
324
323
world:: UInt
325
324
method_table:: GPUMethodTableView
326
325
@@ -446,7 +445,7 @@ struct DeferredCallInfo <: CC.CallInfo
446
445
end
447
446
448
447
# recognize calls to gpuc.deferred and save DeferredCallInfo metadata
449
- function CC. abstract_call_known (interp:: AbstractGPUInterpreter , @nospecialize (f),
448
+ function CC. abstract_call_known (interp:: GPUInterpreter , @nospecialize (f),
450
449
arginfo:: CC.ArgInfo , si:: CC.StmtInfo , sv:: CC.AbsIntState ,
451
450
max_methods:: Int = CC. get_max_methods (interp, f, sv))
452
451
(; fargs, argtypes) = arginfo
@@ -519,7 +518,7 @@ function find_deferred_edges(ir::CC.IRCode)
519
518
end
520
519
521
520
if VERSION >= v " 1.11.0-"
522
- function CC. ipo_dataflow_analysis! (interp:: AbstractGPUInterpreter , ir:: CC.IRCode ,
521
+ function CC. ipo_dataflow_analysis! (interp:: GPUInterpreter , ir:: CC.IRCode ,
523
522
caller:: CC.InferenceResult )
524
523
edges = find_deferred_edges (ir)
525
524
if ! isempty (edges)
@@ -530,7 +529,7 @@ function CC.ipo_dataflow_analysis!(interp::AbstractGPUInterpreter, ir::CC.IRCode
530
529
end
531
530
else # v1.10
532
531
# 1.10 doesn't have stack_analysis_result or ipo_dataflow_analysis
533
- function CC. finish (interp:: AbstractGPUInterpreter , opt:: CC.OptimizationState , ir:: CC.IRCode ,
532
+ function CC. finish (interp:: GPUInterpreter , opt:: CC.OptimizationState , ir:: CC.IRCode ,
534
533
caller:: CC.InferenceResult )
535
534
edges = find_deferred_edges (ir)
536
535
if ! isempty (edges)
0 commit comments