Lines Matching defs:rep_var

1923   // @arg rep_var: The formal parameter of the encoding.
1924 void update_state(const char *rep_var) {
1927 if ( (*rep_var) != '$' ) {
1929 // check_rep_var( rep_var );
1930 if ( Opcode::as_opcode_type(rep_var) != Opcode::NOT_AN_OPCODE ) {
1935 else if ((strcmp(rep_var, "constanttablebase") == 0) ||
1936 (strcmp(rep_var, "constantoffset") == 0) ||
1937 (strcmp(rep_var, "constantaddress") == 0)) {
1941 rep_var, _encoding._name);
1946 int param_no = _encoding.rep_var_index(rep_var);
1950 rep_var, _encoding._name);
1959 rep_var, _encoding._name, _inst._ident);
1975 _local_name = rep_var;
2010 if ( strcmp(rep_var,"$disp") == 0 ) {
2067 else if ( strcmp(rep_var,"$constant") == 0 ) {
2088 else if ( strcmp(rep_var,"$label") == 0 ) {
2100 if (strcmp(rep_var,"$reg") == 0 || reg_conversion(rep_var) != NULL) {
2109 if( strcmp(rep_var,"$constant") == 0 ) {
2119 void add_rep_var(const char *rep_var) {
2121 if ( ( *rep_var == '$' ) && ( *(rep_var+1) == '$' ) ) {
2124 if ( strcmp(rep_var,"$$emit32") == 0 ) {
2127 else if ( strcmp(rep_var,"$$emit16") == 0 ) {
2130 else if ( strcmp(rep_var,"$$emit_hi") == 0 ) {
2133 else if ( strcmp(rep_var,"$$emit_lo") == 0 ) {
2136 else if ( strcmp(rep_var,"$$emit8") == 0 ) {
2140 _AD.syntax_err(_encoding._linenum, "Unsupported $$operation '%s'\n",rep_var);
2146 update_state( rep_var );
2147 _strings_to_emit.addName(rep_var);
2156 const char *rep_var;
2158 while ( (rep_var = _strings_to_emit.iter()) != NULL ) {
2160 if ( (*rep_var) == '$' ) {
2162 emit_field( rep_var );
2168 emit_rep_var( rep_var );
2172 emit_rep_var( rep_var );
2176 emit_rep_var( rep_var );
2180 emit_rep_var( rep_var );
2189 emit_rep_var( rep_var );
2204 emit_rep_var( rep_var );
2205 rep_var = _strings_to_emit.iter();
2206 assert(strcmp(rep_var, "$base") == 0 || strcmp(rep_var, "$index") == 0, "bad pattern");
2208 emit_field(rep_var);
2209 rep_var = _strings_to_emit.iter();
2210 assert(strcmp(rep_var, "$Register") == 0, "bad pattern");
2214 emit_rep_var( rep_var );
2295 const char* reg_conversion(const char* rep_var) {
2296 if (strcmp(rep_var,"$Register") == 0) return "as_Register";
2297 if (strcmp(rep_var,"$FloatRegister") == 0) return "as_FloatRegister";
2299 if (strcmp(rep_var,"$XMMRegister") == 0) return "as_XMMRegister";
2304 void emit_field(const char *rep_var) {
2305 const char* reg_convert = reg_conversion(rep_var);
2308 if ( strcmp(rep_var, "$reg") == 0 || reg_convert != NULL) {
2334 else if ( strcmp(rep_var,"$base") == 0 ) {
2340 else if ( strcmp(rep_var,"$index") == 0 ) {
2346 else if ( strcmp(rep_var,"$scale") == 0 ) {
2350 else if ( strcmp(rep_var,"$cmpcode") == 0 ) {
2354 else if ( strcmp(rep_var,"$constant") == 0 ) {
2370 else if ( strcmp(rep_var,"$disp") == 0 ) {
2378 else if ( strcmp(rep_var,"$label") == 0 ) {
2381 else if ( strcmp(rep_var,"$method") == 0 ) {
2385 printf("emit_field: %s\n",rep_var);
2387 rep_var, _inst._ident);
2393 void emit_rep_var(const char *rep_var) {
2396 if ( Opcode::as_opcode_type(rep_var) != Opcode::NOT_AN_OPCODE ) {
2397 if (!_inst._opcode->print_opcode(_fp, Opcode::as_opcode_type(rep_var) )) {
2401 rep_var, _inst._ident, _encoding._name);
2404 else if (strcmp(rep_var, "constanttablebase") == 0) {
2407 else if (strcmp(rep_var, "constantoffset") == 0) {
2410 else if (strcmp(rep_var, "constantaddress") == 0) {
2415 int param_no = _encoding.rep_var_index(rep_var);
2419 rep_var, _encoding._name);
2457 rep_var, _inst._ident);
2762 const char *rep_var = encoding + 1;
2763 // Lookup replacement variable, rep_var, in operand's component list
2764 const Component *comp = oper._components.search(rep_var);
2782 const char *rep_var = encoding + 1;
2783 // Lookup replacement variable, rep_var, in operand's component list
2784 const Component *comp = oper._components.search(rep_var);
2854 const char *rep_var = encoding + 1;
2856 // Lookup replacement variable, rep_var, in operand's component list
2857 const Component *comp = oper._components.search(rep_var);
2868 int idx_offset = oper.register_position( globals, rep_var);