Lines Matching refs:OperandLifeTime
83 .lifetime = OperandLifeTime::MODEL_INPUT, in addOperand()
88 static uint32_t addOperand(Model* model, OperandLifeTime lifetime) { in addOperand()
263 if (model.operands[input].lifetime == OperandLifeTime::TEMPORARY_VARIABLE || in mutateExecutionOrderTest()
264 model.operands[input].lifetime == OperandLifeTime::MODEL_OUTPUT) { in mutateExecutionOrderTest()
413 static std::vector<OperandLifeTime> getInvalidLifeTimes(const Model& model, size_t modelSize, in getInvalidLifeTimes()
420 std::vector<OperandLifeTime> ret; in getInvalidLifeTimes()
422 case OperandLifeTime::MODEL_OUTPUT: in getInvalidLifeTimes()
423 case OperandLifeTime::TEMPORARY_VARIABLE: in getInvalidLifeTimes()
425 OperandLifeTime::MODEL_INPUT, in getInvalidLifeTimes()
426 OperandLifeTime::CONSTANT_COPY, in getInvalidLifeTimes()
429 case OperandLifeTime::CONSTANT_COPY: in getInvalidLifeTimes()
430 case OperandLifeTime::CONSTANT_REFERENCE: in getInvalidLifeTimes()
431 case OperandLifeTime::MODEL_INPUT: in getInvalidLifeTimes()
433 OperandLifeTime::TEMPORARY_VARIABLE, in getInvalidLifeTimes()
434 OperandLifeTime::MODEL_OUTPUT, in getInvalidLifeTimes()
437 case OperandLifeTime::NO_VALUE: in getInvalidLifeTimes()
453 ret.erase(std::remove(ret.begin(), ret.end(), OperandLifeTime::CONSTANT_COPY), ret.end()); in getInvalidLifeTimes()
462 const std::vector<OperandLifeTime> invalidLifeTimes = in mutateOperandLifeTimeTest()
464 for (OperandLifeTime invalidLifeTime : invalidLifeTimes) { in mutateOperandLifeTimeTest()
473 case OperandLifeTime::MODEL_INPUT: { in mutateOperandLifeTimeTest()
477 case OperandLifeTime::MODEL_OUTPUT: { in mutateOperandLifeTimeTest()
487 case OperandLifeTime::CONSTANT_COPY: { in mutateOperandLifeTimeTest()
491 case OperandLifeTime::MODEL_INPUT: in mutateOperandLifeTimeTest()
494 case OperandLifeTime::MODEL_OUTPUT: in mutateOperandLifeTimeTest()
507 static std::optional<OperandLifeTime> getInputOutputLifeTime(const Model& model, size_t modelSize, in getInputOutputLifeTime()
513 case OperandLifeTime::CONSTANT_COPY: in getInputOutputLifeTime()
514 case OperandLifeTime::CONSTANT_REFERENCE: in getInputOutputLifeTime()
515 return OperandLifeTime::MODEL_INPUT; in getInputOutputLifeTime()
516 case OperandLifeTime::MODEL_INPUT: { in getInputOutputLifeTime()
523 return OperandLifeTime::CONSTANT_COPY; in getInputOutputLifeTime()
525 case OperandLifeTime::MODEL_OUTPUT: in getInputOutputLifeTime()
526 return OperandLifeTime::TEMPORARY_VARIABLE; in getInputOutputLifeTime()
527 case OperandLifeTime::TEMPORARY_VARIABLE: in getInputOutputLifeTime()
528 return OperandLifeTime::MODEL_OUTPUT; in getInputOutputLifeTime()
529 case OperandLifeTime::NO_VALUE: in getInputOutputLifeTime()
547 const std::optional<OperandLifeTime> changedLifeTime = in mutateOperandInputOutputTest()
559 if (*changedLifeTime == OperandLifeTime::CONSTANT_COPY) { in mutateOperandInputOutputTest()
617 if (operandValue.lifetime == OperandLifeTime::MODEL_OUTPUT) { in mutateOperandAddWriterTest()
618 operandValue.lifetime = OperandLifeTime::TEMPORARY_VARIABLE; in mutateOperandAddWriterTest()
620 ASSERT_EQ(operandValue.lifetime, OperandLifeTime::TEMPORARY_VARIABLE); in mutateOperandAddWriterTest()
783 if (operandValue.lifetime == OperandLifeTime::MODEL_OUTPUT) { in mutateOperationRemoveWriteTest()
784 operandValue.lifetime = OperandLifeTime::TEMPORARY_VARIABLE; in mutateOperationRemoveWriteTest()
786 ASSERT_EQ(operandValue.lifetime, OperandLifeTime::TEMPORARY_VARIABLE); in mutateOperationRemoveWriteTest()
896 uint32_t index = addOperand(model, OperandLifeTime::MODEL_INPUT); in addOperationInputTest()
910 uint32_t index = addOperand(model, OperandLifeTime::MODEL_OUTPUT); in addOperationOutputTest()