< prev index next >

src/hotspot/share/opto/subnode.hpp

Print this page
*** 546,6 ***
--- 546,26 ---
    virtual int Opcode() const;
    const Type *bottom_type() const { return TypeInt::SHORT; }
    virtual uint ideal_reg() const { return Op_RegI; }
  };
  
+ //-------------------------------ReverseINode--------------------------------
+ // reverse bits of an int
+ class ReverseINode : public Node {
+ public:
+   ReverseINode(Node *c, Node *in1) : Node(c, in1) {}
+   virtual int Opcode() const;
+   const Type *bottom_type() const { return TypeInt::INT; }
+   virtual uint ideal_reg() const { return Op_RegI; }
+ };
+ 
+ //-------------------------------ReverseLNode--------------------------------
+ // reverse bits of a long
+ class ReverseLNode : public Node {
+ public:
+   ReverseLNode(Node *c, Node *in1) : Node(c, in1) {}
+   virtual int Opcode() const;
+   const Type *bottom_type() const { return TypeLong::LONG; }
+   virtual uint ideal_reg() const { return Op_RegL; }
+ };
+ 
  #endif // SHARE_OPTO_SUBNODE_HPP
< prev index next >