Mercurial > hg > graal-jvmci-8
comparison src/share/vm/opto/superword.hpp @ 18125:2a69cbe850a8
Reduce diff with upstream
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Mon, 20 Oct 2014 19:07:20 +0200 |
parents | 89152779163c |
children | 52b8826ef035 |
comparison
equal
deleted
inserted
replaced
18124:689092d5cf44 | 18125:2a69cbe850a8 |
---|---|
197 const Type* _velt_type; // vector element type | 197 const Type* _velt_type; // vector element type |
198 Node_List* _my_pack; // pack containing this node | 198 Node_List* _my_pack; // pack containing this node |
199 | 199 |
200 SWNodeInfo() : _alignment(-1), _depth(0), _velt_type(NULL), _my_pack(NULL) {} | 200 SWNodeInfo() : _alignment(-1), _depth(0), _velt_type(NULL), _my_pack(NULL) {} |
201 static const SWNodeInfo initial; | 201 static const SWNodeInfo initial; |
202 }; | |
203 | |
204 //------------------------------OrderedPair--------------------------- | |
205 // Ordered pair of Node*. | |
206 class OrderedPair VALUE_OBJ_CLASS_SPEC { | |
207 protected: | |
208 Node* _p1; | |
209 Node* _p2; | |
210 public: | |
211 OrderedPair() : _p1(NULL), _p2(NULL) {} | |
212 OrderedPair(Node* p1, Node* p2) { | |
213 if (p1->_idx < p2->_idx) { | |
214 _p1 = p1; _p2 = p2; | |
215 } else { | |
216 _p1 = p2; _p2 = p1; | |
217 } | |
218 } | |
219 | |
220 bool operator==(const OrderedPair &rhs) { | |
221 return _p1 == rhs._p1 && _p2 == rhs._p2; | |
222 } | |
223 void print() { tty->print(" (%d, %d)", _p1->_idx, _p2->_idx); } | |
224 | |
225 static const OrderedPair initial; | |
226 }; | 202 }; |
227 | 203 |
228 // -----------------------------SuperWord--------------------------------- | 204 // -----------------------------SuperWord--------------------------------- |
229 // Transforms scalar operations into packed (superword) operations. | 205 // Transforms scalar operations into packed (superword) operations. |
230 class SuperWord : public ResourceObj { | 206 class SuperWord : public ResourceObj { |
526 static bool comparable(int cmp) { return cmp < NotComparable; } | 502 static bool comparable(int cmp) { return cmp < NotComparable; } |
527 | 503 |
528 void print(); | 504 void print(); |
529 }; | 505 }; |
530 | 506 |
507 | |
508 //------------------------------OrderedPair--------------------------- | |
509 // Ordered pair of Node*. | |
510 class OrderedPair VALUE_OBJ_CLASS_SPEC { | |
511 protected: | |
512 Node* _p1; | |
513 Node* _p2; | |
514 public: | |
515 OrderedPair() : _p1(NULL), _p2(NULL) {} | |
516 OrderedPair(Node* p1, Node* p2) { | |
517 if (p1->_idx < p2->_idx) { | |
518 _p1 = p1; _p2 = p2; | |
519 } else { | |
520 _p1 = p2; _p2 = p1; | |
521 } | |
522 } | |
523 | |
524 bool operator==(const OrderedPair &rhs) { | |
525 return _p1 == rhs._p1 && _p2 == rhs._p2; | |
526 } | |
527 void print() { tty->print(" (%d, %d)", _p1->_idx, _p2->_idx); } | |
528 | |
529 static const OrderedPair initial; | |
530 }; | |
531 | |
531 #endif // SHARE_VM_OPTO_SUPERWORD_HPP | 532 #endif // SHARE_VM_OPTO_SUPERWORD_HPP |