@@ -156,7 +156,7 @@ class Node extends TIRDataFlowNode {
156156 * If `isGLValue()` holds, then the type of this node
157157 * should be thought of as "pointer to `getType()`".
158158 */
159- DataFlowType getType ( ) { none ( ) } // overridden in subclasses
159+ Type getType ( ) { none ( ) } // overridden in subclasses
160160
161161 /** Gets the instruction corresponding to this node, if any. */
162162 Instruction asInstruction ( ) { result = this .( InstructionNode ) .getInstruction ( ) }
@@ -541,7 +541,7 @@ class Node extends TIRDataFlowNode {
541541 /**
542542 * Gets an upper bound on the type of this node.
543543 */
544- DataFlowType getTypeBound ( ) { result = this .getType ( ) }
544+ Type getTypeBound ( ) { result = this .getType ( ) }
545545
546546 /** Gets the location of this element. */
547547 cached
@@ -585,7 +585,7 @@ private class Node0 extends Node, TNode0 {
585585
586586 override string toStringImpl ( ) { result = node .toString ( ) }
587587
588- override DataFlowType getType ( ) { result = node .getType ( ) }
588+ override Type getType ( ) { result = node .getType ( ) }
589589
590590 override predicate isGLValue ( ) { node .isGLValue ( ) }
591591}
@@ -704,7 +704,7 @@ class SsaSynthNode extends Node, TSsaSynthNode {
704704
705705 override Declaration getFunction ( ) { result = node .getBasicBlock ( ) .getEnclosingFunction ( ) }
706706
707- override DataFlowType getType ( ) { result = node .getSourceVariable ( ) .getType ( ) }
707+ override Type getType ( ) { result = node .getSourceVariable ( ) .getType ( ) }
708708
709709 override predicate isGLValue ( ) { node .getSourceVariable ( ) .isGLValue ( ) }
710710
@@ -732,7 +732,7 @@ class SsaIteratorNode extends Node, TSsaIteratorNode {
732732
733733 override Declaration getFunction ( ) { result = node .getFunction ( ) }
734734
735- override DataFlowType getType ( ) { result = node .getType ( ) }
735+ override Type getType ( ) { result = node .getType ( ) }
736736
737737 final override Location getLocationImpl ( ) { result = node .getLocation ( ) }
738738
@@ -792,7 +792,7 @@ class FinalGlobalValue extends Node, TFinalGlobalValue {
792792
793793 override Declaration getFunction ( ) { result = globalUse .getIRFunction ( ) .getFunction ( ) }
794794
795- override DataFlowType getType ( ) {
795+ override Type getType ( ) {
796796 exists ( int indirectionIndex |
797797 indirectionIndex = globalUse .getIndirectionIndex ( ) and
798798 result = getTypeImpl ( globalUse .getUnderlyingType ( ) , indirectionIndex )
@@ -826,7 +826,7 @@ class InitialGlobalValue extends Node, TInitialGlobalValue {
826826
827827 final override predicate isGLValue ( ) { globalDef .getIndirectionIndex ( ) = 0 }
828828
829- override DataFlowType getType ( ) { result = globalDef .getUnderlyingType ( ) }
829+ override Type getType ( ) { result = globalDef .getUnderlyingType ( ) }
830830
831831 final override Location getLocationImpl ( ) { result = globalDef .getLocation ( ) }
832832
@@ -853,7 +853,7 @@ class BodyLessParameterNodeImpl extends Node, TBodyLessParameterNodeImpl {
853853 /** Gets the indirection index of this node. */
854854 int getIndirectionIndex ( ) { result = indirectionIndex }
855855
856- override DataFlowType getType ( ) {
856+ override Type getType ( ) {
857857 result = getTypeImpl ( p .getUnderlyingType ( ) , this .getIndirectionIndex ( ) )
858858 }
859859
@@ -1117,8 +1117,8 @@ private module RawIndirectNodes {
11171117
11181118 override predicate isGLValue ( ) { this .getOperand ( ) .isGLValue ( ) }
11191119
1120- override DataFlowType getType ( ) {
1121- exists ( int sub , DataFlowType type , boolean isGLValue |
1120+ override Type getType ( ) {
1121+ exists ( int sub , Type type , boolean isGLValue |
11221122 type = getOperandType ( this .getOperand ( ) , isGLValue ) and
11231123 if isGLValue = true then sub = 1 else sub = 0
11241124 |
@@ -1163,7 +1163,7 @@ private module RawIndirectNodes {
11631163
11641164 override predicate isGLValue ( ) { this .getInstruction ( ) .isGLValue ( ) }
11651165
1166- override DataFlowType getType ( ) {
1166+ override Type getType ( ) {
11671167 exists ( int sub , DataFlowType type , boolean isGLValue |
11681168 type = getInstructionType ( this .getInstruction ( ) , isGLValue ) and
11691169 if isGLValue = true then sub = 1 else sub = 0
@@ -1263,7 +1263,7 @@ class FinalParameterNode extends Node, TFinalParameterNode {
12631263 result .asSourceCallable ( ) = this .getFunction ( )
12641264 }
12651265
1266- override DataFlowType getType ( ) { result = getTypeImpl ( p .getUnderlyingType ( ) , indirectionIndex ) }
1266+ override Type getType ( ) { result = getTypeImpl ( p .getUnderlyingType ( ) , indirectionIndex ) }
12671267
12681268 final override Location getLocationImpl ( ) {
12691269 // Parameters can have multiple locations. When there's a unique location we use
@@ -1539,7 +1539,7 @@ abstract class PostUpdateNode extends Node {
15391539 */
15401540 abstract Node getPreUpdateNode ( ) ;
15411541
1542- final override DataFlowType getType ( ) { result = this .getPreUpdateNode ( ) .getType ( ) }
1542+ final override Type getType ( ) { result = this .getPreUpdateNode ( ) .getType ( ) }
15431543}
15441544
15451545/**
@@ -1632,9 +1632,7 @@ class VariableNode extends Node, TGlobalLikeVariableNode {
16321632 result .asSourceCallable ( ) = v
16331633 }
16341634
1635- override DataFlowType getType ( ) {
1636- result = getTypeImpl ( v .getUnderlyingType ( ) , indirectionIndex - 1 )
1637- }
1635+ override Type getType ( ) { result = getTypeImpl ( v .getUnderlyingType ( ) , indirectionIndex - 1 ) }
16381636
16391637 final override Location getLocationImpl ( ) {
16401638 // Certain variables (such as parameters) can have multiple locations.
0 commit comments