-
-
Notifications
You must be signed in to change notification settings - Fork 804
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
Refactor ctx.add_instruction() and friends #3685
Refactor ctx.add_instruction() and friends #3685
Conversation
add_instruction methods
adopted a shorted name for frequently used methods
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #3685 +/- ##
==========================================
+ Coverage 83.82% 83.95% +0.12%
==========================================
Files 91 91
Lines 12778 12769 -9
Branches 2861 2867 +6
==========================================
+ Hits 10711 10720 +9
+ Misses 1643 1624 -19
- Partials 424 425 +1 ☔ View full report in Codecov by Sentry. |
Refactored append instructions into a single append_instruction() method with named arguments for returning or not a variable
@harkal some failing tests! |
Until now log instructions where pass through. Now we have a log instruction in venom that takes the first argument to be the topic count (in shape of doing table jmp etc in the future -essentialy have instructions that require manipulation of operants before emit)
Remove output argument append_instruction() in IRBasicBlock now the method decides by itself if there is an output value
…_add_instruction_and_friends
Co-authored-by: Charles Cooper <[email protected]>
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.
nice, much cleaner. thanks!
What I did
Refactored the family of add instruction methods in IRFunction and IRBasicBlock with the aim to only using basic block methods to add instructions
How I did it
With lots of coffee
How to verify it
Commit message
Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see our commit message style guide for what we would ideally like to see in a commit message.)
Description for the changelog
Cute Animal Picture