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()), | 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()), |