mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[PR #3101] [CLOSED] Changed the order of defining the current code #3225
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#3225
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/3101
Author: @ivan999
Created: 6/16/2025
Status: ❌ Closed
Base:
main← Head:improve-recompiler-frontend-decode📝 Commits (5)
2a1a104Reduced amount of switch cases during instruction decodingcee8814Formatting has been changed to pass clang format checking2d03dc7The order of checking the codes was changed8ec6a5dMerge branch 'shadps4-emu:main' into improve-recompiler-frontend-decode29836c9Merge branch 'shadps4-emu:main' into improve-recompiler-frontend-decode📊 Changes
3 files changed (+155 additions, -277 deletions)
View changed files
📝
src/shader_recompiler/frontend/decode.cpp(+141 -251)📝
src/shader_recompiler/frontend/decode.h(+14 -24)📝
src/shader_recompiler/frontend/opcodes.h(+0 -2)📄 Description
GcnDecodeContext private methods structure has been changed.
getEncodingLength, getOpMapOffset have been deleted.
GetInstructionEncoding function has been deleted.
Logic from this function has been put to a set of new private methods.
The main idea was to reduce repeating of the switch cases.
Small corrections have been added too:
32 bits encodings methods parameter has been changed in the header file to u32, to be the same as in the cpp file.
InstEncoding::ILLEGAL is not needed anymore, so it has been removed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.