< prev index next >

src/hotspot/share/opto/node.hpp

Print this page




 126 class Node_Stack;
 127 class NullCheckNode;
 128 class OopMap;
 129 class ParmNode;
 130 class PCTableNode;
 131 class PhaseCCP;
 132 class PhaseGVN;
 133 class PhaseIterGVN;
 134 class PhaseRegAlloc;
 135 class PhaseTransform;
 136 class PhaseValues;
 137 class PhiNode;
 138 class Pipeline;
 139 class ProjNode;
 140 class RangeCheckNode;
 141 class RegMask;
 142 class RegionNode;
 143 class RootNode;
 144 class SafePointNode;
 145 class SafePointScalarObjectNode;

 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.)


 660       DEFINE_CLASS_ID(MachTemp,         Mach, 3)
 661       DEFINE_CLASS_ID(MachConstantBase, Mach, 4)
 662       DEFINE_CLASS_ID(MachConstant,     Mach, 5)
 663         DEFINE_CLASS_ID(MachJump,       MachConstant, 0)
 664       DEFINE_CLASS_ID(MachMerge,        Mach, 6)
 665       DEFINE_CLASS_ID(MachMemBar,       Mach, 7)
 666 
 667     DEFINE_CLASS_ID(Type,  Node, 2)
 668       DEFINE_CLASS_ID(Phi,   Type, 0)
 669       DEFINE_CLASS_ID(ConstraintCast, Type, 1)
 670         DEFINE_CLASS_ID(CastII, ConstraintCast, 0)
 671         DEFINE_CLASS_ID(CheckCastPP, ConstraintCast, 1)
 672       DEFINE_CLASS_ID(CMove, Type, 3)
 673       DEFINE_CLASS_ID(SafePointScalarObject, Type, 4)
 674       DEFINE_CLASS_ID(DecodeNarrowPtr, Type, 5)
 675         DEFINE_CLASS_ID(DecodeN, DecodeNarrowPtr, 0)
 676         DEFINE_CLASS_ID(DecodeNKlass, DecodeNarrowPtr, 1)
 677       DEFINE_CLASS_ID(EncodeNarrowPtr, Type, 6)
 678         DEFINE_CLASS_ID(EncodeP, EncodeNarrowPtr, 0)
 679         DEFINE_CLASS_ID(EncodePKlass, EncodeNarrowPtr, 1)

 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)


 859   DEFINE_CLASS_QUERY(MachTemp)
 860   DEFINE_CLASS_QUERY(MachMemBar)
 861   DEFINE_CLASS_QUERY(MachMerge)
 862   DEFINE_CLASS_QUERY(Mem)
 863   DEFINE_CLASS_QUERY(MemBar)
 864   DEFINE_CLASS_QUERY(MemBarStoreStore)
 865   DEFINE_CLASS_QUERY(MergeMem)
 866   DEFINE_CLASS_QUERY(Mul)
 867   DEFINE_CLASS_QUERY(Multi)
 868   DEFINE_CLASS_QUERY(MultiBranch)
 869   DEFINE_CLASS_QUERY(OuterStripMinedLoop)
 870   DEFINE_CLASS_QUERY(OuterStripMinedLoopEnd)
 871   DEFINE_CLASS_QUERY(Parm)
 872   DEFINE_CLASS_QUERY(PCTable)
 873   DEFINE_CLASS_QUERY(Phi)
 874   DEFINE_CLASS_QUERY(Proj)
 875   DEFINE_CLASS_QUERY(Region)
 876   DEFINE_CLASS_QUERY(Root)
 877   DEFINE_CLASS_QUERY(SafePoint)
 878   DEFINE_CLASS_QUERY(SafePointScalarObject)

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




 126 class Node_Stack;
 127 class NullCheckNode;
 128 class OopMap;
 129 class ParmNode;
 130 class PCTableNode;
 131 class PhaseCCP;
 132 class PhaseGVN;
 133 class PhaseIterGVN;
 134 class PhaseRegAlloc;
 135 class PhaseTransform;
 136 class PhaseValues;
 137 class PhiNode;
 138 class Pipeline;
 139 class ProjNode;
 140 class RangeCheckNode;
 141 class RegMask;
 142 class RegionNode;
 143 class RootNode;
 144 class SafePointNode;
 145 class SafePointScalarObjectNode;
 146 class ShenandoahBarrierNode;
 147 class StartNode;
 148 class State;
 149 class StoreNode;
 150 class SubNode;
 151 class Type;
 152 class TypeNode;
 153 class UnlockNode;
 154 class VectorNode;
 155 class LoadVectorNode;
 156 class StoreVectorNode;
 157 class VectorSet;
 158 typedef void (*NFunc)(Node&,void*);
 159 extern "C" {
 160   typedef int (*C_sort_func_t)(const void *, const void *);
 161 }
 162 
 163 // The type of all node counts and indexes.
 164 // It must hold at least 16 bits, but must also be fast to load and store.
 165 // This type, if less than 32 bits, could limit the number of possible nodes.
 166 // (To make this type platform-specific, move to globalDefinitions_xxx.hpp.)


 661       DEFINE_CLASS_ID(MachTemp,         Mach, 3)
 662       DEFINE_CLASS_ID(MachConstantBase, Mach, 4)
 663       DEFINE_CLASS_ID(MachConstant,     Mach, 5)
 664         DEFINE_CLASS_ID(MachJump,       MachConstant, 0)
 665       DEFINE_CLASS_ID(MachMerge,        Mach, 6)
 666       DEFINE_CLASS_ID(MachMemBar,       Mach, 7)
 667 
 668     DEFINE_CLASS_ID(Type,  Node, 2)
 669       DEFINE_CLASS_ID(Phi,   Type, 0)
 670       DEFINE_CLASS_ID(ConstraintCast, Type, 1)
 671         DEFINE_CLASS_ID(CastII, ConstraintCast, 0)
 672         DEFINE_CLASS_ID(CheckCastPP, ConstraintCast, 1)
 673       DEFINE_CLASS_ID(CMove, Type, 3)
 674       DEFINE_CLASS_ID(SafePointScalarObject, Type, 4)
 675       DEFINE_CLASS_ID(DecodeNarrowPtr, Type, 5)
 676         DEFINE_CLASS_ID(DecodeN, DecodeNarrowPtr, 0)
 677         DEFINE_CLASS_ID(DecodeNKlass, DecodeNarrowPtr, 1)
 678       DEFINE_CLASS_ID(EncodeNarrowPtr, Type, 6)
 679         DEFINE_CLASS_ID(EncodeP, EncodeNarrowPtr, 0)
 680         DEFINE_CLASS_ID(EncodePKlass, EncodeNarrowPtr, 1)
 681       DEFINE_CLASS_ID(ShenandoahBarrier, Type, 7)
 682 
 683     DEFINE_CLASS_ID(Proj,  Node, 3)
 684       DEFINE_CLASS_ID(CatchProj, Proj, 0)
 685       DEFINE_CLASS_ID(JumpProj,  Proj, 1)
 686       DEFINE_CLASS_ID(IfProj,    Proj, 2)
 687         DEFINE_CLASS_ID(IfTrue,    IfProj, 0)
 688         DEFINE_CLASS_ID(IfFalse,   IfProj, 1)
 689       DEFINE_CLASS_ID(Parm,      Proj, 4)
 690       DEFINE_CLASS_ID(MachProj,  Proj, 5)
 691 
 692     DEFINE_CLASS_ID(Mem,   Node, 4)
 693       DEFINE_CLASS_ID(Load,  Mem, 0)
 694         DEFINE_CLASS_ID(LoadVector,  Load, 0)
 695           DEFINE_CLASS_ID(LoadBarrierSlowReg, Load, 1)
 696           DEFINE_CLASS_ID(LoadBarrierWeakSlowReg, Load, 2)
 697       DEFINE_CLASS_ID(Store, Mem, 1)
 698         DEFINE_CLASS_ID(StoreVector, Store, 0)
 699       DEFINE_CLASS_ID(LoadStore, Mem, 2)
 700         DEFINE_CLASS_ID(LoadStoreConditional, LoadStore, 0)
 701           DEFINE_CLASS_ID(CompareAndSwap, LoadStoreConditional, 0)


 861   DEFINE_CLASS_QUERY(MachTemp)
 862   DEFINE_CLASS_QUERY(MachMemBar)
 863   DEFINE_CLASS_QUERY(MachMerge)
 864   DEFINE_CLASS_QUERY(Mem)
 865   DEFINE_CLASS_QUERY(MemBar)
 866   DEFINE_CLASS_QUERY(MemBarStoreStore)
 867   DEFINE_CLASS_QUERY(MergeMem)
 868   DEFINE_CLASS_QUERY(Mul)
 869   DEFINE_CLASS_QUERY(Multi)
 870   DEFINE_CLASS_QUERY(MultiBranch)
 871   DEFINE_CLASS_QUERY(OuterStripMinedLoop)
 872   DEFINE_CLASS_QUERY(OuterStripMinedLoopEnd)
 873   DEFINE_CLASS_QUERY(Parm)
 874   DEFINE_CLASS_QUERY(PCTable)
 875   DEFINE_CLASS_QUERY(Phi)
 876   DEFINE_CLASS_QUERY(Proj)
 877   DEFINE_CLASS_QUERY(Region)
 878   DEFINE_CLASS_QUERY(Root)
 879   DEFINE_CLASS_QUERY(SafePoint)
 880   DEFINE_CLASS_QUERY(SafePointScalarObject)
 881   DEFINE_CLASS_QUERY(ShenandoahBarrier)
 882   DEFINE_CLASS_QUERY(Start)
 883   DEFINE_CLASS_QUERY(Store)
 884   DEFINE_CLASS_QUERY(Sub)
 885   DEFINE_CLASS_QUERY(Type)
 886   DEFINE_CLASS_QUERY(Vector)
 887   DEFINE_CLASS_QUERY(LoadVector)
 888   DEFINE_CLASS_QUERY(StoreVector)
 889   DEFINE_CLASS_QUERY(Unlock)
 890 
 891   #undef DEFINE_CLASS_QUERY
 892 
 893   // duplicate of is_MachSpillCopy()
 894   bool is_SpillCopy () const {
 895     return ((_class_id & ClassMask_MachSpillCopy) == Class_MachSpillCopy);
 896   }
 897 
 898   bool is_Con () const { return (_flags & Flag_is_Con) != 0; }
 899   // The data node which is safe to leave in dead loop during IGVN optimization.
 900   bool is_dead_loop_safe() const {
 901     return is_Phi() || (is_Proj() && in(0) == NULL) ||


< prev index next >