1 /* |
1 /* |
2 * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
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 |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
|
24 #ifndef SHARE_VM_OPTO_VECTORNODE_HPP |
|
25 #define SHARE_VM_OPTO_VECTORNODE_HPP |
|
26 |
|
27 #include "opto/matcher.hpp" |
|
28 #include "opto/memnode.hpp" |
|
29 #include "opto/node.hpp" |
|
30 #include "opto/opcodes.hpp" |
|
31 |
24 //------------------------------VectorNode-------------------------------------- |
32 //------------------------------VectorNode-------------------------------------- |
25 // Vector Operation |
33 // Vector Operation |
26 class VectorNode : public Node { |
34 class VectorNode : public Node { |
27 protected: |
35 protected: |
28 uint _length; // vector length |
36 uint _length; // vector length |
1130 ExtractDNode(Node* src, ConINode* pos) : ExtractNode(src, pos) {} |
1138 ExtractDNode(Node* src, ConINode* pos) : ExtractNode(src, pos) {} |
1131 virtual int Opcode() const; |
1139 virtual int Opcode() const; |
1132 virtual const Type *bottom_type() const { return Type::DOUBLE; } |
1140 virtual const Type *bottom_type() const { return Type::DOUBLE; } |
1133 virtual uint ideal_reg() const { return Op_RegD; } |
1141 virtual uint ideal_reg() const { return Op_RegD; } |
1134 }; |
1142 }; |
|
1143 |
|
1144 #endif // SHARE_VM_OPTO_VECTORNODE_HPP |