|
1 | 1 | Base.Experimental.@compiler_options compile=min optimize=1 |
2 | 2 |
|
3 | | -using Accessors |
4 | | -using CodeTracking: CodeTracking, definition, whereis, maybe_fix_path |
5 | | -using InteractiveUtils |
6 | | -using UUIDs |
7 | | -using REPL: REPL, AbstractTerminal |
8 | | -using JuliaSyntax |
9 | | -using JuliaSyntax: SyntaxNode, AbstractSyntaxNode, children, is_leaf |
10 | | -using TypedSyntax |
11 | | -using WidthLimitedIO |
| 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 |
| 5 | + |
| 6 | +using Base: isvarargtype, unwrapva, unwrap_unionall, mapany, get_world_counter |
| 7 | +using JuliaSyntax: JuliaSyntax, children, is_leaf |
12 | 8 |
|
13 | | -using Core: MethodInstance, MethodMatch |
14 | | -using Core.IR |
15 | 9 | using .CC: AbstractInterpreter, CallMeta, ApplyCallInfo, CallInfo as CCCallInfo, ConstCallInfo, |
16 | 10 | EFFECTS_TOTAL, Effects, IncrementalCompact, InferenceParams, InferenceResult, |
17 | 11 | InferenceState, IRCode, LimitedAccuracy, MethodMatchInfo, MethodResultPure, |
18 | 12 | NativeInterpreter, NoCallInfo, OptimizationParams, OptimizationState, |
19 | | - UnionSplitApplyCallInfo, UnionSplitInfo, WorldRange, WorldView, get_inference_world, |
| 13 | + UnionSplitApplyCallInfo, UnionSplitInfo, WorldRange, WorldView, |
20 | 14 | argextype, argtypes_to_type, compileable_specialization, ignorelimited, singleton_type, |
21 | | - specialize_method, sptypes_from_meth_instance, widenconst, method_table, findsup |
22 | | -using Base: @constprop, default_tt, isvarargtype, unwrapva, unwrap_unionall, rewrap_unionall |
23 | | -const mapany = Base.mapany |
| 15 | + specialize_method, sptypes_from_meth_instance, widenconst, method_table, findsup, |
| 16 | + cached_return_type |
24 | 17 |
|
25 | 18 | const ArgTypes = Vector{Any} |
26 | 19 |
|
27 | | -using Base: get_world_counter |
28 | | - |
29 | | -get_mi(ci::CodeInstance) = CC.get_ci_mi(ci) |
30 | | -get_mi(mi::MethodInstance) = mi |
31 | | - |
32 | | -using Preferences |
33 | | -include("config.jl") |
34 | | -include("preferences.jl") |
35 | | - |
36 | | -include("interface.jl") |
37 | | -include("callsite.jl") |
38 | | -include("compiler.jl") |
39 | | -include("state.jl") |
40 | | -include("interpreter.jl") |
41 | | -include("provider.jl") |
42 | | -include("reflection.jl") |
43 | | -include("ui.jl") |
44 | | -include("codeview.jl") |
45 | | -include("bookmark.jl") |
46 | | -include("descend.jl") |
47 | | -include("ascend.jl") |
48 | | - |
49 | | -resolve_module(::AbstractProvider) = @__MODULE__ |
50 | | - |
51 | | -using .CC: cached_return_type |
52 | | - |
53 | | -cached_exception_type(code::CodeInstance) = code.exctype |
| 20 | +include("compiler/callsite.jl") |
| 21 | +include("compiler/interface.jl") |
| 22 | +include("compiler/lookup.jl") |
| 23 | +include("compiler/interpreter.jl") |
| 24 | +include("compiler/provider.jl") |
| 25 | +include("compiler/reflection.jl") |
| 26 | +include("compiler/codeview.jl") |
54 | 27 |
|
55 | 28 | get_effects(codeinst::CodeInstance) = CC.decode_effects(codeinst.ipo_purity_bits) |
56 | 29 | get_effects(codeinst::CodeInfo) = CC.decode_effects(codeinst.purity) |
|
0 commit comments