Header menu logo B2R2

Register Module

Provides functions to handle RISC-V registers.

Functions and values

Function or value Description

ofRegID rid

Full Usage: ofRegID rid

Parameters:
Returns: Register
Modifiers: inline

Returns the RISC-V register from a register ID.

rid : RegisterID
Returns: Register

ofString str

Full Usage: ofString str

Parameters:
    str : string

Returns: Register

Returns the RISC-V register from a string representation.

str : string
Returns: Register

toRegID reg

Full Usage: toRegID reg

Parameters:
Returns: int<MeasureProduct<T, MeasureOne>>
Modifiers: inline

Returns the register ID of a RISC-V register.

reg : Register
Returns: int<MeasureProduct<T, MeasureOne>>

toString reg

Full Usage: toString reg

Parameters:
Returns: string

Returns the string representation of a RISC-V register.

reg : Register
Returns: string

Type something to start searching.