Skip to content

Commit 5b07ec1

Browse files
committed
Include specifics from Mooncake
1 parent aa86594 commit 5b07ec1

File tree

5 files changed

+1225
-17
lines changed

5 files changed

+1225
-17
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ repo = "https://github.com/TuringLang/Libtask.jl.git"
66
version = "0.8.8"
77

88
[deps]
9+
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
910
MistyClosures = "dbe65cb8-6be2-42dd-bbc5-4196aaced4f4"
10-
Mooncake = "da2b9cff-9c12-43a0-ae48-6db2b0edb7d6"
1111
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1212

1313
[compat]
1414
Aqua = "0.8.11"
15+
Graphs = "1.12.1"
1516
JuliaFormatter = "1.0.62"
1617
MistyClosures = "2.0.0"
17-
Mooncake = "0.4.99"
1818
Test = "1"
1919
julia = "1.10.8"
2020

src/Libtask.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
module Libtask
22

3-
# Need this for BBCode.
4-
using Mooncake
5-
using Mooncake: BBCode, BBlock, ID, new_inst, stmt, seed_id!, terminator
6-
using Mooncake: IDGotoIfNot, IDGotoNode, IDPhiNode, Switch
7-
using Mooncake.BasicBlockCode: collect_stmts, characterise_used_ids
8-
93
# We'll emit `MistyClosure`s rather than `OpaqueClosure`s.
104
using MistyClosures
115

126
# Import some names from the compiler.
137
const CC = Core.Compiler
8+
using Core: OpaqueClosure
149
using Core.Compiler: Argument, IRCode, ReturnNode
1510

11+
# IR-related functionality from Mooncake.
12+
include("utils.jl")
13+
include("bbcode.jl")
14+
using .BasicBlockCode
15+
1616
include("copyable_task.jl")
1717
include("test_utils.jl")
1818

0 commit comments

Comments
 (0)