summaryrefslogtreecommitdiffstats
path: root/src/video_core/macro/macro_jit_x64.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* general: fix compilation on MinGW GCC 12Liam2022-06-141-1/+1
|
* video_core/macro_jit_x64: warn on invalid parameter accessLiam2022-05-081-3/+21
|
* general: Convert source file copyright comments over to SPDXMorph2022-04-231-3/+2
| | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
* common/xbyak_api: Make BuildRegSet() constexprLioncash2022-01-261-1/+1
| | | | | This allows us to eliminate any static constructors that would have been emitted due to the function not being constexpr.
* video_core/macro_jit_x64: Remove unused impl class memberLioncash2022-01-251-1/+0
| | | | Reduces the size of the impl class a tiny bit.
* video_core/macro_jit_x64: Decouple PersistentCallerSavedRegs() from implLioncash2022-01-251-5/+4
| | | | This doesn't depend on class state and can just be a regular function.
* video_core/macro_jit_x64: Move impl class into cpp fileLioncash2022-01-251-16/+86
| | | | | | | Keeps the implementation internalized and also reduces API-facing header dependencies. Notably, this fully internalizes all of the xbyak externals.
* video_core: Remove unnecessary enum class casting in logging messagesLioncash2020-12-071-3/+2
| | | | | | | fmt now automatically prints the numeric value of an enum class member by default, so we don't need to use casts any more. Reduces the line noise a bit.
* video_core: Resolve more variable shadowing scenariosLioncash2020-12-041-8/+8
| | | | | | Resolves variable shadowing scenarios up to the end of the OpenGL code to make it nicer to review. The rest will be resolved in a following commit.
* externals: Update Xbyak to 5.96Lioncash2020-08-301-5/+5
| | | | | | | | | I made a request on the Xbyak issue tracker to allow some constructors to be constexpr in order to avoid static constructors from needing to execute for some of our register constants. This request was implemented, so this updates Xbyak so that we can make use of it.
* video_core: Remove unused variablesLioncash2020-07-211-1/+0
| | | | Silences several compiler warnings about unused variables.
* Macro HLE supportDavid Marcec2020-06-241-1/+2
|
* Merge pull request #4122 from lioncash/hidebunnei2020-06-221-2/+2
|\ | | | | video_core: Eliminate some variable shadowing
| * macro_jit_x64: Eliminate variable shadowing in Compile_ProcessResult()Lioncash2020-06-201-2/+2
| | | | | | | | | | | | | | We can reduce the capture scope so that it's not possible for both "reg" variables to clash with one another. While we're at it, we can prevent unnecessary copies while we're at it.
* | macro_jit_x64: Use ecx for shift registerMerryMage2020-06-201-2/+2
| | | | | | | | shl/shr only accept cl as their second argument
* | Merge pull request #4125 from lioncash/macro-shiftmerry2020-06-201-6/+7
|\ \ | | | | | | macro_jit_x64: Amend readability of Compile_ExtractShiftLeftRegister()
| * | macro_jit_x64: Correct readability of Compile_ExtractShiftLeftImmediate()Lioncash2020-06-201-3/+3
| | | | | | | | | | | | Previously dst wasn't being used.
| * | macro_jit_x64: Correct readability of Compile_ExtractShiftLeftRegister()Lioncash2020-06-201-3/+4
| |/ | | | | | | Previously dst wasn't being used.
* | Merge pull request #4123 from lioncash/unused-varmerry2020-06-201-2/+1
|\ \ | | | | | | macro_jit_x64: Remove unused variable
| * | macro_jit_x64: Remove unused variableLioncash2020-06-201-2/+1
| |/ | | | | | | | | Removes a completely unused label and marks another variable as unused, given it seems like it has potential uses in the future.
* | Merge pull request #4087 from MerryMage/macrojit-inline-Readbunnei2020-06-201-14/+21
|\ \ | |/ |/| macro_jit_x64: Inline Engines::Maxwell3D::GetRegisterValue
| * macro_jit_x64: Remove unused function ReadMerryMage2020-06-191-8/+4
| |
| * macro_jit_x64: Inline Engines::Maxwell3D::GetRegisterValueMerryMage2020-06-171-6/+17
| |
* | Merge pull request #4090 from MerryMage/macrojit-bugsbunnei2020-06-191-2/+5
|\ \ | |/ |/| macro_jit_x64: Optimization correctness
| * macro_jit_x64: Optimization implicitly assumes same destinationMerryMage2020-06-171-1/+2
| |
| * macro_jit_x64: Should not skip zero registers for certain ALU opsMerryMage2020-06-171-1/+3
| | | | | | | | The code generated for these ALU ops assume src_a and src_b are always valid.
* | Merge pull request #4086 from MerryMage/abibunnei2020-06-171-6/+6
|\ \ | |/ |/| xbyak_abi: Cleanup
| * xbyak_abi: Remove *GPS variants of stack manipulation functionsMerryMage2020-06-151-6/+6
| |
* | macro_jit_x64: Remove NEXT_PARAMETERMerryMage2020-06-151-5/+2
| | | | | | | | Not required, as PARAMETERS can just be incremented directly.
* | macro_jit_x64: Remove unused function Compile_WriteCarryMerryMage2020-06-151-8/+0
| |
* | macro_jit_x64: Select better registersMerryMage2020-06-151-8/+8
| | | | | | | | | | | | | | All registers are now callee-save registers. RBX and RBP selected for STATE and RESULT because these are most commonly accessed; this is to avoid the REX prefix. RBP not used for STATE because there are some SIB restrictions, RBX emits smaller code.
* | macro_jit_x64: Remove REGISTERSMerryMage2020-06-151-7/+3
| | | | | | | | Unnecessary since this is just an offset from STATE.
* | macro_jit_x64: Remove JITState::parametersMerryMage2020-06-151-4/+2
| | | | | | | | This can be passed in as an argument instead.
* | macro_jit_x64: Remove METHOD_ADDRESS_64MerryMage2020-06-151-2/+1
| | | | | | | | Unnecessary variable.
* | macro_jit_x64: Remove RESULT_64MerryMage2020-06-151-15/+3
|/ | | | This Reg64 codepath has the exact same behaviour as the Reg32 one.
* Mark parameters as constDavid Marcec2020-06-031-1/+1
|
* Favor switch case over jump tableDavid Marcec2020-05-301-18/+25
| | | | Easier to read and will emit a jump table automatically.
* Implement macro JITDavid Marcec2020-05-301-0/+633