-
Notifications
You must be signed in to change notification settings - Fork 23
Adding support for Machine Integer version of Bytes, List, and MInt functions #1209
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
Open
Robertorosmaninho
wants to merge
13
commits into
develop
Choose a base branch
from
mint64-hooks
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or 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
56451cf
to
8482578
Compare
…d MInt{64} Implementing `hook_MINT_pow256` in LLVM IR Implementing `hook_MINT_pow64` in int.cpp Adding `mint-pow` unit test
Implementing `hook_MINT_MInt2Bytes` in LLVM IR Adding `mint2bytes` unit test
Implementing `hook_MINT_Bytes2MInt` in LLVM IR Adding `bytes2mint` unit test
…} and MInt{64} Implementing `hook_BYTES_length256` in LLVM IR Implementing `hook_BYTES_length64` in bytes.cpp Adding `lengthbytes` unit test
…56} and MInt{64} Implementing `hook_BYTES_padRight256` in LLVM IR Implementing `hook_BYTES_padRight64` in bytes.cpp Adding `padrightbytes` unit test
…6} and MInt{64} Implementing `hook_BYTES_padLeft256` in LLVM IR Implementing `hook_BYTES_padLeft64` in bytes.cpp Adding `padleftbytes` unit test
…256} and MInt{64} Implementing `hook_BYTES_replaceAt256` in LLVM IR Implementing `hook_BYTES_replaceAt64` in bytes.cpp Adding `replaceatbytes` unit test Declaring functions needed by other functions in the `llvm_hearder.inc` Defining `interger_overflow` used in used in `hook_BYTES_pad*` functions in `llvm_hearder.inc`
…} and MInt{64} Implementing `hook_BYTES_substr256` in LLVM IR Implementing `hook_BYTES_substr64` in bytes.cpp Adding `substrbytes` unit test
…nd MInt{64} Implementing `hook_BYTES_get256` in LLVM IR Implementing `hook_BYTES_get64` in bytes.cpp Adding `bytes-get` unit test
…} and MInt{64} Implementing `hook_BYTES_update256` in LLVM IR Implementing `hook_BYTES_update64` in bytes.cpp Adding `bytes-update` unit test
…nd MInt{64} Implementing `hook_LIST_size256` in LLVM IR Implementing `hook_LIST_size64` in bytes.cpp Adding `list-size` unit test
Implementing `hook_LIST_get64` in bytes.cpp Adding `list-get` unit test
…64} only Adding `list-update` unit test
d1d5580
to
d7efaf7
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.
This PR introduces the concrete implementation of the following new Machine Integer hooks:
Most of these hooks have an initial implementation for
64
and256-bit
Integers, being the former defined in C++ in its respective collection file while the latter is defined in thellvm_header.inc
file, as C++ doesn't support 256-bit integer natively.The only exceptions for now are 12 and 13, which are only implemented for 64-bit, as we have the
immer
limitation that the index should be ain64_t
.