Lines Matching defs:pmatch

1076 static void check_peepmatch_instruction_sequence(FILE *fp, PeepMatch *pmatch, PeepConstraint *pconstraint) {
1082 pmatch->reset();
1083 for( pmatch->next_instruction( parent, inst_position, inst_name, input );
1085 pmatch->next_instruction( parent, inst_position, inst_name, input ) ) {
1087 if( ! pmatch->is_placeholder() ) {
1114 static void build_instruction_index_mapping( FILE *fp, FormDict &globals, PeepMatch *pmatch ) {
1120 pmatch->reset();
1121 for( pmatch->next_instruction( parent, inst_position, inst_name, input );
1123 pmatch->next_instruction( parent, inst_position, inst_name, input ) ) {
1125 if( ! pmatch->is_placeholder() ) {
1140 static void check_peepconstraints(FILE *fp, FormDict &globals, PeepMatch *pmatch, PeepConstraint *pconstraint) {
1145 build_instruction_index_mapping( fp, globals, pmatch );
1165 InstructForm *inst_left = globals[pmatch->instruction_name(left_index)]->is_instruction();
1189 InstructForm *inst_right = globals[pmatch->instruction_name(right_index)]->is_instruction();
1332 static void generate_peepreplace( FILE *fp, FormDict &globals, PeepMatch *pmatch, PeepConstraint *pconstraint, PeepReplace *preplace, int max_position ) {
1354 inst_form = globals[pmatch->instruction_name(inst_num)]->is_instruction();
1430 PeepMatch *pmatch = peep->match();
1431 assert( pmatch != NULL, "fatal(), missing peepmatch rule");
1432 if( max_position < pmatch->max_position() ) max_position = pmatch->max_position();
1448 PeepMatch *pmatch = peep->match();
1453 assert( true, // %%name?%% strcmp( node->_ident, pmatch->name(0) ) == 0,
1460 check_peepmatch_instruction_sequence( fp, pmatch, pconstraint );
1467 check_peepconstraints( fp, _globalNames, pmatch, pconstraint );
1470 generate_peepreplace( fp, _globalNames, pmatch, pconstraint, preplace, max_position );