Skip to content

Commit

Permalink
MachRegister: Add interface for collecting and retrieving all registe…
Browse files Browse the repository at this point in the history
…rs (#1703)
  • Loading branch information
hainest committed Apr 3, 2024
1 parent 64a7253 commit af53fd2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/common/public/registers/MachRegister.h.rst
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,9 @@ MachRegister.h
.. cpp:function:: static MachRegister getArchReg(unsigned int regNum, Architecture arch)

This is only valid when ``arch`` is :cpp:enumerator:`Arch_aarch64`.

.. cpp:function:: static std::vector<MachRegister> const& getAllRegistersForArch(Dyninst::Architecture arch)

Returns all registers available on ``arch``.

The registers are returned in the order they are declared in :ref:`sec:dyn_regs.h`.

0 comments on commit af53fd2

Please sign in to comment.