Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: lower CFGs #26

Merged
merged 5 commits into from
Jun 18, 2024
Merged

feat: lower CFGs #26

merged 5 commits into from
Jun 18, 2024

Conversation

doug-q
Copy link
Collaborator

@doug-q doug-q commented Jun 14, 2024

No description provided.

@doug-q doug-q requested a review from mark-koch June 14, 2024 11:23
@codecov-commenter
Copy link

codecov-commenter commented Jun 14, 2024

Codecov Report

Attention: Patch coverage is 82.64463% with 42 lines in your changes missing coverage. Please review.

Project coverage is 83.32%. Comparing base (b63c619) to head (867702e).

Files Patch % Lines
src/emit/ops/cfg.rs 83.33% 7 Missing and 25 partials ⚠️
src/fat.rs 78.57% 3 Missing and 3 partials ⚠️
src/emit/ops.rs 75.00% 0 Missing and 2 partials ⚠️
src/types.rs 71.42% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #26      +/-   ##
==========================================
+ Coverage   83.21%   83.32%   +0.11%     
==========================================
  Files          11       12       +1     
  Lines        1513     1739     +226     
  Branches     1513     1739     +226     
==========================================
+ Hits         1259     1449     +190     
- Misses        168      176       +8     
- Partials       86      114      +28     
Flag Coverage Δ
rust 83.32% <82.64%> (+0.11%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@doug-q
Copy link
Collaborator Author

doug-q commented Jun 14, 2024

Sorry about the miscellaneous changes in fat.rs, I have more comprehensive changes lined up, this was my attempt at doing as little as reasonable.

@doug-q doug-q linked an issue Jun 17, 2024 that may be closed by this pull request
@peter-campora
Copy link

Would be nice if this and #28 get merged soon. I'm slightly blocked on trying to add a lowering for quantum functions using the skeleton code from the draft PR for defining quantum ops until these are merged.

src/fat.rs Outdated Show resolved Hide resolved
src/emit/ops/cfg.rs Show resolved Hide resolved
src/emit/ops/cfg.rs Show resolved Hide resolved
src/emit/ops/cfg.rs Show resolved Hide resolved
src/emit/ops/cfg.rs Show resolved Hide resolved
@doug-q doug-q requested a review from mark-koch June 18, 2024 11:47
Copy link
Contributor

@mark-koch mark-koch left a comment

Choose a reason for hiding this comment

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

👍

@doug-q doug-q added this pull request to the merge queue Jun 18, 2024
Merged via the queue into main with commit a87c3e2 Jun 18, 2024
10 checks passed
@doug-q doug-q deleted the doug/cfg branch June 18, 2024 12:14
@hugrbot hugrbot mentioned this pull request Jun 26, 2024
github-merge-queue bot pushed a commit that referenced this pull request Jul 10, 2024
## 🤖 New release
* `hugr-llvm`: 0.1.0

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

## [0.1.0](https://github.com/CQCL/hugr-llvm/releases/tag/v0.1.0) -
2024-07-10

### Bug Fixes
- Syntax error
- sum type tag elision logic reversed
- [**breaking**] Allow Const and FuncDecl as children of Modules,
Dataflow Parents, and CFG nodes
([#46](#46))

### Documentation
- fix bad grammar ([#34](#34))

### New Features
- Emission for Call nodes
- Support  values
- add `get_extern_func`
([#28](#28))
- lower CFGs ([#26](#26))
- Add initial codegen extension for `prelude`
([#29](#29))
- [**breaking**] `Namer` optionally appends node index to mangled names.
([#32](#32))
- Implement lowerings for ieq,ilt_s,sub in int codegen extension
([#33](#33))
- Add initial `float` extension
([#31](#31))
- Emit more int comparison operators
([#47](#47))

### Refactor
- clean up fat.rs ([#38](#38))

### Testing
- add a test for sum type tags
- Add integration tests lowering guppy programs
([#35](#35))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).

---------

Co-authored-by: Douglas Wilson <[email protected]>
@hugrbot hugrbot mentioned this pull request Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement emission for CFG
4 participants