diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-05-21 16:48:11 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-05-21 16:48:11 (GMT) |
commit | acd355c4c5ae25fb9cac64b8dc17407a2bcc979b (patch) | |
tree | d5b43201049116cd9734ff554e61ed8a7e0084cc /src/arch/arm/v7/register.h | |
parent | 4691a434a34a19317156a761967f719e408b73bb (diff) |
Refined the whole share system for operands.
Diffstat (limited to 'src/arch/arm/v7/register.h')
-rw-r--r-- | src/arch/arm/v7/register.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/arch/arm/v7/register.h b/src/arch/arm/v7/register.h index de038e2..0408859 100644 --- a/src/arch/arm/v7/register.h +++ b/src/arch/arm/v7/register.h @@ -26,10 +26,14 @@ #include <glib-object.h> +#include <stdbool.h> #include <stdint.h> +/* ------------------------- ENCADREMENT DE REGISTRES BRUTS ------------------------- */ + + #define G_TYPE_ARMV7_REGISTER g_armv7_register_get_type() #define G_ARMV7_REGISTER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), g_armv7_register_get_type(), GArmV7Register)) #define G_IS_ARMV7_REGISTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), g_armv7_register_get_type())) @@ -53,4 +57,20 @@ GArmV7Register *g_armv7_register_new(uint8_t); +/* -------------------------- PARTAGES DE CONTENUS UNIQUES -------------------------- */ + + +/* Met en place les mécanismes de partage des registres ARMv7. */ +bool init_armv7_register_sharing(void); + +/* Imprime des statistiques quant aux partages dans l'archi. */ +#ifdef DEBUG_DUMP_STATS +void dump_armv7_register_share_stats(void); +#endif + +/* Supprime les mécanismes de partage des registres ARMv7. */ +void exit_armv7_register_sharing(void); + + + #endif /* _ARCH_ARM_V7_REGISTER_H */ |