-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split SnoopCompile into subpackages (#98)
Fixes #95
- Loading branch information
Showing
60 changed files
with
330 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Documenter | ||
on: | ||
push: | ||
branches: [master] | ||
tags: [v*] | ||
pull_request: | ||
|
||
jobs: | ||
Documenter: | ||
name: Documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/julia-buildpkg@latest | ||
- uses: julia-actions/julia-docdeploy@releases/v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name = "SnoopCompileAnalysis" | ||
uuid = "9ea4277c-da97-4c3a-afb0-537c066769de" | ||
author = ["Tim Holy <tim.holy@gmail.com>"] | ||
version = "1.6.0" | ||
|
||
[deps] | ||
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d" | ||
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b" | ||
|
||
[compat] | ||
OrderedCollections = "1" | ||
julia = "1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
module SnoopCompileAnalysis | ||
|
||
using Core: MethodInstance, CodeInfo | ||
using Serialization, OrderedCollections | ||
|
||
# Parcel Regex | ||
const anonrex = r"#{1,2}\d+#{1,2}\d+" # detect anonymous functions | ||
const kwrex = r"^#kw##(.*)$|^#([^#]*)##kw$" # detect keyword-supplying functions | ||
const kwbodyrex = r"^##(\w[^#]*)#\d+" # detect keyword body methods | ||
const genrex = r"^##s\d+#\d+$" # detect generators for @generated functions | ||
const innerrex = r"^#[^#]+#\d+" # detect inner functions | ||
|
||
# Parcel | ||
include("parcel_snoopc.jl") | ||
|
||
if VERSION >= v"1.2.0-DEV.573" | ||
include("parcel_snoopi.jl") | ||
end | ||
|
||
if VERSION >= v"1.6.0-DEV.154" | ||
include("invalidations.jl") | ||
end | ||
|
||
# Write | ||
include("write.jl") | ||
|
||
|
||
end # module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name = "SnoopCompileBot" | ||
uuid = "1d5e0e55-7d74-4714-b8d8-efa80e938cf7" | ||
author = ["Amin Yahyaabadi <aminyahyaabadi74@gmail.com>"] | ||
version = "1.6.0" | ||
|
||
[deps] | ||
FilePathsBase = "48062228-2e41-5def-b9a4-89aafe57970f" | ||
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
YAML = "ddb6d928-2868-570f-bddf-ab3f9cf99eb6" | ||
SnoopCompileAnalysis = "9ea4277c-da97-4c3a-afb0-537c066769de" | ||
SnoopCompileCore = "e2b509da-e806-4183-be48-004708413034" | ||
|
||
[compat] | ||
FilePathsBase = "0.9" | ||
SnoopCompileAnalysis = "1" | ||
SnoopCompileCore = "1" | ||
YAML = "0.4" | ||
julia = "1" | ||
|
||
[extras] | ||
MatLang = "05b439c0-bb3c-11e9-1d8d-1f0a9ebca87a" # only for pathof_noload | ||
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[targets] | ||
test = ["Pkg", "Test", "MatLang"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
f9ea9ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register subdir=SnoopCompileCore subdir=SnoopCompileAnalysis subdir=SnoopCompileBot
f9ea9ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An unexpected error occured during registration.
f9ea9ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register subdir=SnoopCompileCore
f9ea9ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/16649
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
Also, note the warning: This looks like a new registration that registers version 1.6.0.
Ideally, you should register an initial release with 0.0.1, 0.1.0 or 1.0.0 version numbers
This can be safely ignored. However, if you want to fix this you can do so. Call register() again after making the fix. This will update the Pull request.
f9ea9ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register subdir=SnoopCompileAnalysis
f9ea9ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/16650
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
Also, note the warning: This looks like a new registration that registers version 1.6.0.
Ideally, you should register an initial release with 0.0.1, 0.1.0 or 1.0.0 version numbers
This can be safely ignored. However, if you want to fix this you can do so. Call register() again after making the fix. This will update the Pull request.
f9ea9ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register subdir=SnoopCompileBot
f9ea9ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error while trying to register: Error in (Julia)Project.toml: Package 'SnoopCompileCore' with UUID: e2b509da-e806-4183-be48-004708413034 not found in registry or stdlib