< prev index next >

src/hotspot/share/opto/node.hpp

Print this page

  66 class CheckCastPPNode;
  67 class ClearArrayNode;
  68 class CmpNode;
  69 class CodeBuffer;
  70 class ConstraintCastNode;
  71 class ConNode;
  72 class ConINode;
  73 class ConvertNode;
  74 class CompareAndSwapNode;
  75 class CompareAndExchangeNode;
  76 class CountedLoopNode;
  77 class CountedLoopEndNode;
  78 class DecodeNarrowPtrNode;
  79 class DecodeNNode;
  80 class DecodeNKlassNode;
  81 class EncodeNarrowPtrNode;
  82 class EncodePNode;
  83 class EncodePKlassNode;
  84 class FastLockNode;
  85 class FastUnlockNode;

  86 class HaltNode;
  87 class IfNode;
  88 class IfProjNode;
  89 class IfFalseNode;
  90 class IfTrueNode;
  91 class InitializeNode;
  92 class JVMState;
  93 class JumpNode;
  94 class JumpProjNode;
  95 class LoadNode;
  96 class LoadStoreNode;
  97 class LoadStoreConditionalNode;
  98 class LockNode;
  99 class LongCountedLoopNode;
 100 class LongCountedLoopEndNode;
 101 class LoopNode;
 102 class LShiftNode;
 103 class MachBranchNode;
 104 class MachCallDynamicJavaNode;
 105 class MachCallJavaNode;
 106 class MachCallLeafNode;
 107 class MachCallNode;
 108 class MachCallRuntimeNode;
 109 class MachCallStaticJavaNode;
 110 class MachConstantBaseNode;
 111 class MachConstantNode;
 112 class MachGotoNode;
 113 class MachIfNode;
 114 class MachJumpNode;
 115 class MachNode;
 116 class MachNullCheckNode;
 117 class MachProjNode;

 118 class MachReturnNode;
 119 class MachSafePointNode;
 120 class MachSpillCopyNode;
 121 class MachTempNode;
 122 class MachMergeNode;
 123 class MachMemBarNode;

 124 class Matcher;
 125 class MemBarNode;
 126 class MemBarStoreStoreNode;
 127 class MemNode;
 128 class MergeMemNode;
 129 class MoveNode;
 130 class MulNode;
 131 class MultiNode;
 132 class MultiBranchNode;
 133 class NegNode;
 134 class NegVNode;
 135 class NeverBranchNode;
 136 class Opaque1Node;
 137 class OuterStripMinedLoopNode;
 138 class OuterStripMinedLoopEndNode;
 139 class Node;
 140 class Node_Array;
 141 class Node_List;
 142 class Node_Stack;
 143 class OopMap;

 153 class PhiNode;
 154 class Pipeline;
 155 class PopulateIndexNode;
 156 class ProjNode;
 157 class RangeCheckNode;
 158 class ReductionNode;
 159 class RegMask;
 160 class RegionNode;
 161 class RootNode;
 162 class SafePointNode;
 163 class SafePointScalarObjectNode;
 164 class SafePointScalarMergeNode;
 165 class StartNode;
 166 class State;
 167 class StoreNode;
 168 class SubNode;
 169 class SubTypeCheckNode;
 170 class Type;
 171 class TypeNode;
 172 class UnlockNode;

 173 class UnorderedReductionNode;
 174 class VectorNode;
 175 class LoadVectorNode;
 176 class LoadVectorMaskedNode;
 177 class StoreVectorMaskedNode;
 178 class LoadVectorGatherNode;
 179 class StoreVectorNode;
 180 class StoreVectorScatterNode;
 181 class VerifyVectorAlignmentNode;
 182 class VectorMaskCmpNode;
 183 class VectorUnboxNode;
 184 class VectorSet;
 185 class VectorReinterpretNode;
 186 class ShiftVNode;
 187 class ExpandVNode;
 188 class CompressVNode;
 189 class CompressMNode;
 190 
 191 
 192 #ifndef OPTO_DU_ITERATOR_ASSERT

 663           DEFINE_CLASS_ID(AbstractLock,     Call, 3)
 664             DEFINE_CLASS_ID(Lock,             AbstractLock, 0)
 665             DEFINE_CLASS_ID(Unlock,           AbstractLock, 1)
 666           DEFINE_CLASS_ID(ArrayCopy,        Call, 4)
 667       DEFINE_CLASS_ID(MultiBranch, Multi, 1)
 668         DEFINE_CLASS_ID(PCTable,     MultiBranch, 0)
 669           DEFINE_CLASS_ID(Catch,       PCTable, 0)
 670           DEFINE_CLASS_ID(Jump,        PCTable, 1)
 671         DEFINE_CLASS_ID(If,          MultiBranch, 1)
 672           DEFINE_CLASS_ID(BaseCountedLoopEnd,     If, 0)
 673             DEFINE_CLASS_ID(CountedLoopEnd,       BaseCountedLoopEnd, 0)
 674             DEFINE_CLASS_ID(LongCountedLoopEnd,   BaseCountedLoopEnd, 1)
 675           DEFINE_CLASS_ID(RangeCheck,             If, 1)
 676           DEFINE_CLASS_ID(OuterStripMinedLoopEnd, If, 2)
 677           DEFINE_CLASS_ID(ParsePredicate,         If, 3)
 678         DEFINE_CLASS_ID(NeverBranch, MultiBranch, 2)
 679       DEFINE_CLASS_ID(Start,       Multi, 2)
 680       DEFINE_CLASS_ID(MemBar,      Multi, 3)
 681         DEFINE_CLASS_ID(Initialize,       MemBar, 0)
 682         DEFINE_CLASS_ID(MemBarStoreStore, MemBar, 1)

 683 
 684     DEFINE_CLASS_ID(Mach,  Node, 1)
 685       DEFINE_CLASS_ID(MachReturn, Mach, 0)
 686         DEFINE_CLASS_ID(MachSafePoint, MachReturn, 0)
 687           DEFINE_CLASS_ID(MachCall, MachSafePoint, 0)
 688             DEFINE_CLASS_ID(MachCallJava,         MachCall, 0)
 689               DEFINE_CLASS_ID(MachCallStaticJava,   MachCallJava, 0)
 690               DEFINE_CLASS_ID(MachCallDynamicJava,  MachCallJava, 1)
 691             DEFINE_CLASS_ID(MachCallRuntime,      MachCall, 1)
 692               DEFINE_CLASS_ID(MachCallLeaf,         MachCallRuntime, 0)
 693       DEFINE_CLASS_ID(MachBranch, Mach, 1)
 694         DEFINE_CLASS_ID(MachIf,         MachBranch, 0)
 695         DEFINE_CLASS_ID(MachGoto,       MachBranch, 1)
 696         DEFINE_CLASS_ID(MachNullCheck,  MachBranch, 2)
 697       DEFINE_CLASS_ID(MachSpillCopy,    Mach, 2)
 698       DEFINE_CLASS_ID(MachTemp,         Mach, 3)
 699       DEFINE_CLASS_ID(MachConstantBase, Mach, 4)
 700       DEFINE_CLASS_ID(MachConstant,     Mach, 5)
 701         DEFINE_CLASS_ID(MachJump,       MachConstant, 0)
 702       DEFINE_CLASS_ID(MachMerge,        Mach, 6)
 703       DEFINE_CLASS_ID(MachMemBar,       Mach, 7)


 704 
 705     DEFINE_CLASS_ID(Type,  Node, 2)
 706       DEFINE_CLASS_ID(Phi,   Type, 0)
 707       DEFINE_CLASS_ID(ConstraintCast, Type, 1)
 708         DEFINE_CLASS_ID(CastII, ConstraintCast, 0)
 709         DEFINE_CLASS_ID(CheckCastPP, ConstraintCast, 1)
 710         DEFINE_CLASS_ID(CastLL, ConstraintCast, 2)
 711         DEFINE_CLASS_ID(CastFF, ConstraintCast, 3)
 712         DEFINE_CLASS_ID(CastDD, ConstraintCast, 4)
 713         DEFINE_CLASS_ID(CastVV, ConstraintCast, 5)
 714       DEFINE_CLASS_ID(CMove, Type, 3)
 715       DEFINE_CLASS_ID(SafePointScalarObject, Type, 4)
 716       DEFINE_CLASS_ID(DecodeNarrowPtr, Type, 5)
 717         DEFINE_CLASS_ID(DecodeN, DecodeNarrowPtr, 0)
 718         DEFINE_CLASS_ID(DecodeNKlass, DecodeNarrowPtr, 1)
 719       DEFINE_CLASS_ID(EncodeNarrowPtr, Type, 6)
 720         DEFINE_CLASS_ID(EncodeP, EncodeNarrowPtr, 0)
 721         DEFINE_CLASS_ID(EncodePKlass, EncodeNarrowPtr, 1)
 722       DEFINE_CLASS_ID(Vector, Type, 7)
 723         DEFINE_CLASS_ID(VectorMaskCmp, Vector, 0)
 724         DEFINE_CLASS_ID(VectorUnbox, Vector, 1)
 725         DEFINE_CLASS_ID(VectorReinterpret, Vector, 2)
 726         DEFINE_CLASS_ID(ShiftV, Vector, 3)
 727         DEFINE_CLASS_ID(CompressV, Vector, 4)
 728         DEFINE_CLASS_ID(ExpandV, Vector, 5)
 729         DEFINE_CLASS_ID(CompressM, Vector, 6)
 730         DEFINE_CLASS_ID(Reduction, Vector, 7)
 731           DEFINE_CLASS_ID(UnorderedReduction, Reduction, 0)
 732         DEFINE_CLASS_ID(NegV, Vector, 8)
 733       DEFINE_CLASS_ID(Con, Type, 8)

 734           DEFINE_CLASS_ID(ConI, Con, 0)
 735       DEFINE_CLASS_ID(SafePointScalarMerge, Type, 9)
 736       DEFINE_CLASS_ID(Convert, Type, 10)
 737 
 738 
 739     DEFINE_CLASS_ID(Proj,  Node, 3)
 740       DEFINE_CLASS_ID(CatchProj, Proj, 0)
 741       DEFINE_CLASS_ID(JumpProj,  Proj, 1)
 742       DEFINE_CLASS_ID(IfProj,    Proj, 2)
 743         DEFINE_CLASS_ID(IfTrue,    IfProj, 0)
 744         DEFINE_CLASS_ID(IfFalse,   IfProj, 1)
 745       DEFINE_CLASS_ID(Parm,      Proj, 4)
 746       DEFINE_CLASS_ID(MachProj,  Proj, 5)
 747 
 748     DEFINE_CLASS_ID(Mem, Node, 4)
 749       DEFINE_CLASS_ID(Load, Mem, 0)
 750         DEFINE_CLASS_ID(LoadVector,  Load, 0)
 751           DEFINE_CLASS_ID(LoadVectorGather, LoadVector, 0)
 752           DEFINE_CLASS_ID(LoadVectorGatherMasked, LoadVector, 1)
 753           DEFINE_CLASS_ID(LoadVectorMasked, LoadVector, 2)
 754       DEFINE_CLASS_ID(Store, Mem, 1)
 755         DEFINE_CLASS_ID(StoreVector, Store, 0)
 756           DEFINE_CLASS_ID(StoreVectorScatter, StoreVector, 0)
 757           DEFINE_CLASS_ID(StoreVectorScatterMasked, StoreVector, 1)
 758           DEFINE_CLASS_ID(StoreVectorMasked, StoreVector, 2)
 759       DEFINE_CLASS_ID(LoadStore, Mem, 2)
 760         DEFINE_CLASS_ID(LoadStoreConditional, LoadStore, 0)
 761           DEFINE_CLASS_ID(CompareAndSwap, LoadStoreConditional, 0)
 762         DEFINE_CLASS_ID(CompareAndExchangeNode, LoadStore, 1)
 763 
 764     DEFINE_CLASS_ID(Region, Node, 5)
 765       DEFINE_CLASS_ID(Loop, Region, 0)
 766         DEFINE_CLASS_ID(Root,                Loop, 0)
 767         DEFINE_CLASS_ID(BaseCountedLoop,     Loop, 1)
 768           DEFINE_CLASS_ID(CountedLoop,       BaseCountedLoop, 0)
 769           DEFINE_CLASS_ID(LongCountedLoop,   BaseCountedLoop, 1)
 770         DEFINE_CLASS_ID(OuterStripMinedLoop, Loop, 2)
 771 
 772     DEFINE_CLASS_ID(Sub,   Node, 6)
 773       DEFINE_CLASS_ID(Cmp,   Sub, 0)
 774         DEFINE_CLASS_ID(FastLock,   Cmp, 0)
 775         DEFINE_CLASS_ID(FastUnlock, Cmp, 1)
 776         DEFINE_CLASS_ID(SubTypeCheck,Cmp, 2)

 777 
 778     DEFINE_CLASS_ID(MergeMem, Node, 7)
 779     DEFINE_CLASS_ID(Bool,     Node, 8)
 780     DEFINE_CLASS_ID(AddP,     Node, 9)
 781     DEFINE_CLASS_ID(BoxLock,  Node, 10)
 782     DEFINE_CLASS_ID(Add,      Node, 11)
 783     DEFINE_CLASS_ID(Mul,      Node, 12)
 784     DEFINE_CLASS_ID(ClearArray, Node, 14)
 785     DEFINE_CLASS_ID(Halt,     Node, 15)
 786     DEFINE_CLASS_ID(Opaque1,  Node, 16)
 787     DEFINE_CLASS_ID(Move,     Node, 17)
 788     DEFINE_CLASS_ID(LShift,   Node, 18)
 789     DEFINE_CLASS_ID(Neg,      Node, 19)
 790 
 791     _max_classes  = ClassMask_Neg
 792   };
 793   #undef DEFINE_CLASS_ID
 794 
 795   // Flags are sorted by usage frequency.
 796   enum NodeFlags {

 856   #define DEFINE_CLASS_QUERY(type)                           \
 857   bool is_##type() const {                                   \
 858     return ((_class_id & ClassMask_##type) == Class_##type); \
 859   }                                                          \
 860   type##Node *as_##type() const {                            \
 861     assert(is_##type(), "invalid node class: %s", Name());   \
 862     return (type##Node*)this;                                \
 863   }                                                          \
 864   type##Node* isa_##type() const {                           \
 865     return (is_##type()) ? as_##type() : nullptr;            \
 866   }
 867 
 868   DEFINE_CLASS_QUERY(AbstractLock)
 869   DEFINE_CLASS_QUERY(Add)
 870   DEFINE_CLASS_QUERY(AddP)
 871   DEFINE_CLASS_QUERY(Allocate)
 872   DEFINE_CLASS_QUERY(AllocateArray)
 873   DEFINE_CLASS_QUERY(ArrayCopy)
 874   DEFINE_CLASS_QUERY(BaseCountedLoop)
 875   DEFINE_CLASS_QUERY(BaseCountedLoopEnd)

 876   DEFINE_CLASS_QUERY(Bool)
 877   DEFINE_CLASS_QUERY(BoxLock)
 878   DEFINE_CLASS_QUERY(Call)
 879   DEFINE_CLASS_QUERY(CallDynamicJava)
 880   DEFINE_CLASS_QUERY(CallJava)
 881   DEFINE_CLASS_QUERY(CallLeaf)
 882   DEFINE_CLASS_QUERY(CallLeafNoFP)
 883   DEFINE_CLASS_QUERY(CallRuntime)
 884   DEFINE_CLASS_QUERY(CallStaticJava)
 885   DEFINE_CLASS_QUERY(Catch)
 886   DEFINE_CLASS_QUERY(CatchProj)
 887   DEFINE_CLASS_QUERY(CheckCastPP)
 888   DEFINE_CLASS_QUERY(CastII)
 889   DEFINE_CLASS_QUERY(CastLL)
 890   DEFINE_CLASS_QUERY(ConI)
 891   DEFINE_CLASS_QUERY(ConstraintCast)
 892   DEFINE_CLASS_QUERY(ClearArray)
 893   DEFINE_CLASS_QUERY(CMove)
 894   DEFINE_CLASS_QUERY(Cmp)
 895   DEFINE_CLASS_QUERY(Convert)
 896   DEFINE_CLASS_QUERY(CountedLoop)
 897   DEFINE_CLASS_QUERY(CountedLoopEnd)
 898   DEFINE_CLASS_QUERY(DecodeNarrowPtr)
 899   DEFINE_CLASS_QUERY(DecodeN)
 900   DEFINE_CLASS_QUERY(DecodeNKlass)
 901   DEFINE_CLASS_QUERY(EncodeNarrowPtr)
 902   DEFINE_CLASS_QUERY(EncodeP)
 903   DEFINE_CLASS_QUERY(EncodePKlass)
 904   DEFINE_CLASS_QUERY(FastLock)
 905   DEFINE_CLASS_QUERY(FastUnlock)

 906   DEFINE_CLASS_QUERY(Halt)
 907   DEFINE_CLASS_QUERY(If)
 908   DEFINE_CLASS_QUERY(RangeCheck)
 909   DEFINE_CLASS_QUERY(IfProj)
 910   DEFINE_CLASS_QUERY(IfFalse)
 911   DEFINE_CLASS_QUERY(IfTrue)
 912   DEFINE_CLASS_QUERY(Initialize)
 913   DEFINE_CLASS_QUERY(Jump)
 914   DEFINE_CLASS_QUERY(JumpProj)
 915   DEFINE_CLASS_QUERY(LongCountedLoop)
 916   DEFINE_CLASS_QUERY(LongCountedLoopEnd)
 917   DEFINE_CLASS_QUERY(Load)
 918   DEFINE_CLASS_QUERY(LoadStore)
 919   DEFINE_CLASS_QUERY(LoadStoreConditional)
 920   DEFINE_CLASS_QUERY(Lock)
 921   DEFINE_CLASS_QUERY(Loop)
 922   DEFINE_CLASS_QUERY(LShift)
 923   DEFINE_CLASS_QUERY(Mach)
 924   DEFINE_CLASS_QUERY(MachBranch)
 925   DEFINE_CLASS_QUERY(MachCall)
 926   DEFINE_CLASS_QUERY(MachCallDynamicJava)
 927   DEFINE_CLASS_QUERY(MachCallJava)
 928   DEFINE_CLASS_QUERY(MachCallLeaf)
 929   DEFINE_CLASS_QUERY(MachCallRuntime)
 930   DEFINE_CLASS_QUERY(MachCallStaticJava)
 931   DEFINE_CLASS_QUERY(MachConstantBase)
 932   DEFINE_CLASS_QUERY(MachConstant)
 933   DEFINE_CLASS_QUERY(MachGoto)
 934   DEFINE_CLASS_QUERY(MachIf)
 935   DEFINE_CLASS_QUERY(MachJump)
 936   DEFINE_CLASS_QUERY(MachNullCheck)
 937   DEFINE_CLASS_QUERY(MachProj)

 938   DEFINE_CLASS_QUERY(MachReturn)
 939   DEFINE_CLASS_QUERY(MachSafePoint)
 940   DEFINE_CLASS_QUERY(MachSpillCopy)
 941   DEFINE_CLASS_QUERY(MachTemp)
 942   DEFINE_CLASS_QUERY(MachMemBar)
 943   DEFINE_CLASS_QUERY(MachMerge)

 944   DEFINE_CLASS_QUERY(Mem)
 945   DEFINE_CLASS_QUERY(MemBar)
 946   DEFINE_CLASS_QUERY(MemBarStoreStore)
 947   DEFINE_CLASS_QUERY(MergeMem)
 948   DEFINE_CLASS_QUERY(Move)
 949   DEFINE_CLASS_QUERY(Mul)
 950   DEFINE_CLASS_QUERY(Multi)
 951   DEFINE_CLASS_QUERY(MultiBranch)
 952   DEFINE_CLASS_QUERY(Neg)
 953   DEFINE_CLASS_QUERY(NegV)
 954   DEFINE_CLASS_QUERY(NeverBranch)
 955   DEFINE_CLASS_QUERY(Opaque1)
 956   DEFINE_CLASS_QUERY(OuterStripMinedLoop)
 957   DEFINE_CLASS_QUERY(OuterStripMinedLoopEnd)
 958   DEFINE_CLASS_QUERY(Parm)
 959   DEFINE_CLASS_QUERY(ParsePredicate)
 960   DEFINE_CLASS_QUERY(PCTable)
 961   DEFINE_CLASS_QUERY(Phi)
 962   DEFINE_CLASS_QUERY(Proj)
 963   DEFINE_CLASS_QUERY(Reduction)
 964   DEFINE_CLASS_QUERY(Region)
 965   DEFINE_CLASS_QUERY(Root)
 966   DEFINE_CLASS_QUERY(SafePoint)
 967   DEFINE_CLASS_QUERY(SafePointScalarObject)
 968   DEFINE_CLASS_QUERY(SafePointScalarMerge)
 969   DEFINE_CLASS_QUERY(Start)
 970   DEFINE_CLASS_QUERY(Store)
 971   DEFINE_CLASS_QUERY(Sub)
 972   DEFINE_CLASS_QUERY(SubTypeCheck)
 973   DEFINE_CLASS_QUERY(Type)

 974   DEFINE_CLASS_QUERY(UnorderedReduction)
 975   DEFINE_CLASS_QUERY(Vector)
 976   DEFINE_CLASS_QUERY(VectorMaskCmp)
 977   DEFINE_CLASS_QUERY(VectorUnbox)
 978   DEFINE_CLASS_QUERY(VectorReinterpret)
 979   DEFINE_CLASS_QUERY(CompressV)
 980   DEFINE_CLASS_QUERY(ExpandV)
 981   DEFINE_CLASS_QUERY(CompressM)
 982   DEFINE_CLASS_QUERY(LoadVector)
 983   DEFINE_CLASS_QUERY(LoadVectorGather)
 984   DEFINE_CLASS_QUERY(StoreVector)
 985   DEFINE_CLASS_QUERY(StoreVectorScatter)
 986   DEFINE_CLASS_QUERY(ShiftV)
 987   DEFINE_CLASS_QUERY(Unlock)
 988 
 989   #undef DEFINE_CLASS_QUERY
 990 
 991   // duplicate of is_MachSpillCopy()
 992   bool is_SpillCopy () const {
 993     return ((_class_id & ClassMask_MachSpillCopy) == Class_MachSpillCopy);

  66 class CheckCastPPNode;
  67 class ClearArrayNode;
  68 class CmpNode;
  69 class CodeBuffer;
  70 class ConstraintCastNode;
  71 class ConNode;
  72 class ConINode;
  73 class ConvertNode;
  74 class CompareAndSwapNode;
  75 class CompareAndExchangeNode;
  76 class CountedLoopNode;
  77 class CountedLoopEndNode;
  78 class DecodeNarrowPtrNode;
  79 class DecodeNNode;
  80 class DecodeNKlassNode;
  81 class EncodeNarrowPtrNode;
  82 class EncodePNode;
  83 class EncodePKlassNode;
  84 class FastLockNode;
  85 class FastUnlockNode;
  86 class FlatArrayCheckNode;
  87 class HaltNode;
  88 class IfNode;
  89 class IfProjNode;
  90 class IfFalseNode;
  91 class IfTrueNode;
  92 class InitializeNode;
  93 class JVMState;
  94 class JumpNode;
  95 class JumpProjNode;
  96 class LoadNode;
  97 class LoadStoreNode;
  98 class LoadStoreConditionalNode;
  99 class LockNode;
 100 class LongCountedLoopNode;
 101 class LongCountedLoopEndNode;
 102 class LoopNode;
 103 class LShiftNode;
 104 class MachBranchNode;
 105 class MachCallDynamicJavaNode;
 106 class MachCallJavaNode;
 107 class MachCallLeafNode;
 108 class MachCallNode;
 109 class MachCallRuntimeNode;
 110 class MachCallStaticJavaNode;
 111 class MachConstantBaseNode;
 112 class MachConstantNode;
 113 class MachGotoNode;
 114 class MachIfNode;
 115 class MachJumpNode;
 116 class MachNode;
 117 class MachNullCheckNode;
 118 class MachProjNode;
 119 class MachPrologNode;
 120 class MachReturnNode;
 121 class MachSafePointNode;
 122 class MachSpillCopyNode;
 123 class MachTempNode;
 124 class MachMergeNode;
 125 class MachMemBarNode;
 126 class MachVEPNode;
 127 class Matcher;
 128 class MemBarNode;
 129 class MemBarStoreStoreNode;
 130 class MemNode;
 131 class MergeMemNode;
 132 class MoveNode;
 133 class MulNode;
 134 class MultiNode;
 135 class MultiBranchNode;
 136 class NegNode;
 137 class NegVNode;
 138 class NeverBranchNode;
 139 class Opaque1Node;
 140 class OuterStripMinedLoopNode;
 141 class OuterStripMinedLoopEndNode;
 142 class Node;
 143 class Node_Array;
 144 class Node_List;
 145 class Node_Stack;
 146 class OopMap;

 156 class PhiNode;
 157 class Pipeline;
 158 class PopulateIndexNode;
 159 class ProjNode;
 160 class RangeCheckNode;
 161 class ReductionNode;
 162 class RegMask;
 163 class RegionNode;
 164 class RootNode;
 165 class SafePointNode;
 166 class SafePointScalarObjectNode;
 167 class SafePointScalarMergeNode;
 168 class StartNode;
 169 class State;
 170 class StoreNode;
 171 class SubNode;
 172 class SubTypeCheckNode;
 173 class Type;
 174 class TypeNode;
 175 class UnlockNode;
 176 class InlineTypeNode;
 177 class UnorderedReductionNode;
 178 class VectorNode;
 179 class LoadVectorNode;
 180 class LoadVectorMaskedNode;
 181 class StoreVectorMaskedNode;
 182 class LoadVectorGatherNode;
 183 class StoreVectorNode;
 184 class StoreVectorScatterNode;
 185 class VerifyVectorAlignmentNode;
 186 class VectorMaskCmpNode;
 187 class VectorUnboxNode;
 188 class VectorSet;
 189 class VectorReinterpretNode;
 190 class ShiftVNode;
 191 class ExpandVNode;
 192 class CompressVNode;
 193 class CompressMNode;
 194 
 195 
 196 #ifndef OPTO_DU_ITERATOR_ASSERT

 667           DEFINE_CLASS_ID(AbstractLock,     Call, 3)
 668             DEFINE_CLASS_ID(Lock,             AbstractLock, 0)
 669             DEFINE_CLASS_ID(Unlock,           AbstractLock, 1)
 670           DEFINE_CLASS_ID(ArrayCopy,        Call, 4)
 671       DEFINE_CLASS_ID(MultiBranch, Multi, 1)
 672         DEFINE_CLASS_ID(PCTable,     MultiBranch, 0)
 673           DEFINE_CLASS_ID(Catch,       PCTable, 0)
 674           DEFINE_CLASS_ID(Jump,        PCTable, 1)
 675         DEFINE_CLASS_ID(If,          MultiBranch, 1)
 676           DEFINE_CLASS_ID(BaseCountedLoopEnd,     If, 0)
 677             DEFINE_CLASS_ID(CountedLoopEnd,       BaseCountedLoopEnd, 0)
 678             DEFINE_CLASS_ID(LongCountedLoopEnd,   BaseCountedLoopEnd, 1)
 679           DEFINE_CLASS_ID(RangeCheck,             If, 1)
 680           DEFINE_CLASS_ID(OuterStripMinedLoopEnd, If, 2)
 681           DEFINE_CLASS_ID(ParsePredicate,         If, 3)
 682         DEFINE_CLASS_ID(NeverBranch, MultiBranch, 2)
 683       DEFINE_CLASS_ID(Start,       Multi, 2)
 684       DEFINE_CLASS_ID(MemBar,      Multi, 3)
 685         DEFINE_CLASS_ID(Initialize,       MemBar, 0)
 686         DEFINE_CLASS_ID(MemBarStoreStore, MemBar, 1)
 687         DEFINE_CLASS_ID(Blackhole,        MemBar, 2)
 688 
 689     DEFINE_CLASS_ID(Mach,  Node, 1)
 690       DEFINE_CLASS_ID(MachReturn, Mach, 0)
 691         DEFINE_CLASS_ID(MachSafePoint, MachReturn, 0)
 692           DEFINE_CLASS_ID(MachCall, MachSafePoint, 0)
 693             DEFINE_CLASS_ID(MachCallJava,         MachCall, 0)
 694               DEFINE_CLASS_ID(MachCallStaticJava,   MachCallJava, 0)
 695               DEFINE_CLASS_ID(MachCallDynamicJava,  MachCallJava, 1)
 696             DEFINE_CLASS_ID(MachCallRuntime,      MachCall, 1)
 697               DEFINE_CLASS_ID(MachCallLeaf,         MachCallRuntime, 0)
 698       DEFINE_CLASS_ID(MachBranch, Mach, 1)
 699         DEFINE_CLASS_ID(MachIf,         MachBranch, 0)
 700         DEFINE_CLASS_ID(MachGoto,       MachBranch, 1)
 701         DEFINE_CLASS_ID(MachNullCheck,  MachBranch, 2)
 702       DEFINE_CLASS_ID(MachSpillCopy,    Mach, 2)
 703       DEFINE_CLASS_ID(MachTemp,         Mach, 3)
 704       DEFINE_CLASS_ID(MachConstantBase, Mach, 4)
 705       DEFINE_CLASS_ID(MachConstant,     Mach, 5)
 706         DEFINE_CLASS_ID(MachJump,       MachConstant, 0)
 707       DEFINE_CLASS_ID(MachMerge,        Mach, 6)
 708       DEFINE_CLASS_ID(MachMemBar,       Mach, 7)
 709       DEFINE_CLASS_ID(MachProlog,       Mach, 8)
 710       DEFINE_CLASS_ID(MachVEP,          Mach, 9)
 711 
 712     DEFINE_CLASS_ID(Type,  Node, 2)
 713       DEFINE_CLASS_ID(Phi,   Type, 0)
 714       DEFINE_CLASS_ID(ConstraintCast, Type, 1)
 715         DEFINE_CLASS_ID(CastII, ConstraintCast, 0)
 716         DEFINE_CLASS_ID(CheckCastPP, ConstraintCast, 1)
 717         DEFINE_CLASS_ID(CastLL, ConstraintCast, 2)
 718         DEFINE_CLASS_ID(CastFF, ConstraintCast, 3)
 719         DEFINE_CLASS_ID(CastDD, ConstraintCast, 4)
 720         DEFINE_CLASS_ID(CastVV, ConstraintCast, 5)
 721       DEFINE_CLASS_ID(CMove, Type, 3)
 722       DEFINE_CLASS_ID(SafePointScalarObject, Type, 4)
 723       DEFINE_CLASS_ID(DecodeNarrowPtr, Type, 5)
 724         DEFINE_CLASS_ID(DecodeN, DecodeNarrowPtr, 0)
 725         DEFINE_CLASS_ID(DecodeNKlass, DecodeNarrowPtr, 1)
 726       DEFINE_CLASS_ID(EncodeNarrowPtr, Type, 6)
 727         DEFINE_CLASS_ID(EncodeP, EncodeNarrowPtr, 0)
 728         DEFINE_CLASS_ID(EncodePKlass, EncodeNarrowPtr, 1)
 729       DEFINE_CLASS_ID(Vector, Type, 7)
 730         DEFINE_CLASS_ID(VectorMaskCmp, Vector, 0)
 731         DEFINE_CLASS_ID(VectorUnbox, Vector, 1)
 732         DEFINE_CLASS_ID(VectorReinterpret, Vector, 2)
 733         DEFINE_CLASS_ID(ShiftV, Vector, 3)
 734         DEFINE_CLASS_ID(CompressV, Vector, 4)
 735         DEFINE_CLASS_ID(ExpandV, Vector, 5)
 736         DEFINE_CLASS_ID(CompressM, Vector, 6)
 737         DEFINE_CLASS_ID(Reduction, Vector, 9)
 738           DEFINE_CLASS_ID(UnorderedReduction, Reduction, 0)
 739         DEFINE_CLASS_ID(NegV, Vector, 8)
 740       DEFINE_CLASS_ID(InlineType, Type, 8)
 741       DEFINE_CLASS_ID(Con, Type, 9)
 742           DEFINE_CLASS_ID(ConI, Con, 0)
 743       DEFINE_CLASS_ID(SafePointScalarMerge, Type, 10)
 744       DEFINE_CLASS_ID(Convert, Type, 11)
 745 
 746 
 747     DEFINE_CLASS_ID(Proj,  Node, 3)
 748       DEFINE_CLASS_ID(CatchProj, Proj, 0)
 749       DEFINE_CLASS_ID(JumpProj,  Proj, 1)
 750       DEFINE_CLASS_ID(IfProj,    Proj, 2)
 751         DEFINE_CLASS_ID(IfTrue,    IfProj, 0)
 752         DEFINE_CLASS_ID(IfFalse,   IfProj, 1)
 753       DEFINE_CLASS_ID(Parm,      Proj, 4)
 754       DEFINE_CLASS_ID(MachProj,  Proj, 5)
 755 
 756     DEFINE_CLASS_ID(Mem, Node, 4)
 757       DEFINE_CLASS_ID(Load, Mem, 0)
 758         DEFINE_CLASS_ID(LoadVector,  Load, 0)
 759           DEFINE_CLASS_ID(LoadVectorGather, LoadVector, 0)
 760           DEFINE_CLASS_ID(LoadVectorGatherMasked, LoadVector, 1)
 761           DEFINE_CLASS_ID(LoadVectorMasked, LoadVector, 2)
 762       DEFINE_CLASS_ID(Store, Mem, 1)
 763         DEFINE_CLASS_ID(StoreVector, Store, 0)
 764           DEFINE_CLASS_ID(StoreVectorScatter, StoreVector, 0)
 765           DEFINE_CLASS_ID(StoreVectorScatterMasked, StoreVector, 1)
 766           DEFINE_CLASS_ID(StoreVectorMasked, StoreVector, 2)
 767       DEFINE_CLASS_ID(LoadStore, Mem, 2)
 768         DEFINE_CLASS_ID(LoadStoreConditional, LoadStore, 0)
 769           DEFINE_CLASS_ID(CompareAndSwap, LoadStoreConditional, 0)
 770         DEFINE_CLASS_ID(CompareAndExchangeNode, LoadStore, 1)
 771 
 772     DEFINE_CLASS_ID(Region, Node, 5)
 773       DEFINE_CLASS_ID(Loop, Region, 0)
 774         DEFINE_CLASS_ID(Root,                Loop, 0)
 775         DEFINE_CLASS_ID(BaseCountedLoop,     Loop, 1)
 776           DEFINE_CLASS_ID(CountedLoop,       BaseCountedLoop, 0)
 777           DEFINE_CLASS_ID(LongCountedLoop,   BaseCountedLoop, 1)
 778         DEFINE_CLASS_ID(OuterStripMinedLoop, Loop, 2)
 779 
 780     DEFINE_CLASS_ID(Sub,   Node, 6)
 781       DEFINE_CLASS_ID(Cmp,   Sub, 0)
 782         DEFINE_CLASS_ID(FastLock,       Cmp, 0)
 783         DEFINE_CLASS_ID(FastUnlock,     Cmp, 1)
 784         DEFINE_CLASS_ID(SubTypeCheck,   Cmp, 2)
 785         DEFINE_CLASS_ID(FlatArrayCheck, Cmp, 3)
 786 
 787     DEFINE_CLASS_ID(MergeMem, Node, 7)
 788     DEFINE_CLASS_ID(Bool,     Node, 8)
 789     DEFINE_CLASS_ID(AddP,     Node, 9)
 790     DEFINE_CLASS_ID(BoxLock,  Node, 10)
 791     DEFINE_CLASS_ID(Add,      Node, 11)
 792     DEFINE_CLASS_ID(Mul,      Node, 12)
 793     DEFINE_CLASS_ID(ClearArray, Node, 14)
 794     DEFINE_CLASS_ID(Halt,     Node, 15)
 795     DEFINE_CLASS_ID(Opaque1,  Node, 16)
 796     DEFINE_CLASS_ID(Move,     Node, 17)
 797     DEFINE_CLASS_ID(LShift,   Node, 18)
 798     DEFINE_CLASS_ID(Neg,      Node, 19)
 799 
 800     _max_classes  = ClassMask_Neg
 801   };
 802   #undef DEFINE_CLASS_ID
 803 
 804   // Flags are sorted by usage frequency.
 805   enum NodeFlags {

 865   #define DEFINE_CLASS_QUERY(type)                           \
 866   bool is_##type() const {                                   \
 867     return ((_class_id & ClassMask_##type) == Class_##type); \
 868   }                                                          \
 869   type##Node *as_##type() const {                            \
 870     assert(is_##type(), "invalid node class: %s", Name());   \
 871     return (type##Node*)this;                                \
 872   }                                                          \
 873   type##Node* isa_##type() const {                           \
 874     return (is_##type()) ? as_##type() : nullptr;            \
 875   }
 876 
 877   DEFINE_CLASS_QUERY(AbstractLock)
 878   DEFINE_CLASS_QUERY(Add)
 879   DEFINE_CLASS_QUERY(AddP)
 880   DEFINE_CLASS_QUERY(Allocate)
 881   DEFINE_CLASS_QUERY(AllocateArray)
 882   DEFINE_CLASS_QUERY(ArrayCopy)
 883   DEFINE_CLASS_QUERY(BaseCountedLoop)
 884   DEFINE_CLASS_QUERY(BaseCountedLoopEnd)
 885   DEFINE_CLASS_QUERY(Blackhole)
 886   DEFINE_CLASS_QUERY(Bool)
 887   DEFINE_CLASS_QUERY(BoxLock)
 888   DEFINE_CLASS_QUERY(Call)
 889   DEFINE_CLASS_QUERY(CallDynamicJava)
 890   DEFINE_CLASS_QUERY(CallJava)
 891   DEFINE_CLASS_QUERY(CallLeaf)
 892   DEFINE_CLASS_QUERY(CallLeafNoFP)
 893   DEFINE_CLASS_QUERY(CallRuntime)
 894   DEFINE_CLASS_QUERY(CallStaticJava)
 895   DEFINE_CLASS_QUERY(Catch)
 896   DEFINE_CLASS_QUERY(CatchProj)
 897   DEFINE_CLASS_QUERY(CheckCastPP)
 898   DEFINE_CLASS_QUERY(CastII)
 899   DEFINE_CLASS_QUERY(CastLL)
 900   DEFINE_CLASS_QUERY(ConI)
 901   DEFINE_CLASS_QUERY(ConstraintCast)
 902   DEFINE_CLASS_QUERY(ClearArray)
 903   DEFINE_CLASS_QUERY(CMove)
 904   DEFINE_CLASS_QUERY(Cmp)
 905   DEFINE_CLASS_QUERY(Convert)
 906   DEFINE_CLASS_QUERY(CountedLoop)
 907   DEFINE_CLASS_QUERY(CountedLoopEnd)
 908   DEFINE_CLASS_QUERY(DecodeNarrowPtr)
 909   DEFINE_CLASS_QUERY(DecodeN)
 910   DEFINE_CLASS_QUERY(DecodeNKlass)
 911   DEFINE_CLASS_QUERY(EncodeNarrowPtr)
 912   DEFINE_CLASS_QUERY(EncodeP)
 913   DEFINE_CLASS_QUERY(EncodePKlass)
 914   DEFINE_CLASS_QUERY(FastLock)
 915   DEFINE_CLASS_QUERY(FastUnlock)
 916   DEFINE_CLASS_QUERY(FlatArrayCheck)
 917   DEFINE_CLASS_QUERY(Halt)
 918   DEFINE_CLASS_QUERY(If)
 919   DEFINE_CLASS_QUERY(RangeCheck)
 920   DEFINE_CLASS_QUERY(IfProj)
 921   DEFINE_CLASS_QUERY(IfFalse)
 922   DEFINE_CLASS_QUERY(IfTrue)
 923   DEFINE_CLASS_QUERY(Initialize)
 924   DEFINE_CLASS_QUERY(Jump)
 925   DEFINE_CLASS_QUERY(JumpProj)
 926   DEFINE_CLASS_QUERY(LongCountedLoop)
 927   DEFINE_CLASS_QUERY(LongCountedLoopEnd)
 928   DEFINE_CLASS_QUERY(Load)
 929   DEFINE_CLASS_QUERY(LoadStore)
 930   DEFINE_CLASS_QUERY(LoadStoreConditional)
 931   DEFINE_CLASS_QUERY(Lock)
 932   DEFINE_CLASS_QUERY(Loop)
 933   DEFINE_CLASS_QUERY(LShift)
 934   DEFINE_CLASS_QUERY(Mach)
 935   DEFINE_CLASS_QUERY(MachBranch)
 936   DEFINE_CLASS_QUERY(MachCall)
 937   DEFINE_CLASS_QUERY(MachCallDynamicJava)
 938   DEFINE_CLASS_QUERY(MachCallJava)
 939   DEFINE_CLASS_QUERY(MachCallLeaf)
 940   DEFINE_CLASS_QUERY(MachCallRuntime)
 941   DEFINE_CLASS_QUERY(MachCallStaticJava)
 942   DEFINE_CLASS_QUERY(MachConstantBase)
 943   DEFINE_CLASS_QUERY(MachConstant)
 944   DEFINE_CLASS_QUERY(MachGoto)
 945   DEFINE_CLASS_QUERY(MachIf)
 946   DEFINE_CLASS_QUERY(MachJump)
 947   DEFINE_CLASS_QUERY(MachNullCheck)
 948   DEFINE_CLASS_QUERY(MachProj)
 949   DEFINE_CLASS_QUERY(MachProlog)
 950   DEFINE_CLASS_QUERY(MachReturn)
 951   DEFINE_CLASS_QUERY(MachSafePoint)
 952   DEFINE_CLASS_QUERY(MachSpillCopy)
 953   DEFINE_CLASS_QUERY(MachTemp)
 954   DEFINE_CLASS_QUERY(MachMemBar)
 955   DEFINE_CLASS_QUERY(MachMerge)
 956   DEFINE_CLASS_QUERY(MachVEP)
 957   DEFINE_CLASS_QUERY(Mem)
 958   DEFINE_CLASS_QUERY(MemBar)
 959   DEFINE_CLASS_QUERY(MemBarStoreStore)
 960   DEFINE_CLASS_QUERY(MergeMem)
 961   DEFINE_CLASS_QUERY(Move)
 962   DEFINE_CLASS_QUERY(Mul)
 963   DEFINE_CLASS_QUERY(Multi)
 964   DEFINE_CLASS_QUERY(MultiBranch)
 965   DEFINE_CLASS_QUERY(Neg)
 966   DEFINE_CLASS_QUERY(NegV)
 967   DEFINE_CLASS_QUERY(NeverBranch)
 968   DEFINE_CLASS_QUERY(Opaque1)
 969   DEFINE_CLASS_QUERY(OuterStripMinedLoop)
 970   DEFINE_CLASS_QUERY(OuterStripMinedLoopEnd)
 971   DEFINE_CLASS_QUERY(Parm)
 972   DEFINE_CLASS_QUERY(ParsePredicate)
 973   DEFINE_CLASS_QUERY(PCTable)
 974   DEFINE_CLASS_QUERY(Phi)
 975   DEFINE_CLASS_QUERY(Proj)
 976   DEFINE_CLASS_QUERY(Reduction)
 977   DEFINE_CLASS_QUERY(Region)
 978   DEFINE_CLASS_QUERY(Root)
 979   DEFINE_CLASS_QUERY(SafePoint)
 980   DEFINE_CLASS_QUERY(SafePointScalarObject)
 981   DEFINE_CLASS_QUERY(SafePointScalarMerge)
 982   DEFINE_CLASS_QUERY(Start)
 983   DEFINE_CLASS_QUERY(Store)
 984   DEFINE_CLASS_QUERY(Sub)
 985   DEFINE_CLASS_QUERY(SubTypeCheck)
 986   DEFINE_CLASS_QUERY(Type)
 987   DEFINE_CLASS_QUERY(InlineType)
 988   DEFINE_CLASS_QUERY(UnorderedReduction)
 989   DEFINE_CLASS_QUERY(Vector)
 990   DEFINE_CLASS_QUERY(VectorMaskCmp)
 991   DEFINE_CLASS_QUERY(VectorUnbox)
 992   DEFINE_CLASS_QUERY(VectorReinterpret)
 993   DEFINE_CLASS_QUERY(CompressV)
 994   DEFINE_CLASS_QUERY(ExpandV)
 995   DEFINE_CLASS_QUERY(CompressM)
 996   DEFINE_CLASS_QUERY(LoadVector)
 997   DEFINE_CLASS_QUERY(LoadVectorGather)
 998   DEFINE_CLASS_QUERY(StoreVector)
 999   DEFINE_CLASS_QUERY(StoreVectorScatter)
1000   DEFINE_CLASS_QUERY(ShiftV)
1001   DEFINE_CLASS_QUERY(Unlock)
1002 
1003   #undef DEFINE_CLASS_QUERY
1004 
1005   // duplicate of is_MachSpillCopy()
1006   bool is_SpillCopy () const {
1007     return ((_class_id & ClassMask_MachSpillCopy) == Class_MachSpillCopy);
< prev index next >