< prev index next >

src/share/vm/opto/addnode.hpp

Print this page

        

*** 73,83 **** //------------------------------AddINode--------------------------------------- // Add 2 integers class AddINode : public AddNode { public: AddINode( Node *in1, Node *in2 ) : AddNode(in1,in2) {} ! virtual int Opcode() const; virtual const Type *add_ring( const Type *, const Type * ) const; virtual const Type *add_id() const { return TypeInt::ZERO; } virtual const Type *bottom_type() const { return TypeInt::INT; } virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); virtual Node* Identity(PhaseGVN* phase); --- 73,83 ---- //------------------------------AddINode--------------------------------------- // Add 2 integers class AddINode : public AddNode { public: AddINode( Node *in1, Node *in2 ) : AddNode(in1,in2) {} ! virtual uint Opcode() const; virtual const Type *add_ring( const Type *, const Type * ) const; virtual const Type *add_id() const { return TypeInt::ZERO; } virtual const Type *bottom_type() const { return TypeInt::INT; } virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); virtual Node* Identity(PhaseGVN* phase);
*** 87,97 **** //------------------------------AddLNode--------------------------------------- // Add 2 longs class AddLNode : public AddNode { public: AddLNode( Node *in1, Node *in2 ) : AddNode(in1,in2) {} ! virtual int Opcode() const; virtual const Type *add_ring( const Type *, const Type * ) const; virtual const Type *add_id() const { return TypeLong::ZERO; } virtual const Type *bottom_type() const { return TypeLong::LONG; } virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); virtual Node* Identity(PhaseGVN* phase); --- 87,97 ---- //------------------------------AddLNode--------------------------------------- // Add 2 longs class AddLNode : public AddNode { public: AddLNode( Node *in1, Node *in2 ) : AddNode(in1,in2) {} ! virtual uint Opcode() const; virtual const Type *add_ring( const Type *, const Type * ) const; virtual const Type *add_id() const { return TypeLong::ZERO; } virtual const Type *bottom_type() const { return TypeLong::LONG; } virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); virtual Node* Identity(PhaseGVN* phase);
*** 101,111 **** //------------------------------AddFNode--------------------------------------- // Add 2 floats class AddFNode : public AddNode { public: AddFNode( Node *in1, Node *in2 ) : AddNode(in1,in2) {} ! virtual int Opcode() const; virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); virtual const Type *add_of_identity( const Type *t1, const Type *t2 ) const; virtual const Type *add_ring( const Type *, const Type * ) const; virtual const Type *add_id() const { return TypeF::ZERO; } virtual const Type *bottom_type() const { return Type::FLOAT; } --- 101,111 ---- //------------------------------AddFNode--------------------------------------- // Add 2 floats class AddFNode : public AddNode { public: AddFNode( Node *in1, Node *in2 ) : AddNode(in1,in2) {} ! virtual uint Opcode() const; virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); virtual const Type *add_of_identity( const Type *t1, const Type *t2 ) const; virtual const Type *add_ring( const Type *, const Type * ) const; virtual const Type *add_id() const { return TypeF::ZERO; } virtual const Type *bottom_type() const { return Type::FLOAT; }
*** 116,126 **** //------------------------------AddDNode--------------------------------------- // Add 2 doubles class AddDNode : public AddNode { public: AddDNode( Node *in1, Node *in2 ) : AddNode(in1,in2) {} ! virtual int Opcode() const; virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); virtual const Type *add_of_identity( const Type *t1, const Type *t2 ) const; virtual const Type *add_ring( const Type *, const Type * ) const; virtual const Type *add_id() const { return TypeD::ZERO; } virtual const Type *bottom_type() const { return Type::DOUBLE; } --- 116,126 ---- //------------------------------AddDNode--------------------------------------- // Add 2 doubles class AddDNode : public AddNode { public: AddDNode( Node *in1, Node *in2 ) : AddNode(in1,in2) {} ! virtual uint Opcode() const; virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); virtual const Type *add_of_identity( const Type *t1, const Type *t2 ) const; virtual const Type *add_ring( const Type *, const Type * ) const; virtual const Type *add_id() const { return TypeD::ZERO; } virtual const Type *bottom_type() const { return Type::DOUBLE; }
*** 139,149 **** Address, // Actually address, derived from base Offset } ; // Offset added to address AddPNode( Node *base, Node *ptr, Node *off ) : Node(0,base,ptr,off) { init_class_id(Class_AddP); } ! virtual int Opcode() const; virtual Node* Identity(PhaseGVN* phase); virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); virtual const Type* Value(PhaseGVN* phase) const; virtual const Type *bottom_type() const; virtual uint ideal_reg() const { return Op_RegP; } --- 139,149 ---- Address, // Actually address, derived from base Offset } ; // Offset added to address AddPNode( Node *base, Node *ptr, Node *off ) : Node(0,base,ptr,off) { init_class_id(Class_AddP); } ! virtual uint Opcode() const; virtual Node* Identity(PhaseGVN* phase); virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); virtual const Type* Value(PhaseGVN* phase) const; virtual const Type *bottom_type() const; virtual uint ideal_reg() const { return Op_RegP; }
*** 164,174 **** // Logically OR 2 integers. Included with the ADD nodes because it inherits // all the behavior of addition on a ring. class OrINode : public AddNode { public: OrINode( Node *in1, Node *in2 ) : AddNode(in1,in2) {} ! virtual int Opcode() const; virtual const Type *add_ring( const Type *, const Type * ) const; virtual const Type *add_id() const { return TypeInt::ZERO; } virtual const Type *bottom_type() const { return TypeInt::INT; } virtual Node* Identity(PhaseGVN* phase); virtual uint ideal_reg() const { return Op_RegI; } --- 164,174 ---- // Logically OR 2 integers. Included with the ADD nodes because it inherits // all the behavior of addition on a ring. class OrINode : public AddNode { public: OrINode( Node *in1, Node *in2 ) : AddNode(in1,in2) {} ! virtual uint Opcode() const; virtual const Type *add_ring( const Type *, const Type * ) const; virtual const Type *add_id() const { return TypeInt::ZERO; } virtual const Type *bottom_type() const { return TypeInt::INT; } virtual Node* Identity(PhaseGVN* phase); virtual uint ideal_reg() const { return Op_RegI; }
*** 178,188 **** // Logically OR 2 longs. Included with the ADD nodes because it inherits // all the behavior of addition on a ring. class OrLNode : public AddNode { public: OrLNode( Node *in1, Node *in2 ) : AddNode(in1,in2) {} ! virtual int Opcode() const; virtual const Type *add_ring( const Type *, const Type * ) const; virtual const Type *add_id() const { return TypeLong::ZERO; } virtual const Type *bottom_type() const { return TypeLong::LONG; } virtual Node* Identity(PhaseGVN* phase); virtual uint ideal_reg() const { return Op_RegL; } --- 178,188 ---- // Logically OR 2 longs. Included with the ADD nodes because it inherits // all the behavior of addition on a ring. class OrLNode : public AddNode { public: OrLNode( Node *in1, Node *in2 ) : AddNode(in1,in2) {} ! virtual uint Opcode() const; virtual const Type *add_ring( const Type *, const Type * ) const; virtual const Type *add_id() const { return TypeLong::ZERO; } virtual const Type *bottom_type() const { return TypeLong::LONG; } virtual Node* Identity(PhaseGVN* phase); virtual uint ideal_reg() const { return Op_RegL; }
*** 191,201 **** //------------------------------XorINode--------------------------------------- // XOR'ing 2 integers class XorINode : public AddNode { public: XorINode( Node *in1, Node *in2 ) : AddNode(in1,in2) {} ! virtual int Opcode() const; virtual const Type *add_ring( const Type *, const Type * ) const; virtual const Type *add_id() const { return TypeInt::ZERO; } virtual const Type *bottom_type() const { return TypeInt::INT; } virtual uint ideal_reg() const { return Op_RegI; } }; --- 191,201 ---- //------------------------------XorINode--------------------------------------- // XOR'ing 2 integers class XorINode : public AddNode { public: XorINode( Node *in1, Node *in2 ) : AddNode(in1,in2) {} ! virtual uint Opcode() const; virtual const Type *add_ring( const Type *, const Type * ) const; virtual const Type *add_id() const { return TypeInt::ZERO; } virtual const Type *bottom_type() const { return TypeInt::INT; } virtual uint ideal_reg() const { return Op_RegI; } };
*** 203,213 **** //------------------------------XorINode--------------------------------------- // XOR'ing 2 longs class XorLNode : public AddNode { public: XorLNode( Node *in1, Node *in2 ) : AddNode(in1,in2) {} ! virtual int Opcode() const; virtual const Type *add_ring( const Type *, const Type * ) const; virtual const Type *add_id() const { return TypeLong::ZERO; } virtual const Type *bottom_type() const { return TypeLong::LONG; } virtual uint ideal_reg() const { return Op_RegL; } }; --- 203,213 ---- //------------------------------XorINode--------------------------------------- // XOR'ing 2 longs class XorLNode : public AddNode { public: XorLNode( Node *in1, Node *in2 ) : AddNode(in1,in2) {} ! virtual uint Opcode() const; virtual const Type *add_ring( const Type *, const Type * ) const; virtual const Type *add_id() const { return TypeLong::ZERO; } virtual const Type *bottom_type() const { return TypeLong::LONG; } virtual uint ideal_reg() const { return Op_RegL; } };
*** 217,236 **** // all the behavior of addition on a ring. Only new thing is that we allow // 2 equal inputs to be equal. class MaxNode : public AddNode { public: MaxNode( Node *in1, Node *in2 ) : AddNode(in1,in2) {} ! virtual int Opcode() const = 0; }; //------------------------------MaxINode--------------------------------------- // Maximum of 2 integers. Included with the ADD nodes because it inherits // all the behavior of addition on a ring. class MaxINode : public MaxNode { public: MaxINode( Node *in1, Node *in2 ) : MaxNode(in1,in2) {} ! virtual int Opcode() const; virtual const Type *add_ring( const Type *, const Type * ) const; virtual const Type *add_id() const { return TypeInt::make(min_jint); } virtual const Type *bottom_type() const { return TypeInt::INT; } virtual uint ideal_reg() const { return Op_RegI; } }; --- 217,236 ---- // all the behavior of addition on a ring. Only new thing is that we allow // 2 equal inputs to be equal. class MaxNode : public AddNode { public: MaxNode( Node *in1, Node *in2 ) : AddNode(in1,in2) {} ! virtual uint Opcode() const = 0; }; //------------------------------MaxINode--------------------------------------- // Maximum of 2 integers. Included with the ADD nodes because it inherits // all the behavior of addition on a ring. class MaxINode : public MaxNode { public: MaxINode( Node *in1, Node *in2 ) : MaxNode(in1,in2) {} ! virtual uint Opcode() const; virtual const Type *add_ring( const Type *, const Type * ) const; virtual const Type *add_id() const { return TypeInt::make(min_jint); } virtual const Type *bottom_type() const { return TypeInt::INT; } virtual uint ideal_reg() const { return Op_RegI; } };
*** 239,249 **** // MINimum of 2 integers. Included with the ADD nodes because it inherits // all the behavior of addition on a ring. class MinINode : public MaxNode { public: MinINode( Node *in1, Node *in2 ) : MaxNode(in1,in2) {} ! virtual int Opcode() const; virtual const Type *add_ring( const Type *, const Type * ) const; virtual const Type *add_id() const { return TypeInt::make(max_jint); } virtual const Type *bottom_type() const { return TypeInt::INT; } virtual uint ideal_reg() const { return Op_RegI; } virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); --- 239,249 ---- // MINimum of 2 integers. Included with the ADD nodes because it inherits // all the behavior of addition on a ring. class MinINode : public MaxNode { public: MinINode( Node *in1, Node *in2 ) : MaxNode(in1,in2) {} ! virtual uint Opcode() const; virtual const Type *add_ring( const Type *, const Type * ) const; virtual const Type *add_id() const { return TypeInt::make(max_jint); } virtual const Type *bottom_type() const { return TypeInt::INT; } virtual uint ideal_reg() const { return Op_RegI; } virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
< prev index next >