< prev index next >

src/share/vm/opto/matcher.cpp

Print this page


   1 /*
   2  * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  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
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "memory/allocation.inline.hpp"
  27 #include "opto/addnode.hpp"
  28 #include "opto/callnode.hpp"
  29 #include "opto/connode.hpp"
  30 #include "opto/idealGraphPrinter.hpp"
  31 #include "opto/matcher.hpp"
  32 #include "opto/memnode.hpp"
  33 #include "opto/opcodes.hpp"
  34 #include "opto/regmask.hpp"
  35 #include "opto/rootnode.hpp"
  36 #include "opto/runtime.hpp"
  37 #include "opto/type.hpp"
  38 #include "opto/vectornode.hpp"
  39 #include "runtime/atomic.hpp"
  40 #include "runtime/os.hpp"
  41 #ifdef TARGET_ARCH_MODEL_x86_32


  42 # include "adfiles/ad_x86_32.hpp"
  43 #endif
  44 #ifdef TARGET_ARCH_MODEL_x86_64
  45 # include "adfiles/ad_x86_64.hpp"
  46 #endif
  47 #ifdef TARGET_ARCH_MODEL_sparc
  48 # include "adfiles/ad_sparc.hpp"
  49 #endif
  50 #ifdef TARGET_ARCH_MODEL_zero
  51 # include "adfiles/ad_zero.hpp"
  52 #endif
  53 #ifdef TARGET_ARCH_MODEL_arm
  54 # include "adfiles/ad_arm.hpp"
  55 #endif
  56 #ifdef TARGET_ARCH_MODEL_ppc_32
  57 # include "adfiles/ad_ppc_32.hpp"
  58 #endif
  59 #ifdef TARGET_ARCH_MODEL_ppc_64
  60 # include "adfiles/ad_ppc_64.hpp"
  61 #endif
  62 
  63 OptoReg::Name OptoReg::c_frame_pointer;
  64 
  65 const RegMask *Matcher::idealreg2regmask[_last_machine_leaf];
  66 RegMask Matcher::mreg2regmask[_last_Mach_Reg];
  67 RegMask Matcher::STACK_ONLY_mask;
  68 RegMask Matcher::c_frame_ptr_mask;
  69 const uint Matcher::_begin_rematerialize = _BEGIN_REMATERIALIZE;
  70 const uint Matcher::_end_rematerialize   = _END_REMATERIALIZE;
  71 
  72 //---------------------------Matcher-------------------------------------------
  73 Matcher::Matcher()
  74 : PhaseTransform( Phase::Ins_Select ),
  75 #ifdef ASSERT
  76   _old2new_map(C->comp_arena()),
  77   _new2old_map(C->comp_arena()),
  78 #endif
  79   _shared_nodes(C->comp_arena()),


   1 /*
   2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  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
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "memory/allocation.inline.hpp"
  27 #include "opto/addnode.hpp"
  28 #include "opto/callnode.hpp"
  29 #include "opto/connode.hpp"
  30 #include "opto/idealGraphPrinter.hpp"
  31 #include "opto/matcher.hpp"
  32 #include "opto/memnode.hpp"
  33 #include "opto/opcodes.hpp"
  34 #include "opto/regmask.hpp"
  35 #include "opto/rootnode.hpp"
  36 #include "opto/runtime.hpp"
  37 #include "opto/type.hpp"
  38 #include "opto/vectornode.hpp"
  39 #include "runtime/atomic.hpp"
  40 #include "runtime/os.hpp"
  41 #if defined AD_MD_HPP
  42 # include AD_MD_HPP
  43 #elif defined TARGET_ARCH_MODEL_x86_32
  44 # include "adfiles/ad_x86_32.hpp"
  45 #elif defined TARGET_ARCH_MODEL_x86_64

  46 # include "adfiles/ad_x86_64.hpp"
  47 #elif defined TARGET_ARCH_MODEL_sparc

  48 # include "adfiles/ad_sparc.hpp"
  49 #elif defined TARGET_ARCH_MODEL_zero

  50 # include "adfiles/ad_zero.hpp"
  51 #elif defined TARGET_ARCH_MODEL_ppc_64







  52 # include "adfiles/ad_ppc_64.hpp"
  53 #endif
  54 
  55 OptoReg::Name OptoReg::c_frame_pointer;
  56 
  57 const RegMask *Matcher::idealreg2regmask[_last_machine_leaf];
  58 RegMask Matcher::mreg2regmask[_last_Mach_Reg];
  59 RegMask Matcher::STACK_ONLY_mask;
  60 RegMask Matcher::c_frame_ptr_mask;
  61 const uint Matcher::_begin_rematerialize = _BEGIN_REMATERIALIZE;
  62 const uint Matcher::_end_rematerialize   = _END_REMATERIALIZE;
  63 
  64 //---------------------------Matcher-------------------------------------------
  65 Matcher::Matcher()
  66 : PhaseTransform( Phase::Ins_Select ),
  67 #ifdef ASSERT
  68   _old2new_map(C->comp_arena()),
  69   _new2old_map(C->comp_arena()),
  70 #endif
  71   _shared_nodes(C->comp_arena()),


< prev index next >