Skip to content

Commit

Permalink
Merge pull request #749 from candy-lang/execution-target
Browse files Browse the repository at this point in the history
Enable compiling directly to main function
  • Loading branch information
jwbot authored Oct 26, 2023
2 parents be5b86b + 82ea356 commit d6a655d
Show file tree
Hide file tree
Showing 26 changed files with 616 additions and 467 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/compiler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
if: github.event_name == 'pull_request'
continue-on-error: true
working-directory: golden-irs/
run: git diff --exit-code ${{ github.event.pull_request.base.sha }}_ ${{ github.sha }}_
run: git diff --quiet ${{ github.event.pull_request.base.sha }}_ ${{ github.sha }}_
- name: Shorten commit SHAs
id: short-shas
if: steps.diff.outcome == 'failure'
Expand Down
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions compiler/backend_inkwell/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ candy_frontend = { version = "0.1.0", path = "../frontend" }
inkwell = { version = "0.2.0", features = ["llvm15-0"] }
itertools = "0.11.0"
llvm-sys = { version = "150", features = ["prefer-dynamic"] }
rustc-hash = "1.1.0"
salsa = "0.16.1"
Loading

1 comment on commit d6a655d

@jwbot
Copy link
Collaborator Author

@jwbot jwbot commented on d6a655d Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compiler

Benchmark suite Current: d6a655d Previous: be5b86b Ratio
Time: Compiler/hello_world 25224884 ns/iter (± 1854066) 24560817 ns/iter (± 2309549) 1.03
Time: Compiler/fibonacci 211108741 ns/iter (± 6034413) 206946650 ns/iter (± 9513272) 1.02
Time: VM Runtime/hello_world 45450 ns/iter (± 15258) 45201 ns/iter (± 15306) 1.01
Time: VM Runtime/fibonacci/15 301077707 ns/iter (± 6852647) 303549487 ns/iter (± 13665607) 0.99
Time: VM Runtime/PLB/binarytrees/6 1452710372 ns/iter (± 54560207) 1422535395 ns/iter (± 46757924) 1.02

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.