< prev index next >

src/share/vm/opto/convertnode.hpp

Print this page
rev 8739 : 8004073: Implement C2 Ideal node specific dump() method
Summary: add Node::dump_rel() to dump a node and its related nodes (the notion of "related" depends on the node at hand); add Node::dump_comp() to dump a node in compact representation; add Node::dump_rel_comp() to dump a node and its related nodes in compact representation; add the required machinery; extend some C2 IR nodes with compact and related dumping
Reviewed-by:
   1 /*
   2  * Copyright (c) 2014, 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  *


 180 class ConvL2INode : public Node {
 181   public:
 182   ConvL2INode( Node *in1 ) : Node(0,in1) {}
 183   virtual int Opcode() const;
 184   virtual const Type *bottom_type() const { return TypeInt::INT; }
 185   virtual Node *Identity( PhaseTransform *phase );
 186   virtual const Type *Value( PhaseTransform *phase ) const;
 187   virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
 188   virtual uint  ideal_reg() const { return Op_RegI; }
 189 };
 190 
 191 //-----------------------------RoundFloatNode----------------------------------
 192 class RoundFloatNode: public Node {
 193   public:
 194   RoundFloatNode(Node* c, Node *in1): Node(c, in1) {}
 195   virtual int   Opcode() const;
 196   virtual const Type *bottom_type() const { return Type::FLOAT; }
 197   virtual uint  ideal_reg() const { return Op_RegF; }
 198   virtual Node *Identity( PhaseTransform *phase );
 199   virtual const Type *Value( PhaseTransform *phase ) const;




 200 };
 201 
 202 
 203 //-----------------------------RoundDoubleNode---------------------------------
 204 class RoundDoubleNode: public Node {
 205   public:
 206   RoundDoubleNode(Node* c, Node *in1): Node(c, in1) {}
 207   virtual int   Opcode() const;
 208   virtual const Type *bottom_type() const { return Type::DOUBLE; }
 209   virtual uint  ideal_reg() const { return Op_RegD; }
 210   virtual Node *Identity( PhaseTransform *phase );
 211   virtual const Type *Value( PhaseTransform *phase ) const;




 212 };
 213 
 214 
 215 #endif // SHARE_VM_OPTO_CONVERTNODE_HPP
   1 /*
   2  * Copyright (c) 2014, 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  *


 180 class ConvL2INode : public Node {
 181   public:
 182   ConvL2INode( Node *in1 ) : Node(0,in1) {}
 183   virtual int Opcode() const;
 184   virtual const Type *bottom_type() const { return TypeInt::INT; }
 185   virtual Node *Identity( PhaseTransform *phase );
 186   virtual const Type *Value( PhaseTransform *phase ) const;
 187   virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
 188   virtual uint  ideal_reg() const { return Op_RegI; }
 189 };
 190 
 191 //-----------------------------RoundFloatNode----------------------------------
 192 class RoundFloatNode: public Node {
 193   public:
 194   RoundFloatNode(Node* c, Node *in1): Node(c, in1) {}
 195   virtual int   Opcode() const;
 196   virtual const Type *bottom_type() const { return Type::FLOAT; }
 197   virtual uint  ideal_reg() const { return Op_RegF; }
 198   virtual Node *Identity( PhaseTransform *phase );
 199   virtual const Type *Value( PhaseTransform *phase ) const;
 200 
 201 #ifndef PRODUCT
 202   REL_IN_DATA_OUT_1;
 203 #endif
 204 };
 205 
 206 
 207 //-----------------------------RoundDoubleNode---------------------------------
 208 class RoundDoubleNode: public Node {
 209   public:
 210   RoundDoubleNode(Node* c, Node *in1): Node(c, in1) {}
 211   virtual int   Opcode() const;
 212   virtual const Type *bottom_type() const { return Type::DOUBLE; }
 213   virtual uint  ideal_reg() const { return Op_RegD; }
 214   virtual Node *Identity( PhaseTransform *phase );
 215   virtual const Type *Value( PhaseTransform *phase ) const;
 216 
 217 #ifndef PRODUCT
 218   REL_IN_DATA_OUT_1;
 219 #endif
 220 };
 221 
 222 
 223 #endif // SHARE_VM_OPTO_CONVERTNODE_HPP
< prev index next >