< prev index next >

src/hotspot/share/opto/node.hpp

Print this page




  90 class MachBranchNode;
  91 class MachCallDynamicJavaNode;
  92 class MachCallJavaNode;
  93 class MachCallLeafNode;
  94 class MachCallNode;
  95 class MachCallRuntimeNode;
  96 class MachCallStaticJavaNode;
  97 class MachConstantBaseNode;
  98 class MachConstantNode;
  99 class MachGotoNode;
 100 class MachIfNode;
 101 class MachJumpNode;
 102 class MachNode;
 103 class MachNullCheckNode;
 104 class MachProjNode;
 105 class MachReturnNode;
 106 class MachSafePointNode;
 107 class MachSpillCopyNode;
 108 class MachTempNode;
 109 class MachMergeNode;

 110 class Matcher;
 111 class MemBarNode;
 112 class MemBarStoreStoreNode;
 113 class MemNode;
 114 class MergeMemNode;
 115 class MulNode;
 116 class MultiNode;
 117 class MultiBranchNode;
 118 class NeverBranchNode;
 119 class OuterStripMinedLoopNode;
 120 class OuterStripMinedLoopEndNode;
 121 class Node;
 122 class Node_Array;
 123 class Node_List;
 124 class Node_Stack;
 125 class NullCheckNode;
 126 class OopMap;
 127 class ParmNode;
 128 class PCTableNode;
 129 class PhaseCCP;
 130 class PhaseGVN;
 131 class PhaseIterGVN;
 132 class PhaseRegAlloc;
 133 class PhaseTransform;
 134 class PhaseValues;
 135 class PhiNode;
 136 class Pipeline;
 137 class ProjNode;
 138 class RangeCheckNode;
 139 class RegMask;
 140 class RegionNode;
 141 class RootNode;
 142 class SafePointNode;
 143 class SafePointScalarObjectNode;

 144 class StartNode;
 145 class State;
 146 class StoreNode;
 147 class SubNode;
 148 class Type;
 149 class TypeNode;
 150 class UnlockNode;
 151 class VectorNode;
 152 class LoadVectorNode;
 153 class StoreVectorNode;
 154 class VectorSet;
 155 typedef void (*NFunc)(Node&,void*);
 156 extern "C" {
 157   typedef int (*C_sort_func_t)(const void *, const void *);
 158 }
 159 
 160 // The type of all node counts and indexes.
 161 // It must hold at least 16 bits, but must also be fast to load and store.
 162 // This type, if less than 32 bits, could limit the number of possible nodes.
 163 // (To make this type platform-specific, move to globalDefinitions_xxx.hpp.)


 642 
 643     DEFINE_CLASS_ID(Mach,  Node, 1)
 644       DEFINE_CLASS_ID(MachReturn, Mach, 0)
 645         DEFINE_CLASS_ID(MachSafePoint, MachReturn, 0)
 646           DEFINE_CLASS_ID(MachCall, MachSafePoint, 0)
 647             DEFINE_CLASS_ID(MachCallJava,         MachCall, 0)
 648               DEFINE_CLASS_ID(MachCallStaticJava,   MachCallJava, 0)
 649               DEFINE_CLASS_ID(MachCallDynamicJava,  MachCallJava, 1)
 650             DEFINE_CLASS_ID(MachCallRuntime,      MachCall, 1)
 651               DEFINE_CLASS_ID(MachCallLeaf,         MachCallRuntime, 0)
 652       DEFINE_CLASS_ID(MachBranch, Mach, 1)
 653         DEFINE_CLASS_ID(MachIf,         MachBranch, 0)
 654         DEFINE_CLASS_ID(MachGoto,       MachBranch, 1)
 655         DEFINE_CLASS_ID(MachNullCheck,  MachBranch, 2)
 656       DEFINE_CLASS_ID(MachSpillCopy,    Mach, 2)
 657       DEFINE_CLASS_ID(MachTemp,         Mach, 3)
 658       DEFINE_CLASS_ID(MachConstantBase, Mach, 4)
 659       DEFINE_CLASS_ID(MachConstant,     Mach, 5)
 660         DEFINE_CLASS_ID(MachJump,       MachConstant, 0)
 661       DEFINE_CLASS_ID(MachMerge,        Mach, 6)

 662 
 663     DEFINE_CLASS_ID(Type,  Node, 2)
 664       DEFINE_CLASS_ID(Phi,   Type, 0)
 665       DEFINE_CLASS_ID(ConstraintCast, Type, 1)
 666         DEFINE_CLASS_ID(CastII, ConstraintCast, 0)
 667         DEFINE_CLASS_ID(CheckCastPP, ConstraintCast, 1)
 668       DEFINE_CLASS_ID(CMove, Type, 3)
 669       DEFINE_CLASS_ID(SafePointScalarObject, Type, 4)
 670       DEFINE_CLASS_ID(DecodeNarrowPtr, Type, 5)
 671         DEFINE_CLASS_ID(DecodeN, DecodeNarrowPtr, 0)
 672         DEFINE_CLASS_ID(DecodeNKlass, DecodeNarrowPtr, 1)
 673       DEFINE_CLASS_ID(EncodeNarrowPtr, Type, 6)
 674         DEFINE_CLASS_ID(EncodeP, EncodeNarrowPtr, 0)
 675         DEFINE_CLASS_ID(EncodePKlass, EncodeNarrowPtr, 1)

 676 
 677     DEFINE_CLASS_ID(Proj,  Node, 3)
 678       DEFINE_CLASS_ID(CatchProj, Proj, 0)
 679       DEFINE_CLASS_ID(JumpProj,  Proj, 1)
 680       DEFINE_CLASS_ID(IfProj,    Proj, 2)
 681         DEFINE_CLASS_ID(IfTrue,    IfProj, 0)
 682         DEFINE_CLASS_ID(IfFalse,   IfProj, 1)
 683       DEFINE_CLASS_ID(Parm,      Proj, 4)
 684       DEFINE_CLASS_ID(MachProj,  Proj, 5)
 685 
 686     DEFINE_CLASS_ID(Mem,   Node, 4)
 687       DEFINE_CLASS_ID(Load,  Mem, 0)
 688         DEFINE_CLASS_ID(LoadVector,  Load, 0)
 689           DEFINE_CLASS_ID(LoadBarrierSlowReg, Load, 1)
 690           DEFINE_CLASS_ID(LoadBarrierWeakSlowReg, Load, 2)
 691       DEFINE_CLASS_ID(Store, Mem, 1)
 692         DEFINE_CLASS_ID(StoreVector, Store, 0)
 693       DEFINE_CLASS_ID(LoadStore, Mem, 2)
 694         DEFINE_CLASS_ID(LoadStoreConditional, LoadStore, 0)
 695           DEFINE_CLASS_ID(CompareAndSwap, LoadStoreConditional, 0)


 835   DEFINE_CLASS_QUERY(Loop)
 836   DEFINE_CLASS_QUERY(Mach)
 837   DEFINE_CLASS_QUERY(MachBranch)
 838   DEFINE_CLASS_QUERY(MachCall)
 839   DEFINE_CLASS_QUERY(MachCallDynamicJava)
 840   DEFINE_CLASS_QUERY(MachCallJava)
 841   DEFINE_CLASS_QUERY(MachCallLeaf)
 842   DEFINE_CLASS_QUERY(MachCallRuntime)
 843   DEFINE_CLASS_QUERY(MachCallStaticJava)
 844   DEFINE_CLASS_QUERY(MachConstantBase)
 845   DEFINE_CLASS_QUERY(MachConstant)
 846   DEFINE_CLASS_QUERY(MachGoto)
 847   DEFINE_CLASS_QUERY(MachIf)
 848   DEFINE_CLASS_QUERY(MachJump)
 849   DEFINE_CLASS_QUERY(MachNullCheck)
 850   DEFINE_CLASS_QUERY(MachProj)
 851   DEFINE_CLASS_QUERY(MachReturn)
 852   DEFINE_CLASS_QUERY(MachSafePoint)
 853   DEFINE_CLASS_QUERY(MachSpillCopy)
 854   DEFINE_CLASS_QUERY(MachTemp)

 855   DEFINE_CLASS_QUERY(MachMerge)
 856   DEFINE_CLASS_QUERY(Mem)
 857   DEFINE_CLASS_QUERY(MemBar)
 858   DEFINE_CLASS_QUERY(MemBarStoreStore)
 859   DEFINE_CLASS_QUERY(MergeMem)
 860   DEFINE_CLASS_QUERY(Mul)
 861   DEFINE_CLASS_QUERY(Multi)
 862   DEFINE_CLASS_QUERY(MultiBranch)
 863   DEFINE_CLASS_QUERY(OuterStripMinedLoop)
 864   DEFINE_CLASS_QUERY(OuterStripMinedLoopEnd)
 865   DEFINE_CLASS_QUERY(Parm)
 866   DEFINE_CLASS_QUERY(PCTable)
 867   DEFINE_CLASS_QUERY(Phi)
 868   DEFINE_CLASS_QUERY(Proj)
 869   DEFINE_CLASS_QUERY(Region)
 870   DEFINE_CLASS_QUERY(Root)
 871   DEFINE_CLASS_QUERY(SafePoint)
 872   DEFINE_CLASS_QUERY(SafePointScalarObject)

 873   DEFINE_CLASS_QUERY(Start)
 874   DEFINE_CLASS_QUERY(Store)
 875   DEFINE_CLASS_QUERY(Sub)
 876   DEFINE_CLASS_QUERY(Type)
 877   DEFINE_CLASS_QUERY(Vector)
 878   DEFINE_CLASS_QUERY(LoadVector)
 879   DEFINE_CLASS_QUERY(StoreVector)
 880   DEFINE_CLASS_QUERY(Unlock)
 881 
 882   #undef DEFINE_CLASS_QUERY
 883 
 884   // duplicate of is_MachSpillCopy()
 885   bool is_SpillCopy () const {
 886     return ((_class_id & ClassMask_MachSpillCopy) == Class_MachSpillCopy);
 887   }
 888 
 889   bool is_Con () const { return (_flags & Flag_is_Con) != 0; }
 890   // The data node which is safe to leave in dead loop during IGVN optimization.
 891   bool is_dead_loop_safe() const {
 892     return is_Phi() || (is_Proj() && in(0) == NULL) ||




  90 class MachBranchNode;
  91 class MachCallDynamicJavaNode;
  92 class MachCallJavaNode;
  93 class MachCallLeafNode;
  94 class MachCallNode;
  95 class MachCallRuntimeNode;
  96 class MachCallStaticJavaNode;
  97 class MachConstantBaseNode;
  98 class MachConstantNode;
  99 class MachGotoNode;
 100 class MachIfNode;
 101 class MachJumpNode;
 102 class MachNode;
 103 class MachNullCheckNode;
 104 class MachProjNode;
 105 class MachReturnNode;
 106 class MachSafePointNode;
 107 class MachSpillCopyNode;
 108 class MachTempNode;
 109 class MachMergeNode;
 110 class MachMemBarNode;
 111 class Matcher;
 112 class MemBarNode;
 113 class MemBarStoreStoreNode;
 114 class MemNode;
 115 class MergeMemNode;
 116 class MulNode;
 117 class MultiNode;
 118 class MultiBranchNode;
 119 class NeverBranchNode;
 120 class OuterStripMinedLoopNode;
 121 class OuterStripMinedLoopEndNode;
 122 class Node;
 123 class Node_Array;
 124 class Node_List;
 125 class Node_Stack;
 126 class NullCheckNode;
 127 class OopMap;
 128 class ParmNode;
 129 class PCTableNode;
 130 class PhaseCCP;
 131 class PhaseGVN;
 132 class PhaseIterGVN;
 133 class PhaseRegAlloc;
 134 class PhaseTransform;
 135 class PhaseValues;
 136 class PhiNode;
 137 class Pipeline;
 138 class ProjNode;
 139 class RangeCheckNode;
 140 class RegMask;
 141 class RegionNode;
 142 class RootNode;
 143 class SafePointNode;
 144 class SafePointScalarObjectNode;
 145 class ShenandoahBarrierNode;
 146 class StartNode;
 147 class State;
 148 class StoreNode;
 149 class SubNode;
 150 class Type;
 151 class TypeNode;
 152 class UnlockNode;
 153 class VectorNode;
 154 class LoadVectorNode;
 155 class StoreVectorNode;
 156 class VectorSet;
 157 typedef void (*NFunc)(Node&,void*);
 158 extern "C" {
 159   typedef int (*C_sort_func_t)(const void *, const void *);
 160 }
 161 
 162 // The type of all node counts and indexes.
 163 // It must hold at least 16 bits, but must also be fast to load and store.
 164 // This type, if less than 32 bits, could limit the number of possible nodes.
 165 // (To make this type platform-specific, move to globalDefinitions_xxx.hpp.)


 644 
 645     DEFINE_CLASS_ID(Mach,  Node, 1)
 646       DEFINE_CLASS_ID(MachReturn, Mach, 0)
 647         DEFINE_CLASS_ID(MachSafePoint, MachReturn, 0)
 648           DEFINE_CLASS_ID(MachCall, MachSafePoint, 0)
 649             DEFINE_CLASS_ID(MachCallJava,         MachCall, 0)
 650               DEFINE_CLASS_ID(MachCallStaticJava,   MachCallJava, 0)
 651               DEFINE_CLASS_ID(MachCallDynamicJava,  MachCallJava, 1)
 652             DEFINE_CLASS_ID(MachCallRuntime,      MachCall, 1)
 653               DEFINE_CLASS_ID(MachCallLeaf,         MachCallRuntime, 0)
 654       DEFINE_CLASS_ID(MachBranch, Mach, 1)
 655         DEFINE_CLASS_ID(MachIf,         MachBranch, 0)
 656         DEFINE_CLASS_ID(MachGoto,       MachBranch, 1)
 657         DEFINE_CLASS_ID(MachNullCheck,  MachBranch, 2)
 658       DEFINE_CLASS_ID(MachSpillCopy,    Mach, 2)
 659       DEFINE_CLASS_ID(MachTemp,         Mach, 3)
 660       DEFINE_CLASS_ID(MachConstantBase, Mach, 4)
 661       DEFINE_CLASS_ID(MachConstant,     Mach, 5)
 662         DEFINE_CLASS_ID(MachJump,       MachConstant, 0)
 663       DEFINE_CLASS_ID(MachMerge,        Mach, 6)
 664       DEFINE_CLASS_ID(MachMemBar,       Mach, 7)
 665 
 666     DEFINE_CLASS_ID(Type,  Node, 2)
 667       DEFINE_CLASS_ID(Phi,   Type, 0)
 668       DEFINE_CLASS_ID(ConstraintCast, Type, 1)
 669         DEFINE_CLASS_ID(CastII, ConstraintCast, 0)
 670         DEFINE_CLASS_ID(CheckCastPP, ConstraintCast, 1)
 671       DEFINE_CLASS_ID(CMove, Type, 3)
 672       DEFINE_CLASS_ID(SafePointScalarObject, Type, 4)
 673       DEFINE_CLASS_ID(DecodeNarrowPtr, Type, 5)
 674         DEFINE_CLASS_ID(DecodeN, DecodeNarrowPtr, 0)
 675         DEFINE_CLASS_ID(DecodeNKlass, DecodeNarrowPtr, 1)
 676       DEFINE_CLASS_ID(EncodeNarrowPtr, Type, 6)
 677         DEFINE_CLASS_ID(EncodeP, EncodeNarrowPtr, 0)
 678         DEFINE_CLASS_ID(EncodePKlass, EncodeNarrowPtr, 1)
 679       DEFINE_CLASS_ID(ShenandoahBarrier, Type, 7)
 680 
 681     DEFINE_CLASS_ID(Proj,  Node, 3)
 682       DEFINE_CLASS_ID(CatchProj, Proj, 0)
 683       DEFINE_CLASS_ID(JumpProj,  Proj, 1)
 684       DEFINE_CLASS_ID(IfProj,    Proj, 2)
 685         DEFINE_CLASS_ID(IfTrue,    IfProj, 0)
 686         DEFINE_CLASS_ID(IfFalse,   IfProj, 1)
 687       DEFINE_CLASS_ID(Parm,      Proj, 4)
 688       DEFINE_CLASS_ID(MachProj,  Proj, 5)
 689 
 690     DEFINE_CLASS_ID(Mem,   Node, 4)
 691       DEFINE_CLASS_ID(Load,  Mem, 0)
 692         DEFINE_CLASS_ID(LoadVector,  Load, 0)
 693           DEFINE_CLASS_ID(LoadBarrierSlowReg, Load, 1)
 694           DEFINE_CLASS_ID(LoadBarrierWeakSlowReg, Load, 2)
 695       DEFINE_CLASS_ID(Store, Mem, 1)
 696         DEFINE_CLASS_ID(StoreVector, Store, 0)
 697       DEFINE_CLASS_ID(LoadStore, Mem, 2)
 698         DEFINE_CLASS_ID(LoadStoreConditional, LoadStore, 0)
 699           DEFINE_CLASS_ID(CompareAndSwap, LoadStoreConditional, 0)


 839   DEFINE_CLASS_QUERY(Loop)
 840   DEFINE_CLASS_QUERY(Mach)
 841   DEFINE_CLASS_QUERY(MachBranch)
 842   DEFINE_CLASS_QUERY(MachCall)
 843   DEFINE_CLASS_QUERY(MachCallDynamicJava)
 844   DEFINE_CLASS_QUERY(MachCallJava)
 845   DEFINE_CLASS_QUERY(MachCallLeaf)
 846   DEFINE_CLASS_QUERY(MachCallRuntime)
 847   DEFINE_CLASS_QUERY(MachCallStaticJava)
 848   DEFINE_CLASS_QUERY(MachConstantBase)
 849   DEFINE_CLASS_QUERY(MachConstant)
 850   DEFINE_CLASS_QUERY(MachGoto)
 851   DEFINE_CLASS_QUERY(MachIf)
 852   DEFINE_CLASS_QUERY(MachJump)
 853   DEFINE_CLASS_QUERY(MachNullCheck)
 854   DEFINE_CLASS_QUERY(MachProj)
 855   DEFINE_CLASS_QUERY(MachReturn)
 856   DEFINE_CLASS_QUERY(MachSafePoint)
 857   DEFINE_CLASS_QUERY(MachSpillCopy)
 858   DEFINE_CLASS_QUERY(MachTemp)
 859   DEFINE_CLASS_QUERY(MachMemBar)
 860   DEFINE_CLASS_QUERY(MachMerge)
 861   DEFINE_CLASS_QUERY(Mem)
 862   DEFINE_CLASS_QUERY(MemBar)
 863   DEFINE_CLASS_QUERY(MemBarStoreStore)
 864   DEFINE_CLASS_QUERY(MergeMem)
 865   DEFINE_CLASS_QUERY(Mul)
 866   DEFINE_CLASS_QUERY(Multi)
 867   DEFINE_CLASS_QUERY(MultiBranch)
 868   DEFINE_CLASS_QUERY(OuterStripMinedLoop)
 869   DEFINE_CLASS_QUERY(OuterStripMinedLoopEnd)
 870   DEFINE_CLASS_QUERY(Parm)
 871   DEFINE_CLASS_QUERY(PCTable)
 872   DEFINE_CLASS_QUERY(Phi)
 873   DEFINE_CLASS_QUERY(Proj)
 874   DEFINE_CLASS_QUERY(Region)
 875   DEFINE_CLASS_QUERY(Root)
 876   DEFINE_CLASS_QUERY(SafePoint)
 877   DEFINE_CLASS_QUERY(SafePointScalarObject)
 878   DEFINE_CLASS_QUERY(ShenandoahBarrier)
 879   DEFINE_CLASS_QUERY(Start)
 880   DEFINE_CLASS_QUERY(Store)
 881   DEFINE_CLASS_QUERY(Sub)
 882   DEFINE_CLASS_QUERY(Type)
 883   DEFINE_CLASS_QUERY(Vector)
 884   DEFINE_CLASS_QUERY(LoadVector)
 885   DEFINE_CLASS_QUERY(StoreVector)
 886   DEFINE_CLASS_QUERY(Unlock)
 887 
 888   #undef DEFINE_CLASS_QUERY
 889 
 890   // duplicate of is_MachSpillCopy()
 891   bool is_SpillCopy () const {
 892     return ((_class_id & ClassMask_MachSpillCopy) == Class_MachSpillCopy);
 893   }
 894 
 895   bool is_Con () const { return (_flags & Flag_is_Con) != 0; }
 896   // The data node which is safe to leave in dead loop during IGVN optimization.
 897   bool is_dead_loop_safe() const {
 898     return is_Phi() || (is_Proj() && in(0) == NULL) ||


< prev index next >