< prev index next >

src/hotspot/share/opto/node.hpp

Print this page




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


 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)


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




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


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


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


< prev index next >