diff options
| author | Alessandro Gatti <a.gatti@frob.it> | 2025-06-26 21:56:26 +0200 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-07-04 16:07:04 +1000 |
| commit | 2ab06b61b3f60e42cda250203bda31667ecef043 (patch) | |
| tree | d7e55a12b6c38bf69beef98922f359339c825edb /py/asmrv32.h | |
| parent | 3a97175f5f7023d9f8db37c21e0c04174df0f205 (diff) | |
py/emitnative: Let emitters know the compiled entity's name.
This commit introduces an optional feature to provide to native emitters
the fully qualified name of the entity they are compiling.
This is achieved by altering the generic ASM API to provide a third
argument to the entry function, containing the name of the entity being
compiled. Currently only the debug emitter uses this feature, as it is
not really useful for other emitters for the time being; in fact the
macros in question just strip the name away.
Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Diffstat (limited to 'py/asmrv32.h')
| -rw-r--r-- | py/asmrv32.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/asmrv32.h b/py/asmrv32.h index 99c2226ef..dac9c028b 100644 --- a/py/asmrv32.h +++ b/py/asmrv32.h @@ -718,7 +718,7 @@ void asm_rv32_emit_optimised_xor(asm_rv32_t *state, mp_uint_t rd, mp_uint_t rs); void asm_rv32_emit_store_reg_reg_offset(asm_rv32_t *state, mp_uint_t source, mp_uint_t base, int32_t offset, mp_uint_t operation_size); #define ASM_T asm_rv32_t -#define ASM_ENTRY(state, labels) asm_rv32_entry(state, labels) +#define ASM_ENTRY(state, labels, name) asm_rv32_entry(state, labels) #define ASM_EXIT(state) asm_rv32_exit(state) #define ASM_END_PASS(state) asm_rv32_end_pass(state) |
