-
Notifications
You must be signed in to change notification settings - Fork 798
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
Support ldelem.u8
, ldelem.u
opcode aliases
#18081
Conversation
❗ Release notes required
|
This matches the translations which we have elsewhere. I would prefer if we made ldelem.u8 work (as an alias to the same bytecode which ldelem.i8 uses), but I cannot asses where else this could resurface. fsharp/src/Compiler/AbstractIL/ilascii.fs Lines 93 to 96 in 7526d75
https://en.wikipedia.org/wiki/List_of_CIL_instructions We also do support this aliasing for stelem, just missing for ldelem: fsharp/src/Compiler/AbstractIL/ilwrite.fs Lines 2018 to 2023 in 7526d75
Maybe that's a better way to fix it? (so that future contributors emitting I_ldelem DT_U8 will not experience the same problem?) |
ldelem.i8
, ldelem.i
, etc., in computed array expressionsldelem.u8
, ldelem.u
opcode aliases
Good idea. |
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.
Thanks for the quick fix!
/backport to release/dev17.12 |
Started backporting to release/dev17.12: https://github.com/dotnet/fsharp/actions/runs/12118597396 |
@T-Gro backporting to release/dev17.12 failed, the patch most likely resulted in conflicts: $ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch
Applying: Emit `ldelem.i8`, `ldelem.i`, etc.
Applying: Update release notes
Using index info to reconstruct a base tree...
A docs/release-notes/.FSharp.Compiler.Service/9.0.200.md
Falling back to patching base and 3-way merge...
CONFLICT (modify/delete): docs/release-notes/.FSharp.Compiler.Service/9.0.200.md deleted in HEAD and modified in Update release notes. Version Update release notes of docs/release-notes/.FSharp.Compiler.Service/9.0.200.md left in tree.
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Patch failed at 0002 Update release notes
Error: The process '/usr/bin/git' failed with exit code 128 Please backport manually! |
@T-Gro an error occurred while backporting to release/dev17.12, please check the run log for details! Error: git am failed, most likely due to a merge conflict. |
…18081) (#18096) (#18099) Co-authored-by: Tomas Grosup <[email protected]>
* Backport :: Bugfix :: Support `ldelem.u8`, `ldelem.u` opcode aliases (#18081) (#18096) * Streamlining test deps a bit (#18022) * Streamlining test deps a bit * up * Format ILVerify output a bit (#18120) * fix for race condition in FileIndex.fileIndexOfFile (#18008) * fix for race condition in FileIndex.fileIndexOfFile * fantomas * fixed ilverify baselines (just a single line number changed) * add release notes entry * FileToIndex: Added unlocked read so that lock is entered for new files only * update ilverify baselines (changed line numbers only) * Fix ILVerify --------- Co-authored-by: Petr <[email protected]> Co-authored-by: Vlad Zarytovskii <[email protected]> * Update F# build version to 200 * Fix how much is trimmed from an interp string part (#18123) * Fix how much is trimmed from an interp string part Only trim last 2 characters if they are "%s" and the '%' is not escaped * Add release note --------- Co-authored-by: Adam Boniecki <[email protected]> * Sink: report SynPat.ArrayOrList type (#18127) --------- Co-authored-by: Tomas Grosup <[email protected]> Co-authored-by: Petr <[email protected]> Co-authored-by: Martin <[email protected]> Co-authored-by: Vlad Zarytovskii <[email protected]> Co-authored-by: Adam Boniecki <[email protected]> Co-authored-by: Adam Boniecki <[email protected]> Co-authored-by: Alex Berezhnykh <[email protected]> Co-authored-by: Kevin Ransom (msft) <[email protected]>
Description
Fixes #18066.
Followup to #17067, etc.
ldelem.u8
,ldelem.u
opcode aliases.Checklist