Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix for 16 bit spec const values #4

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

attackgoat
Copy link
Contributor

I ran into two issues using u16 specialized constants:

  • spirq::reflect_cfg::ReflectConfig::specialize() allows using two bytes to setup a typeless constant, but spq_core::constant::ConstantValue::to_typed() expected four-byte u32-encoded constants
  • Some op code evaluator implementations were missing

As far as the evaluator implementations, there are a bunch of missing cases (see #1). I think reorganizing them into something like match (op, operands, result_ty) { ... might make the code easier to fill out and remove a bunch of duplicated Err cases.

attackgoat and others added 2 commits November 25, 2024 23:50
* Fixed CI script

* Formatter config

* Resolve warnings
@PENGUINLIONG
Copy link
Owner

Thank you for your constant help! I pushed a commit to add CI checks (which I forgot to clean up before) btw.

@PENGUINLIONG PENGUINLIONG merged commit 80f7040 into PENGUINLIONG:main Nov 27, 2024
1 check passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants