src/share/vm/adlc/archDesc.cpp

Print this page
rev 7060 : 8058880: Introduce identifier TEMP_DEF for effects in adl.

@@ -971,23 +971,22 @@
   for (int i = 1; i < _last_machine_leaf; ++i) {
     char        *ident   = (char *)NodeClassNames[i];
     constructOperand(ident, true);
   }
   // Create InstructForm and assign type for each ideal instruction.
-  for ( int j = _last_machine_leaf+1; j < _last_opcode; ++j) {
+  for (int j = _last_machine_leaf+1; j < _last_opcode; ++j) {
     char         *ident    = (char *)NodeClassNames[j];
-    if(!strcmp(ident, "ConI") || !strcmp(ident, "ConP") ||
+    if (!strcmp(ident, "ConI") || !strcmp(ident, "ConP") ||
        !strcmp(ident, "ConN") || !strcmp(ident, "ConNKlass") ||
        !strcmp(ident, "ConF") || !strcmp(ident, "ConD") ||
        !strcmp(ident, "ConL") || !strcmp(ident, "Con" ) ||
-       !strcmp(ident, "Bool") ) {
+        !strcmp(ident, "Bool")) {
       constructOperand(ident, true);
-    }
-    else {
+    } else {
       InstructForm *insForm  = new InstructForm(ident, true);
       // insForm->_opcode       = nextUserOpType(ident);
-      _globalNames.Insert(ident,insForm);
+      _globalNames.Insert(ident, insForm);
       addForm(insForm);
     }
   }
 
   { OperandForm *opForm;

@@ -1036,10 +1035,13 @@
     eForm = new Effect(ident);
     _globalNames.Insert(ident, eForm);
     ident = "TEMP";
     eForm = new Effect(ident);
     _globalNames.Insert(ident, eForm);
+    ident = "TEMP_DEF";
+    eForm = new Effect(ident);
+    _globalNames.Insert(ident, eForm);
     ident = "CALL";
     eForm = new Effect(ident);
     _globalNames.Insert(ident, eForm);
   }
 

@@ -1048,11 +1050,11 @@
   int idealIndex = 0;
   for (idealIndex = 1; idealIndex < _last_machine_leaf; ++idealIndex) {
     const char *idealName = NodeClassNames[idealIndex];
     _idealIndex.Insert((void*) idealName, (void*) (intptr_t) idealIndex);
   }
-  for ( idealIndex = _last_machine_leaf+1;
+  for (idealIndex = _last_machine_leaf+1;
         idealIndex < _last_opcode; ++idealIndex) {
     const char *idealName = NodeClassNames[idealIndex];
     _idealIndex.Insert((void*) idealName, (void*) (intptr_t) idealIndex);
   }