< prev index next >

src/share/vm/opto/convertnode.hpp

Print this page

        

*** 32,42 **** //------------------------------Conv2BNode------------------------------------- // Convert int/pointer to a Boolean. Map zero to zero, all else to 1. class Conv2BNode : public Node { public: Conv2BNode( Node *i ) : Node(0,i) {} ! virtual int Opcode() const; virtual const Type *bottom_type() const { return TypeInt::BOOL; } virtual Node* Identity(PhaseGVN* phase); virtual const Type* Value(PhaseGVN* phase) const; virtual uint ideal_reg() const { return Op_RegI; } }; --- 32,42 ---- //------------------------------Conv2BNode------------------------------------- // Convert int/pointer to a Boolean. Map zero to zero, all else to 1. class Conv2BNode : public Node { public: Conv2BNode( Node *i ) : Node(0,i) {} ! virtual uint Opcode() const; virtual const Type *bottom_type() const { return TypeInt::BOOL; } virtual Node* Identity(PhaseGVN* phase); virtual const Type* Value(PhaseGVN* phase) const; virtual uint ideal_reg() const { return Op_RegI; } };
*** 45,55 **** //------------------------------ConvD2FNode------------------------------------ // Convert double to float class ConvD2FNode : public Node { public: ConvD2FNode( Node *in1 ) : Node(0,in1) {} ! virtual int Opcode() const; virtual const Type *bottom_type() const { return Type::FLOAT; } virtual const Type* Value(PhaseGVN* phase) const; virtual Node* Identity(PhaseGVN* phase); virtual uint ideal_reg() const { return Op_RegF; } }; --- 45,55 ---- //------------------------------ConvD2FNode------------------------------------ // Convert double to float class ConvD2FNode : public Node { public: ConvD2FNode( Node *in1 ) : Node(0,in1) {} ! virtual uint Opcode() const; virtual const Type *bottom_type() const { return Type::FLOAT; } virtual const Type* Value(PhaseGVN* phase) const; virtual Node* Identity(PhaseGVN* phase); virtual uint ideal_reg() const { return Op_RegF; } };
*** 57,67 **** //------------------------------ConvD2INode------------------------------------ // Convert Double to Integer class ConvD2INode : public Node { public: ConvD2INode( Node *in1 ) : Node(0,in1) {} ! virtual int Opcode() const; virtual const Type *bottom_type() const { return TypeInt::INT; } virtual const Type* Value(PhaseGVN* phase) const; virtual Node* Identity(PhaseGVN* phase); virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); virtual uint ideal_reg() const { return Op_RegI; } --- 57,67 ---- //------------------------------ConvD2INode------------------------------------ // Convert Double to Integer class ConvD2INode : public Node { public: ConvD2INode( Node *in1 ) : Node(0,in1) {} ! virtual uint Opcode() const; virtual const Type *bottom_type() const { return TypeInt::INT; } virtual const Type* Value(PhaseGVN* phase) const; virtual Node* Identity(PhaseGVN* phase); virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); virtual uint ideal_reg() const { return Op_RegI; }
*** 70,80 **** //------------------------------ConvD2LNode------------------------------------ // Convert Double to Long class ConvD2LNode : public Node { public: ConvD2LNode( Node *dbl ) : Node(0,dbl) {} ! virtual int Opcode() const; virtual const Type *bottom_type() const { return TypeLong::LONG; } virtual const Type* Value(PhaseGVN* phase) const; virtual Node* Identity(PhaseGVN* phase); virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); virtual uint ideal_reg() const { return Op_RegL; } --- 70,80 ---- //------------------------------ConvD2LNode------------------------------------ // Convert Double to Long class ConvD2LNode : public Node { public: ConvD2LNode( Node *dbl ) : Node(0,dbl) {} ! virtual uint Opcode() const; virtual const Type *bottom_type() const { return TypeLong::LONG; } virtual const Type* Value(PhaseGVN* phase) const; virtual Node* Identity(PhaseGVN* phase); virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); virtual uint ideal_reg() const { return Op_RegL; }
*** 83,104 **** //------------------------------ConvF2DNode------------------------------------ // Convert Float to a Double. class ConvF2DNode : public Node { public: ConvF2DNode( Node *in1 ) : Node(0,in1) {} ! virtual int Opcode() const; virtual const Type *bottom_type() const { return Type::DOUBLE; } virtual const Type* Value(PhaseGVN* phase) const; virtual uint ideal_reg() const { return Op_RegD; } }; //------------------------------ConvF2INode------------------------------------ // Convert float to integer class ConvF2INode : public Node { public: ConvF2INode( Node *in1 ) : Node(0,in1) {} ! virtual int Opcode() const; virtual const Type *bottom_type() const { return TypeInt::INT; } virtual const Type* Value(PhaseGVN* phase) const; virtual Node* Identity(PhaseGVN* phase); virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); virtual uint ideal_reg() const { return Op_RegI; } --- 83,104 ---- //------------------------------ConvF2DNode------------------------------------ // Convert Float to a Double. class ConvF2DNode : public Node { public: ConvF2DNode( Node *in1 ) : Node(0,in1) {} ! virtual uint Opcode() const; virtual const Type *bottom_type() const { return Type::DOUBLE; } virtual const Type* Value(PhaseGVN* phase) const; virtual uint ideal_reg() const { return Op_RegD; } }; //------------------------------ConvF2INode------------------------------------ // Convert float to integer class ConvF2INode : public Node { public: ConvF2INode( Node *in1 ) : Node(0,in1) {} ! virtual uint Opcode() const; virtual const Type *bottom_type() const { return TypeInt::INT; } virtual const Type* Value(PhaseGVN* phase) const; virtual Node* Identity(PhaseGVN* phase); virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); virtual uint ideal_reg() const { return Op_RegI; }
*** 107,117 **** //------------------------------ConvF2LNode------------------------------------ // Convert float to long class ConvF2LNode : public Node { public: ConvF2LNode( Node *in1 ) : Node(0,in1) {} ! virtual int Opcode() const; virtual const Type *bottom_type() const { return TypeLong::LONG; } virtual const Type* Value(PhaseGVN* phase) const; virtual Node* Identity(PhaseGVN* phase); virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); virtual uint ideal_reg() const { return Op_RegL; } --- 107,117 ---- //------------------------------ConvF2LNode------------------------------------ // Convert float to long class ConvF2LNode : public Node { public: ConvF2LNode( Node *in1 ) : Node(0,in1) {} ! virtual uint Opcode() const; virtual const Type *bottom_type() const { return TypeLong::LONG; } virtual const Type* Value(PhaseGVN* phase) const; virtual Node* Identity(PhaseGVN* phase); virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); virtual uint ideal_reg() const { return Op_RegL; }
*** 120,141 **** //------------------------------ConvI2DNode------------------------------------ // Convert Integer to Double class ConvI2DNode : public Node { public: ConvI2DNode( Node *in1 ) : Node(0,in1) {} ! virtual int Opcode() const; virtual const Type *bottom_type() const { return Type::DOUBLE; } virtual const Type* Value(PhaseGVN* phase) const; virtual uint ideal_reg() const { return Op_RegD; } }; //------------------------------ConvI2FNode------------------------------------ // Convert Integer to Float class ConvI2FNode : public Node { public: ConvI2FNode( Node *in1 ) : Node(0,in1) {} ! virtual int Opcode() const; virtual const Type *bottom_type() const { return Type::FLOAT; } virtual const Type* Value(PhaseGVN* phase) const; virtual Node* Identity(PhaseGVN* phase); virtual uint ideal_reg() const { return Op_RegF; } }; --- 120,141 ---- //------------------------------ConvI2DNode------------------------------------ // Convert Integer to Double class ConvI2DNode : public Node { public: ConvI2DNode( Node *in1 ) : Node(0,in1) {} ! virtual uint Opcode() const; virtual const Type *bottom_type() const { return Type::DOUBLE; } virtual const Type* Value(PhaseGVN* phase) const; virtual uint ideal_reg() const { return Op_RegD; } }; //------------------------------ConvI2FNode------------------------------------ // Convert Integer to Float class ConvI2FNode : public Node { public: ConvI2FNode( Node *in1 ) : Node(0,in1) {} ! virtual uint Opcode() const; virtual const Type *bottom_type() const { return Type::FLOAT; } virtual const Type* Value(PhaseGVN* phase) const; virtual Node* Identity(PhaseGVN* phase); virtual uint ideal_reg() const { return Op_RegF; } };
*** 145,188 **** class ConvI2LNode : public TypeNode { public: ConvI2LNode(Node *in1, const TypeLong* t = TypeLong::INT) : TypeNode(t, 2) { init_req(1, in1); } ! virtual int Opcode() const; virtual const Type* Value(PhaseGVN* phase) const; virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); virtual uint ideal_reg() const { return Op_RegL; } }; //------------------------------ConvL2DNode------------------------------------ // Convert Long to Double class ConvL2DNode : public Node { public: ConvL2DNode( Node *in1 ) : Node(0,in1) {} ! virtual int Opcode() const; virtual const Type *bottom_type() const { return Type::DOUBLE; } virtual const Type* Value(PhaseGVN* phase) const; virtual uint ideal_reg() const { return Op_RegD; } }; //------------------------------ConvL2FNode------------------------------------ // Convert Long to Float class ConvL2FNode : public Node { public: ConvL2FNode( Node *in1 ) : Node(0,in1) {} ! virtual int Opcode() const; virtual const Type *bottom_type() const { return Type::FLOAT; } virtual const Type* Value(PhaseGVN* phase) const; virtual uint ideal_reg() const { return Op_RegF; } }; //------------------------------ConvL2INode------------------------------------ // Convert long to integer class ConvL2INode : public Node { public: ConvL2INode( Node *in1 ) : Node(0,in1) {} ! virtual int Opcode() const; virtual const Type *bottom_type() const { return TypeInt::INT; } virtual Node* Identity(PhaseGVN* phase); virtual const Type* Value(PhaseGVN* phase) const; virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); virtual uint ideal_reg() const { return Op_RegI; } --- 145,188 ---- class ConvI2LNode : public TypeNode { public: ConvI2LNode(Node *in1, const TypeLong* t = TypeLong::INT) : TypeNode(t, 2) { init_req(1, in1); } ! virtual uint Opcode() const; virtual const Type* Value(PhaseGVN* phase) const; virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); virtual uint ideal_reg() const { return Op_RegL; } }; //------------------------------ConvL2DNode------------------------------------ // Convert Long to Double class ConvL2DNode : public Node { public: ConvL2DNode( Node *in1 ) : Node(0,in1) {} ! virtual uint Opcode() const; virtual const Type *bottom_type() const { return Type::DOUBLE; } virtual const Type* Value(PhaseGVN* phase) const; virtual uint ideal_reg() const { return Op_RegD; } }; //------------------------------ConvL2FNode------------------------------------ // Convert Long to Float class ConvL2FNode : public Node { public: ConvL2FNode( Node *in1 ) : Node(0,in1) {} ! virtual uint Opcode() const; virtual const Type *bottom_type() const { return Type::FLOAT; } virtual const Type* Value(PhaseGVN* phase) const; virtual uint ideal_reg() const { return Op_RegF; } }; //------------------------------ConvL2INode------------------------------------ // Convert long to integer class ConvL2INode : public Node { public: ConvL2INode( Node *in1 ) : Node(0,in1) {} ! virtual uint Opcode() const; virtual const Type *bottom_type() const { return TypeInt::INT; } virtual Node* Identity(PhaseGVN* phase); virtual const Type* Value(PhaseGVN* phase) const; virtual Node *Ideal(PhaseGVN *phase, bool can_reshape); virtual uint ideal_reg() const { return Op_RegI; }
*** 190,200 **** //-----------------------------RoundFloatNode---------------------------------- class RoundFloatNode: public Node { public: RoundFloatNode(Node* c, Node *in1): Node(c, in1) {} ! virtual int Opcode() const; virtual const Type *bottom_type() const { return Type::FLOAT; } virtual uint ideal_reg() const { return Op_RegF; } virtual Node* Identity(PhaseGVN* phase); virtual const Type* Value(PhaseGVN* phase) const; }; --- 190,200 ---- //-----------------------------RoundFloatNode---------------------------------- class RoundFloatNode: public Node { public: RoundFloatNode(Node* c, Node *in1): Node(c, in1) {} ! virtual uint Opcode() const; virtual const Type *bottom_type() const { return Type::FLOAT; } virtual uint ideal_reg() const { return Op_RegF; } virtual Node* Identity(PhaseGVN* phase); virtual const Type* Value(PhaseGVN* phase) const; };
*** 202,212 **** //-----------------------------RoundDoubleNode--------------------------------- class RoundDoubleNode: public Node { public: RoundDoubleNode(Node* c, Node *in1): Node(c, in1) {} ! virtual int Opcode() const; virtual const Type *bottom_type() const { return Type::DOUBLE; } virtual uint ideal_reg() const { return Op_RegD; } virtual Node* Identity(PhaseGVN* phase); virtual const Type* Value(PhaseGVN* phase) const; }; --- 202,212 ---- //-----------------------------RoundDoubleNode--------------------------------- class RoundDoubleNode: public Node { public: RoundDoubleNode(Node* c, Node *in1): Node(c, in1) {} ! virtual uint Opcode() const; virtual const Type *bottom_type() const { return Type::DOUBLE; } virtual uint ideal_reg() const { return Op_RegD; } virtual Node* Identity(PhaseGVN* phase); virtual const Type* Value(PhaseGVN* phase) const; };
< prev index next >