Skip to content

Commit 0e00d76

Browse files
KDr2yebai
andauthored
Switch from IRTools to CodeInfo (#126)
* switch from IRTools to CodeInfo * CodeInfoTools is only compatible with Julia >= 1.6 * code refactor * code refactor * fix goto position and some other bugs * optimize args_initializer * minor update * Update Project.toml * fix goto and static_parameter * revise code, mostly renaming variables * %new at the right hand of :(=) * separate the if-else-branch hell * code refactor * only dispatch Expr on Val(it.head) * code revise according to review comments * don't dispatch on Val * return instruction from its builder * put boxes into builder * code refactor * remove tape field from Instruction Co-authored-by: Hong Ge <[email protected]>
1 parent a95702e commit 0e00d76

File tree

4 files changed

+193
-177
lines changed

4 files changed

+193
-177
lines changed

.github/workflows/Testing.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
version:
14-
- '1.3'
15-
- '1.4'
14+
- '1.7'
1615
- '1'
1716
- 'nightly'
1817
os:

Project.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,18 @@ desc = "Tape based task copying in Turing"
55
repo = "https://github.com/TuringLang/Libtask.jl.git"
66
version = "0.7.0"
77

8-
98
[deps]
10-
IRTools = "7869d1d1-7146-5819-86e3-90919afe41df"
9+
CodeInfoTools = "bc773b8a-8374-437a-b9f2-0e9785855863"
1110
LRUCache = "8ac3fa9e-de4c-5943-b1dc-09c6b5f20637"
1211
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1312
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
1413
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1514

1615
[compat]
17-
julia = "1.3"
18-
MacroTools = "0.5"
19-
IRTools = "0.4"
16+
CodeInfoTools = "0.3.4"
2017
LRUCache = "1.3"
18+
MacroTools = "0.5"
19+
julia = "1.7"
2120

2221
[extras]
2322
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"

src/Libtask.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Libtask
22

3-
using IRTools
3+
using CodeInfoTools
44
using MacroTools
55

66
using LRUCache

0 commit comments

Comments
 (0)