< prev index next >

src/hotspot/share/adlc/formssel.cpp

Print this page




1154     return "MachReturnNode";
1155   }
1156   else if (is_ideal_halt()) {
1157     return "MachHaltNode";
1158   }
1159   else if (is_ideal_safepoint()) {
1160     return "MachSafePointNode";
1161   }
1162   else if (is_ideal_if()) {
1163     return "MachIfNode";
1164   }
1165   else if (is_ideal_goto()) {
1166     return "MachGotoNode";
1167   }
1168   else if (is_ideal_fastlock()) {
1169     return "MachFastLockNode";
1170   }
1171   else if (is_ideal_nop()) {
1172     return "MachNopNode";
1173   }



1174   else if (is_mach_constant()) {
1175     return "MachConstantNode";
1176   }
1177   else if (captures_bottom_type(globals)) {
1178     return "MachTypeNode";
1179   } else {
1180     return "MachNode";
1181   }
1182   assert( false, "ShouldNotReachHere()");
1183   return NULL;
1184 }
1185 
1186 // Compare the instruction predicates for textual equality
1187 bool equivalent_predicates( const InstructForm *instr1, const InstructForm *instr2 ) {
1188   const Predicate *pred1  = instr1->_predicate;
1189   const Predicate *pred2  = instr2->_predicate;
1190   if( pred1 == NULL && pred2 == NULL ) {
1191     // no predicates means they are identical
1192     return true;
1193   }




1154     return "MachReturnNode";
1155   }
1156   else if (is_ideal_halt()) {
1157     return "MachHaltNode";
1158   }
1159   else if (is_ideal_safepoint()) {
1160     return "MachSafePointNode";
1161   }
1162   else if (is_ideal_if()) {
1163     return "MachIfNode";
1164   }
1165   else if (is_ideal_goto()) {
1166     return "MachGotoNode";
1167   }
1168   else if (is_ideal_fastlock()) {
1169     return "MachFastLockNode";
1170   }
1171   else if (is_ideal_nop()) {
1172     return "MachNopNode";
1173   }
1174   else if (is_ideal_jump()) {
1175     return "MachJumpNode";
1176   }
1177   else if (is_mach_constant()) {
1178     return "MachConstantNode";
1179   }
1180   else if (captures_bottom_type(globals)) {
1181     return "MachTypeNode";
1182   } else {
1183     return "MachNode";
1184   }
1185   assert( false, "ShouldNotReachHere()");
1186   return NULL;
1187 }
1188 
1189 // Compare the instruction predicates for textual equality
1190 bool equivalent_predicates( const InstructForm *instr1, const InstructForm *instr2 ) {
1191   const Predicate *pred1  = instr1->_predicate;
1192   const Predicate *pred2  = instr2->_predicate;
1193   if( pred1 == NULL && pred2 == NULL ) {
1194     // no predicates means they are identical
1195     return true;
1196   }


< prev index next >