Lines Matching refs:edge
85 bool NodeProperties::IsValueEdge(Edge edge) { in IsValueEdge() argument
86 Node* const node = edge.from(); in IsValueEdge()
87 return IsInputRange(edge, FirstValueIndex(node), in IsValueEdge()
93 bool NodeProperties::IsContextEdge(Edge edge) { in IsContextEdge() argument
94 Node* const node = edge.from(); in IsContextEdge()
95 return IsInputRange(edge, FirstContextIndex(node), in IsContextEdge()
101 bool NodeProperties::IsFrameStateEdge(Edge edge) { in IsFrameStateEdge() argument
102 Node* const node = edge.from(); in IsFrameStateEdge()
103 return IsInputRange(edge, FirstFrameStateIndex(node), in IsFrameStateEdge()
109 bool NodeProperties::IsEffectEdge(Edge edge) { in IsEffectEdge() argument
110 Node* const node = edge.from(); in IsEffectEdge()
111 return IsInputRange(edge, FirstEffectIndex(node), in IsEffectEdge()
117 bool NodeProperties::IsControlEdge(Edge edge) { in IsControlEdge() argument
118 Node* const node = edge.from(); in IsControlEdge()
119 return IsInputRange(edge, FirstControlIndex(node), in IsControlEdge()
126 for (Edge const edge : node->use_edges()) { in IsExceptionalCall() local
127 if (!NodeProperties::IsControlEdge(edge)) continue; in IsExceptionalCall()
128 if (edge.from()->opcode() == IrOpcode::kIfException) return true; in IsExceptionalCall()
213 for (Edge edge : node->use_edges()) { in ReplaceUses() local
214 if (IsControlEdge(edge)) { in ReplaceUses()
215 if (edge.from()->opcode() == IrOpcode::kIfSuccess) { in ReplaceUses()
217 edge.UpdateTo(success); in ReplaceUses()
218 } else if (edge.from()->opcode() == IrOpcode::kIfException) { in ReplaceUses()
220 edge.UpdateTo(exception); in ReplaceUses()
224 } else if (IsEffectEdge(edge)) { in ReplaceUses()
226 edge.UpdateTo(effect); in ReplaceUses()
229 edge.UpdateTo(value); in ReplaceUses()
262 for (Edge const edge : node->use_edges()) { in CollectControlProjections() local
263 if (!IsControlEdge(edge)) continue; in CollectControlProjections()
264 Node* use = edge.from(); in CollectControlProjections()
408 bool NodeProperties::IsInputRange(Edge edge, int first, int num) { in IsInputRange() argument
410 int const index = edge.index(); in IsInputRange()