comparison src/share/vm/opto/machnode.hpp @ 6179:8c92982cbbc4

7119644: Increase superword's vector size up to 256 bits Summary: Increase vector size up to 256-bits for YMM AVX registers on x86. Reviewed-by: never, twisti, roland
author kvn
date Fri, 15 Jun 2012 01:25:19 -0700
parents f03a3c8bd5e5
children da91efe96a93
comparison
equal deleted inserted replaced
6146:eba1d5bce9e8 6179:8c92982cbbc4
1 /* 1 /*
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2012, 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.
317 //------------------------------MachTypeNode---------------------------- 317 //------------------------------MachTypeNode----------------------------
318 // Machine Nodes that need to retain a known Type. 318 // Machine Nodes that need to retain a known Type.
319 class MachTypeNode : public MachNode { 319 class MachTypeNode : public MachNode {
320 virtual uint size_of() const { return sizeof(*this); } // Size is bigger 320 virtual uint size_of() const { return sizeof(*this); } // Size is bigger
321 public: 321 public:
322 MachTypeNode( ) {}
322 const Type *_bottom_type; 323 const Type *_bottom_type;
323 324
324 virtual const class Type *bottom_type() const { return _bottom_type; } 325 virtual const class Type *bottom_type() const { return _bottom_type; }
325 #ifndef PRODUCT 326 #ifndef PRODUCT
326 virtual void dump_spec(outputStream *st) const; 327 virtual void dump_spec(outputStream *st) const;
368 #endif 369 #endif
369 }; 370 };
370 371
371 //------------------------------MachConstantNode------------------------------- 372 //------------------------------MachConstantNode-------------------------------
372 // Machine node that holds a constant which is stored in the constant table. 373 // Machine node that holds a constant which is stored in the constant table.
373 class MachConstantNode : public MachNode { 374 class MachConstantNode : public MachTypeNode {
374 protected: 375 protected:
375 Compile::Constant _constant; // This node's constant. 376 Compile::Constant _constant; // This node's constant.
376 377
377 public: 378 public:
378 MachConstantNode() : MachNode() { 379 MachConstantNode() : MachTypeNode() {
379 init_class_id(Class_MachConstant); 380 init_class_id(Class_MachConstant);
380 } 381 }
381 382
382 virtual void eval_constant(Compile* C) { 383 virtual void eval_constant(Compile* C) {
383 #ifdef ASSERT 384 #ifdef ASSERT