src/share/vm/adlc/formssel.hpp

Print this page


   1 /*
   2  * Copyright (c) 1998, 2009, 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  *
  23  */
  24 



  25 // FORMSSEL.HPP - ADL Parser Instruction Selection Forms Classes
  26 
  27 // Class List
  28 class Form;
  29 class InstructForm;
  30 class MachNodeForm;
  31 class OperandForm;
  32 class OpClassForm;
  33 class AttributeForm;
  34 class RegisterForm;
  35 class PipelineForm;
  36 class SourceForm;
  37 class EncodeForm;
  38 class Component;
  39 class Constraint;
  40 class Predicate;
  41 class MatchRule;
  42 class Attribute;
  43 class Effect;
  44 class ExpandRule;


1045 };
1046 
1047 //------------------------------FormatRule-------------------------------------
1048 class FormatRule : public Form {
1049 private:
1050 
1051 public:
1052   // Public Data
1053   // There is an entry in _strings, perhaps NULL, that precedes each _rep_vars
1054   NameList  _strings;              // Strings passed through to tty->print
1055   NameList  _rep_vars;             // replacement variables
1056   char     *_temp;                 // String representing the assembly code
1057 
1058   // Public Methods
1059   FormatRule(char *temp);
1060   ~FormatRule();
1061 
1062   void dump();
1063   void output(FILE *fp);
1064 };


   1 /*
   2  * Copyright (c) 1998, 2010, 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  *
  23  */
  24 
  25 #ifndef SHARE_VM_ADLC_FORMSSEL_HPP
  26 #define SHARE_VM_ADLC_FORMSSEL_HPP
  27 
  28 // FORMSSEL.HPP - ADL Parser Instruction Selection Forms Classes
  29 
  30 // Class List
  31 class Form;
  32 class InstructForm;
  33 class MachNodeForm;
  34 class OperandForm;
  35 class OpClassForm;
  36 class AttributeForm;
  37 class RegisterForm;
  38 class PipelineForm;
  39 class SourceForm;
  40 class EncodeForm;
  41 class Component;
  42 class Constraint;
  43 class Predicate;
  44 class MatchRule;
  45 class Attribute;
  46 class Effect;
  47 class ExpandRule;


1048 };
1049 
1050 //------------------------------FormatRule-------------------------------------
1051 class FormatRule : public Form {
1052 private:
1053 
1054 public:
1055   // Public Data
1056   // There is an entry in _strings, perhaps NULL, that precedes each _rep_vars
1057   NameList  _strings;              // Strings passed through to tty->print
1058   NameList  _rep_vars;             // replacement variables
1059   char     *_temp;                 // String representing the assembly code
1060 
1061   // Public Methods
1062   FormatRule(char *temp);
1063   ~FormatRule();
1064 
1065   void dump();
1066   void output(FILE *fp);
1067 };
1068 
1069 #endif // SHARE_VM_ADLC_FORMSSEL_HPP