11Base. Experimental. @compiler_options compile= min optimize= 1
22
3- import . Cthulhu: AbstractProvider, get_abstract_interpreter, get_inference_world, find_method_instance, generate_code_instance, get_override, lookup, find_caller_of, get_inlining_costs, show_parameters, get_ci, get_rt, get_pc_remarks, get_pc_effects, get_pc_excts, show_callsite, show_callinfo, print_callsite_info, cthulhu_source, cthulhu_typed, cthulhu_ast, cthulhu_llvm, cthulhu_native, find_callsites, ir_to_src
4- using . Cthulhu: CthulhuState, CthulhuConfig, CallInfo, Callsite, cached_exception_type, get_mi
3+ import . Cthulhu:
4+ AbstractProvider, cthulhu_ast, cthulhu_llvm, cthulhu_native, cthulhu_source,
5+ cthulhu_typed, find_caller_of, find_callsites, find_method_instance,
6+ generate_code_instance, get_abstract_interpreter, get_ci, get_inference_world,
7+ get_inlining_costs, get_override, get_pc_effects, get_pc_excts, get_pc_remarks, get_rt,
8+ ir_to_src, lookup, print_callsite_info, show_callinfo, show_callsite, show_parameters
9+ using . Cthulhu:
10+ CthulhuState, CthulhuConfig, CallInfo, Callsite,
11+ cached_exception_type, get_mi
512
6- using Base: isvarargtype, unwrapva , unwrap_unionall, mapany, get_world_counter
13+ using Base: get_world_counter, isvarargtype, mapany , unwrap_unionall, unwrapva
714using JuliaSyntax: JuliaSyntax, children, is_leaf
815
9- using . CC: AbstractInterpreter, CallMeta, ApplyCallInfo, CallInfo as CCCallInfo, ConstCallInfo ,
10- EFFECTS_TOTAL, Effects, IncrementalCompact, InferenceParams, InferenceResult,
11- InferenceState, IRCode, LimitedAccuracy, MethodMatchInfo, MethodResultPure ,
12- NativeInterpreter, NoCallInfo, OptimizationParams, OptimizationState,
13- UnionSplitApplyCallInfo, UnionSplitInfo, WorldRange, WorldView,
14- argextype, argtypes_to_type, compileable_specialization, ignorelimited, singleton_type ,
15- specialize_method, sptypes_from_meth_instance, widenconst, method_table, findsup ,
16- cached_return_type
16+ using . CC: AbstractInterpreter, ApplyCallInfo, CallInfo as CCCallInfo, CallMeta ,
17+ EFFECTS_TOTAL, Effects, IncrementalCompact, InferenceParams,
18+ InferenceResult, InferenceState, IRCode, LimitedAccuracy, MethodMatchInfo,
19+ MethodResultPure, NativeInterpreter, NoCallInfo, OptimizationParams, OptimizationState,
20+ UnionSplitApplyCallInfo, UnionSplitInfo,
21+ argextype, argtypes_to_type, cached_return_type, compileable_specialization, findsup ,
22+ ignorelimited, method_table, singleton_type, specialize_method, sptypes_from_meth_instance ,
23+ widenconst
1724
1825const ArgTypes = Vector{Any}
1926
@@ -29,6 +36,8 @@ get_effects(codeinst::CodeInstance) = CC.decode_effects(codeinst.ipo_purity_bits
2936get_effects (codeinst:: CodeInfo ) = CC. decode_effects (codeinst. purity)
3037get_effects (result:: InferenceResult ) = result. ipo_effects
3138get_effects (source:: InferredSource ) = source. effects
39+ @static if VERSION < v " 1.14.0-DEV.60"
3240get_effects (result:: CC.ConstPropResult ) = get_effects (result. result)
41+ end
3342get_effects (result:: CC.ConcreteResult ) = result. effects
3443get_effects (result:: CC.SemiConcreteResult ) = result. effects
0 commit comments