mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-08 15:38:19 +01:00
mp: Generalize function information retrieval
Generalizes MemFnInfo to be compatible with all function types. Also adds type introspection for arguments, as well as helper templates for the common types supported by all partial specializations.
This commit is contained in:
parent
439619c827
commit
9ed9f4c565
6 changed files with 56 additions and 13 deletions
|
|
@ -20,7 +20,7 @@ namespace Arm {
|
|||
|
||||
template <typename Visitor>
|
||||
struct VFP2Matcher {
|
||||
using CallRetT = typename mp::MemFnInfo<decltype(&Visitor::vfp2_VADD)>::return_type;
|
||||
using CallRetT = mp::return_type_t<decltype(&Visitor::vfp2_VADD)>;
|
||||
|
||||
VFP2Matcher(const char* const name, u32 mask, u32 expect, std::function<CallRetT(Visitor&, u32)> fn)
|
||||
: name(name), mask(mask), expect(expect), fn(fn) {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue