Lines Matching refs:edge

26 bool NodeProperties::IsValueEdge(Edge edge) {
27 Node* const node = edge.from();
28 return IsInputRange(edge, FirstValueIndex(node),
34 bool NodeProperties::IsContextEdge(Edge edge) {
35 Node* const node = edge.from();
36 return IsInputRange(edge, FirstContextIndex(node),
42 bool NodeProperties::IsFrameStateEdge(Edge edge) {
43 Node* const node = edge.from();
44 return IsInputRange(edge, FirstFrameStateIndex(node),
50 bool NodeProperties::IsEffectEdge(Edge edge) {
51 Node* const node = edge.from();
52 return IsInputRange(edge, FirstEffectIndex(node),
58 bool NodeProperties::IsControlEdge(Edge edge) {
59 Node* const node = edge.from();
60 return IsInputRange(edge, FirstControlIndex(node),
68 for (Edge const edge : node->use_edges()) {
69 if (!NodeProperties::IsControlEdge(edge)) continue;
70 if (edge.from()->opcode() == IrOpcode::kIfException) {
71 if (out_exception != nullptr) *out_exception = edge.from();
82 for (Edge const edge : node->use_edges()) {
83 if (!NodeProperties::IsControlEdge(edge)) continue;
84 if (edge.from()->opcode() == IrOpcode::kIfSuccess) {
85 return edge.from();
181 for (Edge edge : node->use_edges()) {
182 if (IsControlEdge(edge)) {
183 if (edge.from()->opcode() == IrOpcode::kIfSuccess) {
185 edge.UpdateTo(success);
186 } else if (edge.from()->opcode() == IrOpcode::kIfException) {
188 edge.UpdateTo(exception);
191 edge.UpdateTo(success);
193 } else if (IsEffectEdge(edge)) {
195 edge.UpdateTo(effect);
198 edge.UpdateTo(value);
248 for (Edge const edge : node->use_edges()) {
249 if (!IsValueEdge(edge)) continue;
250 Node* use = edge.from();
265 for (Edge const edge : node->use_edges()) {
266 if (!IsControlEdge(edge)) continue;
267 Node* use = edge.from();
636 bool NodeProperties::IsInputRange(Edge edge, int first, int num) {
638 int const index = edge.index();