/[pcre]/code/trunk/sljit/sljitLir.h
ViewVC logotype

Diff of /code/trunk/sljit/sljitLir.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1492 by zherczeg, Mon Jul 7 07:11:16 2014 UTC revision 1493 by zherczeg, Wed Jul 9 04:41:15 2014 UTC
# Line 163  of sljitConfigInternal.h */ Line 163  of sljitConfigInternal.h */
163  #define SLJIT_R0        1  #define SLJIT_R0        1
164  #define SLJIT_R1        2  #define SLJIT_R1        2
165  #define SLJIT_R2        3  #define SLJIT_R2        3
166  /* Note: on x86-32, R3 - R6 are emulated (using stack loads & stores),  /* Note: on x86-32, R3 - R6 (same as S3 - S6) are emulated (they
167     so they cannot be used for memory addressing. There is no such     are allocated on the stack). These registers are called virtual
168     limitation on other CPUs. */     and cannot be used for memory addressing (cannot be part of
169       any SLJIT_MEM1, SLJIT_MEM2 construct). There is no such
170       limitation on other CPUs. See sljit_get_register_index(). */
171  #define SLJIT_R3        4  #define SLJIT_R3        4
172  #define SLJIT_R4        5  #define SLJIT_R4        5
173  #define SLJIT_R5        6  #define SLJIT_R5        6
# Line 181  of sljitConfigInternal.h */ Line 183  of sljitConfigInternal.h */
183  #define SLJIT_S0        (SLJIT_NUMBER_OF_REGISTERS)  #define SLJIT_S0        (SLJIT_NUMBER_OF_REGISTERS)
184  #define SLJIT_S1        (SLJIT_NUMBER_OF_REGISTERS - 1)  #define SLJIT_S1        (SLJIT_NUMBER_OF_REGISTERS - 1)
185  #define SLJIT_S2        (SLJIT_NUMBER_OF_REGISTERS - 2)  #define SLJIT_S2        (SLJIT_NUMBER_OF_REGISTERS - 2)
186  /* Note: on x86-32, S3 - S6 are emulated (using stack loads & stores),  /* Note: on x86-32, S3 - S6 (same as R3 - R6) are emulated (they
187     so they cannot be used for memory addressing. There is no such     are allocated on the stack). These registers are called virtual
188     limitation on other CPUs. */     and cannot be used for memory addressing (cannot be part of
189       any SLJIT_MEM1, SLJIT_MEM2 construct). There is no such
190       limitation on other CPUs. See sljit_get_register_index(). */
191  #define SLJIT_S3        (SLJIT_NUMBER_OF_REGISTERS - 3)  #define SLJIT_S3        (SLJIT_NUMBER_OF_REGISTERS - 3)
192  #define SLJIT_S4        (SLJIT_NUMBER_OF_REGISTERS - 4)  #define SLJIT_S4        (SLJIT_NUMBER_OF_REGISTERS - 4)
193  #define SLJIT_S5        (SLJIT_NUMBER_OF_REGISTERS - 5)  #define SLJIT_S5        (SLJIT_NUMBER_OF_REGISTERS - 5)
# Line 807  SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_ Line 811  SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_
811          sljit_si src2, sljit_sw src2w);          sljit_si src2, sljit_sw src2w);
812    
813  /* The following function is a helper function for sljit_emit_op_custom.  /* The following function is a helper function for sljit_emit_op_custom.
814     It returns with the real machine register index of any SLJIT_SCRATCH     It returns with the real machine register index ( >=0 ) of any SLJIT_R,
815     SLJIT_SAVED or SLJIT_LOCALS register.     SLJIT_S and SLJIT_SP registers.
816     Note: it returns with -1 for virtual registers (all EREGs on x86-32). */  
817       Note: it returns with -1 for virtual registers (only on x86-32). */
818    
819  SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_get_register_index(sljit_si reg);  SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_get_register_index(sljit_si reg);
820    
821  /* The following function is a helper function for sljit_emit_op_custom.  /* The following function is a helper function for sljit_emit_op_custom.
822     It returns with the real machine register index of any SLJIT_FLOAT register.     It returns with the real machine register index of any SLJIT_FLOAT register.
823     Note: the index is divided by 2 on ARM 32 bit architectures. */  
824       Note: the index is always an even number on ARM (except ARM-64), MIPS, and SPARC. */
825    
826  SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_get_float_register_index(sljit_si reg);  SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_get_float_register_index(sljit_si reg);
827    

Legend:
Removed from v.1492  
changed lines
  Added in v.1493

  ViewVC Help
Powered by ViewVC 1.1.5