Lines Matching refs:n1
49 Node* n1 = Node::New(zone(), 1, &kOp1, 1, &n0, false);
51 EXPECT_THAT(n0->uses(), UnorderedElementsAre(n1));
52 EXPECT_EQ(0, n1->UseCount());
53 EXPECT_EQ(1, n1->InputCount());
54 EXPECT_EQ(n0, n1->InputAt(0));
55 Node* n0_n1[] = {n0, n1};
58 EXPECT_THAT(n0->uses(), UnorderedElementsAre(n1, n2));
59 EXPECT_THAT(n1->uses(), UnorderedElementsAre(n2));
62 EXPECT_EQ(n1, n2->InputAt(1));
74 Node* n1 = Node::New(zone(), 1, &kOp1, 1, &n0, false);
75 EXPECT_THAT(n1->inputs(), ElementsAre(n0));
81 Node* n1 = Node::New(zone(), 1, &kOp1, 1, &n0, false);
82 Node* n0_n1[] = {n0, n1};
84 EXPECT_THAT(n2->inputs(), ElementsAre(n0, n1));
96 Node* n1 = Node::New(zone(), 1, &kOp1, 1, &n0, false);
97 EXPECT_THAT(n0->uses(), ElementsAre(n1));
103 Node* n1 = Node::New(zone(), 1, &kOp1, 1, &n0, false);
104 Node* n0_n1[] = {n0, n1};
106 EXPECT_THAT(n0->uses(), UnorderedElementsAre(n1, n2));
113 Node* n1 = Node::New(zone(), 1, &kOp1, 1, &n0, false);
115 EXPECT_FALSE(n1->OwnedBy(n1));
116 EXPECT_TRUE(n0->OwnedBy(n1));
117 Node* n0_n1[] = {n0, n1};
120 EXPECT_FALSE(n1->OwnedBy(n1));
122 EXPECT_FALSE(n0->OwnedBy(n1));
124 EXPECT_TRUE(n1->OwnedBy(n2));
125 EXPECT_TRUE(n0->OwnedBy(n1, n2));
127 EXPECT_TRUE(n0->OwnedBy(n1));
128 EXPECT_TRUE(n1->OwnedBy(n2));
130 EXPECT_FALSE(n0->OwnedBy(n1));
131 EXPECT_FALSE(n1->OwnedBy(n2));
137 Node* n1 = Node::New(zone(), 1, &kOp1, 1, &n0, false);
138 Node* n0_n1[] = {n0, n1};
144 node->ReplaceUses(n1);
153 Node* n1 = Node::New(zone(), 1, &kOp1, 1, &n0, false);
159 node->AppendInput(zone(), n1);
160 EXPECT_THAT(node->inputs(), ElementsAre(n0, n1));
162 EXPECT_THAT(node->inputs(), ElementsAre(n0, n1, n0));
164 EXPECT_THAT(node->inputs(), ElementsAre(n0, n1, n0, n0));
165 node->AppendInput(zone(), n1);
166 EXPECT_THAT(node->inputs(), ElementsAre(n0, n1, n0, n0, n1));
172 Node* n1 = Node::New(zone(), 1, &kOp0, 0, nullptr, false);
192 node->AppendInput(zone(), n1);
194 EXPECT_THAT(node->inputs(), ElementsAre(n1));
198 EXPECT_THAT(node->inputs(), ElementsAre(n1, n2));
202 EXPECT_THAT(node->inputs(), ElementsAre(n1));
206 EXPECT_THAT(node->inputs(), ElementsAre(n1, n3));
210 EXPECT_THAT(node->inputs(), ElementsAre(n1, n3, n4));
214 EXPECT_THAT(node->inputs(), ElementsAre(n1, n3, n4, n5));
218 EXPECT_THAT(node->inputs(), ElementsAre(n1, n3, n4, n5, n6));
222 EXPECT_THAT(node->inputs(), ElementsAre(n1, n3, n4, n5, n6, n7));
225 EXPECT_THAT(node->inputs(), ElementsAre(n1, n3, n4, n5));
229 EXPECT_THAT(node->inputs(), ElementsAre(n1, n3, n4, n5, n8));
233 EXPECT_THAT(node->inputs(), ElementsAre(n1, n3, n4, n5, n8, n9));
242 Node* n1 = Node::New(zone(), 1, &kOp1, 1, &n0, false);
245 inputs[i] = i & 1 ? n0 : n1;