-
Notifications
You must be signed in to change notification settings - Fork 16
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: Use const nodes for const arc4 values #339
Merged
tristanmenzel
merged 6 commits into
main
from
refactor/use-string-const-for-arc4-string
Nov 12, 2024
Merged
Refactor: Use const nodes for const arc4 values #339
tristanmenzel
merged 6 commits into
main
from
refactor/use-string-const-for-arc4-string
Nov 12, 2024
Conversation
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 matches the pattern used for IntegerConstants
tristanmenzel
force-pushed
the
refactor/use-string-const-for-arc4-string
branch
from
October 30, 2024 20:11
a5bbd9c
to
82c3de3
Compare
tristanmenzel
force-pushed
the
refactor/use-string-const-for-arc4-string
branch
from
October 30, 2024 21:19
7ae35f8
to
6b30872
Compare
test_cases/arc4_dynamic_arrays/out/DynamicArrayContract.approval.teal
Outdated
Show resolved
Hide resolved
daniel-makerx
approved these changes
Nov 8, 2024
…onst-for-arc4-string # Conflicts: # examples/sizes.txt # src/puya/ir/builder/main.py # test_cases/arc4_types/out/Arc4MutableParamsContract.approval.mir # test_cases/arc4_types/out/Arc4MutableParamsContract.ssa.ir # test_cases/arc4_types/out/Arc4MutableParamsContract.ssa.opt_pass_1.ir # test_cases/arc4_types/out/Arc4MutableParamsContract.ssa.opt_pass_10.ir # test_cases/arc4_types/out/Arc4MutableParamsContract.ssa.opt_pass_11.ir # test_cases/arc4_types/out/Arc4MutableParamsContract.ssa.opt_pass_12.ir # test_cases/arc4_types/out/Arc4MutableParamsContract.ssa.opt_pass_13.ir # test_cases/arc4_types/out/Arc4MutableParamsContract.ssa.opt_pass_2.ir # test_cases/arc4_types/out/Arc4MutableParamsContract.ssa.opt_pass_3.ir # test_cases/arc4_types/out/Arc4MutableParamsContract.ssa.opt_pass_4.ir # test_cases/arc4_types/out/Arc4MutableParamsContract.ssa.opt_pass_5.ir # test_cases/arc4_types/out/Arc4MutableParamsContract.ssa.opt_pass_6.ir # test_cases/arc4_types/out/Arc4MutableParamsContract.ssa.opt_pass_7.ir # test_cases/arc4_types/out/Arc4MutableParamsContract.ssa.opt_pass_8.ir # test_cases/arc4_types/out/Arc4MutableParamsContract.ssa.opt_pass_9.ir # test_cases/arc4_types/out/module.awst # test_cases/arc4_types/out/mutable_params.O0.log # test_cases/arc4_types/out/tuples.O0.log # test_cases/arc4_types/out_unoptimized/Arc4MutableParamsContract.approval.teal # test_cases/arc4_types/out_unoptimized/Arc4MutableParamsContract.destructured.ir # test_cases/arc4_types/puya.log # test_cases/compile/out_unoptimized/HelloFactory.approval.teal # test_cases/typed_abi_call/out_unoptimized/Greeter.approval.teal
tristanmenzel
force-pushed
the
refactor/use-string-const-for-arc4-string
branch
from
November 11, 2024 21:27
352aaf9
to
66acced
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed Changes
Why?
This is already how arc4 numeric types are handled. It makes the awst a little clearer to read and cuts down on the number of optimization passes required to output the same Teal.