src/share/vm/adlc/Doc/Syntax.doc
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 8134898 Sdiff src/share/vm/adlc/Doc

src/share/vm/adlc/Doc/Syntax.doc

Print this page


   1 #
   2 # Copyright (c) 1997, 1998, 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 JavaSoft HotSpot Architecture Description Language Syntax Specification
  26 
  27 Version 0.4 - September 19, 1997
  28 
  29 A. Introduction
  30 
  31 This document specifies the syntax and associated semantics for the JavaSoft
  32 HotSpot Architecture Description Language.  This language is used to describe
  33 the architecture of a processor, and is the input to the ADL Compiler.  The
  34 ADL Compiler compiles an ADL file into code which is incorporated into the
  35 Optimizing Just In Time Compiler (OJIT) to generate efficient and correct code
  36 for the target architecture.  The ADL describes three bassic different types
  37 of architectural features.  It describes the instruction set (and associated
  38 operands) of the target architecture.  It describes the register set of the
  39 target architecture along with relevant information for the register allocator.
  40 Finally, it describes the architecture's pipeline for scheduling purposes.
  41 The ADL is used to create an architecture description file for a target
  42 architecture.  The architecture description file along with some additional
  43 target specific oracles, written in C++, represent the principal effort in
  44 porting the OJIT to a new target architecture.
  45 
  46 
  47 B. Example Syntax
  48 
  49         1. Instruction/Operand Syntax for Matching and Encoding
  50 
  51 // Create a cost attribute for all operands, and specify the default value
  52 op_attrib  op_cost(10); 
  53 
  54 // Create a cost attribute for all instruction, and specify a default value
  55 ins_attrib ins_cost(100);
  56 


   1 #
   2 # Copyright (c) 1997, 2015, 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 JavaSoft HotSpot Architecture Description Language Syntax Specification
  26 
  27 Version 0.4 - September 19, 1997
  28 
  29 A. Introduction
  30 
  31 This document specifies the syntax and associated semantics for the JavaSoft
  32 HotSpot Architecture Description Language.  This language is used to describe
  33 the architecture of a processor, and is the input to the ADL Compiler.  The
  34 ADL Compiler compiles an ADL file into code which is incorporated into the
  35 Optimizing Just In Time Compiler (OJIT) to generate efficient and correct code
  36 for the target architecture.  The ADL describes three basic different types
  37 of architectural features.  It describes the instruction set (and associated
  38 operands) of the target architecture.  It describes the register set of the
  39 target architecture along with relevant information for the register allocator.
  40 Finally, it describes the architecture's pipeline for scheduling purposes.
  41 The ADL is used to create an architecture description file for a target
  42 architecture.  The architecture description file along with some additional
  43 target specific oracles, written in C++, represent the principal effort in
  44 porting the OJIT to a new target architecture.
  45 
  46 
  47 B. Example Syntax
  48 
  49         1. Instruction/Operand Syntax for Matching and Encoding
  50 
  51 // Create a cost attribute for all operands, and specify the default value
  52 op_attrib  op_cost(10); 
  53 
  54 // Create a cost attribute for all instruction, and specify a default value
  55 ins_attrib ins_cost(100);
  56 


src/share/vm/adlc/Doc/Syntax.doc
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File