< prev index next >

src/hotspot/share/adlc/forms.cpp

Print this page


   1 /*
   2  * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *


 254   if( strcmp(opType,"LoadUS")==0 )  return Form::idealC;
 255   if( strcmp(opType,"LoadD")==0 )  return Form::idealD;
 256   if( strcmp(opType,"LoadD_unaligned")==0 )  return Form::idealD;
 257   if( strcmp(opType,"LoadF")==0 )  return Form::idealF;
 258   if( strcmp(opType,"LoadI")==0 )  return Form::idealI;
 259   if( strcmp(opType,"LoadKlass")==0 )  return Form::idealP;
 260   if( strcmp(opType,"LoadNKlass")==0 ) return Form::idealNKlass;
 261   if( strcmp(opType,"LoadL")==0 )  return Form::idealL;
 262   if( strcmp(opType,"LoadL_unaligned")==0 )  return Form::idealL;
 263   if( strcmp(opType,"LoadPLocked")==0 )  return Form::idealP;
 264   if( strcmp(opType,"LoadP")==0 )  return Form::idealP;
 265   if( strcmp(opType,"LoadN")==0 )  return Form::idealN;
 266   if( strcmp(opType,"LoadRange")==0 )  return Form::idealI;
 267   if( strcmp(opType,"LoadS")==0 )  return Form::idealS;
 268   if( strcmp(opType,"LoadVector")==0 )  return Form::idealV;
 269   assert( strcmp(opType,"Load") != 0, "Must type Loads" );
 270   return Form::none;
 271 }
 272 
 273 Form::DataType Form::is_store_to_memory(const char *opType) const {


 274   if( strcmp(opType,"StoreB")==0)  return Form::idealB;
 275   if( strcmp(opType,"StoreCM")==0) return Form::idealB;
 276   if( strcmp(opType,"StoreC")==0)  return Form::idealC;
 277   if( strcmp(opType,"StoreD")==0)  return Form::idealD;
 278   if( strcmp(opType,"StoreF")==0)  return Form::idealF;
 279   if( strcmp(opType,"StoreI")==0)  return Form::idealI;
 280   if( strcmp(opType,"StoreL")==0)  return Form::idealL;
 281   if( strcmp(opType,"StoreP")==0)  return Form::idealP;
 282   if( strcmp(opType,"StoreN")==0)  return Form::idealN;
 283   if( strcmp(opType,"StoreNKlass")==0)  return Form::idealNKlass;
 284   if( strcmp(opType,"StoreVector")==0 )  return Form::idealV;
 285   assert( strcmp(opType,"Store") != 0, "Must type Stores" );
 286   return Form::none;
 287 }
 288 
 289 Form::InterfaceType Form::interface_type(FormDict &globals) const {
 290   return Form::no_interface;
 291 }
 292 
 293 //------------------------------FormList---------------------------------------


   1 /*
   2  * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *


 254   if( strcmp(opType,"LoadUS")==0 )  return Form::idealC;
 255   if( strcmp(opType,"LoadD")==0 )  return Form::idealD;
 256   if( strcmp(opType,"LoadD_unaligned")==0 )  return Form::idealD;
 257   if( strcmp(opType,"LoadF")==0 )  return Form::idealF;
 258   if( strcmp(opType,"LoadI")==0 )  return Form::idealI;
 259   if( strcmp(opType,"LoadKlass")==0 )  return Form::idealP;
 260   if( strcmp(opType,"LoadNKlass")==0 ) return Form::idealNKlass;
 261   if( strcmp(opType,"LoadL")==0 )  return Form::idealL;
 262   if( strcmp(opType,"LoadL_unaligned")==0 )  return Form::idealL;
 263   if( strcmp(opType,"LoadPLocked")==0 )  return Form::idealP;
 264   if( strcmp(opType,"LoadP")==0 )  return Form::idealP;
 265   if( strcmp(opType,"LoadN")==0 )  return Form::idealN;
 266   if( strcmp(opType,"LoadRange")==0 )  return Form::idealI;
 267   if( strcmp(opType,"LoadS")==0 )  return Form::idealS;
 268   if( strcmp(opType,"LoadVector")==0 )  return Form::idealV;
 269   assert( strcmp(opType,"Load") != 0, "Must type Loads" );
 270   return Form::none;
 271 }
 272 
 273 Form::DataType Form::is_store_to_memory(const char *opType) const {
 274   if( strcmp(opType,"StoreZ0")==0) return Form::idealB;
 275   if( strcmp(opType,"StoreZ1")==0) return Form::idealB;
 276   if( strcmp(opType,"StoreB")==0)  return Form::idealB;
 277   if( strcmp(opType,"StoreCM")==0) return Form::idealB;
 278   if( strcmp(opType,"StoreC")==0)  return Form::idealC;
 279   if( strcmp(opType,"StoreD")==0)  return Form::idealD;
 280   if( strcmp(opType,"StoreF")==0)  return Form::idealF;
 281   if( strcmp(opType,"StoreI")==0)  return Form::idealI;
 282   if( strcmp(opType,"StoreL")==0)  return Form::idealL;
 283   if( strcmp(opType,"StoreP")==0)  return Form::idealP;
 284   if( strcmp(opType,"StoreN")==0)  return Form::idealN;
 285   if( strcmp(opType,"StoreNKlass")==0)  return Form::idealNKlass;
 286   if( strcmp(opType,"StoreVector")==0 )  return Form::idealV;
 287   assert( strcmp(opType,"Store") != 0, "Must type Stores" );
 288   return Form::none;
 289 }
 290 
 291 Form::InterfaceType Form::interface_type(FormDict &globals) const {
 292   return Form::no_interface;
 293 }
 294 
 295 //------------------------------FormList---------------------------------------


< prev index next >