Lines Matching defs:op
91 const Operator* op = (simplified.*pop.constructor)();
93 EXPECT_EQ(pop.value_input_count, op->ValueInputCount());
94 EXPECT_EQ(0, op->EffectInputCount());
95 EXPECT_EQ(0, op->ControlInputCount());
96 EXPECT_EQ(pop.value_input_count, OperatorProperties::GetTotalInputCount(op));
98 EXPECT_EQ(1, op->ValueOutputCount());
99 EXPECT_EQ(0, op->EffectOutputCount());
100 EXPECT_EQ(0, op->ControlOutputCount());
107 const Operator* op = (simplified.*pop.constructor)();
108 EXPECT_EQ(pop.opcode, op->opcode());
115 const Operator* op = (simplified.*pop.constructor)();
116 EXPECT_EQ(pop.properties, op->properties() & pop.properties);
154 const Operator* op = simplified.LoadBuffer(access);
156 EXPECT_EQ(IrOpcode::kLoadBuffer, op->opcode());
157 EXPECT_EQ(Operator::kNoThrow | Operator::kNoWrite, op->properties());
158 EXPECT_EQ(access, BufferAccessOf(op));
160 EXPECT_EQ(3, op->ValueInputCount());
161 EXPECT_EQ(1, op->EffectInputCount());
162 EXPECT_EQ(1, op->ControlInputCount());
163 EXPECT_EQ(5, OperatorProperties::GetTotalInputCount(op));
165 EXPECT_EQ(1, op->ValueOutputCount());
166 EXPECT_EQ(1, op->EffectOutputCount());
167 EXPECT_EQ(0, op->ControlOutputCount());
174 const Operator* op = simplified.StoreBuffer(access);
176 EXPECT_EQ(IrOpcode::kStoreBuffer, op->opcode());
177 EXPECT_EQ(Operator::kNoRead | Operator::kNoThrow, op->properties());
178 EXPECT_EQ(access, BufferAccessOf(op));
180 EXPECT_EQ(4, op->ValueInputCount());
181 EXPECT_EQ(1, op->EffectInputCount());
182 EXPECT_EQ(1, op->ControlInputCount());
183 EXPECT_EQ(6, OperatorProperties::GetTotalInputCount(op));
185 EXPECT_EQ(0, op->ValueOutputCount());
186 EXPECT_EQ(1, op->EffectOutputCount());
187 EXPECT_EQ(0, op->ControlOutputCount());
249 const Operator* op = simplified.LoadElement(access);
251 EXPECT_EQ(IrOpcode::kLoadElement, op->opcode());
252 EXPECT_EQ(Operator::kNoThrow | Operator::kNoWrite, op->properties());
253 EXPECT_EQ(access, ElementAccessOf(op));
255 EXPECT_EQ(2, op->ValueInputCount());
256 EXPECT_EQ(1, op->EffectInputCount());
257 EXPECT_EQ(1, op->ControlInputCount());
258 EXPECT_EQ(4, OperatorProperties::GetTotalInputCount(op));
260 EXPECT_EQ(1, op->ValueOutputCount());
261 EXPECT_EQ(1, op->EffectOutputCount());
262 EXPECT_EQ(0, op->ControlOutputCount());
269 const Operator* op = simplified.StoreElement(access);
271 EXPECT_EQ(IrOpcode::kStoreElement, op->opcode());
272 EXPECT_EQ(Operator::kNoRead | Operator::kNoThrow, op->properties());
273 EXPECT_EQ(access, ElementAccessOf(op));
275 EXPECT_EQ(3, op->ValueInputCount());
276 EXPECT_EQ(1, op->EffectInputCount());
277 EXPECT_EQ(1, op->ControlInputCount());
278 EXPECT_EQ(5, OperatorProperties::GetTotalInputCount(op));
280 EXPECT_EQ(0, op->ValueOutputCount());
281 EXPECT_EQ(1, op->EffectOutputCount());
282 EXPECT_EQ(0, op->ControlOutputCount());