Lines Matching refs:OperandLifeTime

35 using V1_0::OperandLifeTime;
103 .lifetime = OperandLifeTime::MODEL_INPUT, in addOperand()
108 static uint32_t addOperand(Model* model, OperandLifeTime lifetime) { in addOperand()
322 if (model.operands[input].lifetime == OperandLifeTime::TEMPORARY_VARIABLE || in mutateExecutionOrderTest()
323 model.operands[input].lifetime == OperandLifeTime::MODEL_OUTPUT) { in mutateExecutionOrderTest()
507 static std::vector<OperandLifeTime> getInvalidLifeTimes(const Model& model, size_t modelSize, in getInvalidLifeTimes()
514 std::vector<OperandLifeTime> ret; in getInvalidLifeTimes()
516 case OperandLifeTime::MODEL_OUTPUT: in getInvalidLifeTimes()
517 case OperandLifeTime::TEMPORARY_VARIABLE: in getInvalidLifeTimes()
519 OperandLifeTime::MODEL_INPUT, in getInvalidLifeTimes()
520 OperandLifeTime::CONSTANT_COPY, in getInvalidLifeTimes()
523 case OperandLifeTime::CONSTANT_COPY: in getInvalidLifeTimes()
524 case OperandLifeTime::CONSTANT_REFERENCE: in getInvalidLifeTimes()
525 case OperandLifeTime::MODEL_INPUT: in getInvalidLifeTimes()
527 OperandLifeTime::TEMPORARY_VARIABLE, in getInvalidLifeTimes()
528 OperandLifeTime::MODEL_OUTPUT, in getInvalidLifeTimes()
531 case OperandLifeTime::NO_VALUE: in getInvalidLifeTimes()
547 ret.erase(std::remove(ret.begin(), ret.end(), OperandLifeTime::CONSTANT_COPY), ret.end()); in getInvalidLifeTimes()
556 const std::vector<OperandLifeTime> invalidLifeTimes = in mutateOperandLifeTimeTest()
558 for (OperandLifeTime invalidLifeTime : invalidLifeTimes) { in mutateOperandLifeTimeTest()
568 case OperandLifeTime::MODEL_INPUT: { in mutateOperandLifeTimeTest()
572 case OperandLifeTime::MODEL_OUTPUT: { in mutateOperandLifeTimeTest()
582 case OperandLifeTime::CONSTANT_COPY: { in mutateOperandLifeTimeTest()
586 case OperandLifeTime::MODEL_INPUT: in mutateOperandLifeTimeTest()
589 case OperandLifeTime::MODEL_OUTPUT: in mutateOperandLifeTimeTest()
602 static std::optional<OperandLifeTime> getInputOutputLifeTime(const Model& model, size_t modelSize, in getInputOutputLifeTime()
608 case OperandLifeTime::CONSTANT_COPY: in getInputOutputLifeTime()
609 case OperandLifeTime::CONSTANT_REFERENCE: in getInputOutputLifeTime()
610 return OperandLifeTime::MODEL_INPUT; in getInputOutputLifeTime()
611 case OperandLifeTime::MODEL_INPUT: { in getInputOutputLifeTime()
618 return OperandLifeTime::CONSTANT_COPY; in getInputOutputLifeTime()
620 case OperandLifeTime::MODEL_OUTPUT: in getInputOutputLifeTime()
621 return OperandLifeTime::TEMPORARY_VARIABLE; in getInputOutputLifeTime()
622 case OperandLifeTime::TEMPORARY_VARIABLE: in getInputOutputLifeTime()
623 return OperandLifeTime::MODEL_OUTPUT; in getInputOutputLifeTime()
624 case OperandLifeTime::NO_VALUE: in getInputOutputLifeTime()
642 const std::optional<OperandLifeTime> changedLifeTime = in mutateOperandInputOutputTest()
655 if (*changedLifeTime == OperandLifeTime::CONSTANT_COPY) { in mutateOperandInputOutputTest()
716 if (operandValue.lifetime == OperandLifeTime::MODEL_OUTPUT) { in mutateOperandAddWriterTest()
717 operandValue.lifetime = OperandLifeTime::TEMPORARY_VARIABLE; in mutateOperandAddWriterTest()
720 OperandLifeTime::TEMPORARY_VARIABLE); in mutateOperandAddWriterTest()
962 if (operandValue.lifetime == OperandLifeTime::MODEL_OUTPUT) { in mutateOperationRemoveWriteTest()
963 operandValue.lifetime = OperandLifeTime::TEMPORARY_VARIABLE; in mutateOperationRemoveWriteTest()
966 OperandLifeTime::TEMPORARY_VARIABLE); in mutateOperationRemoveWriteTest()
1184 uint32_t index = addOperand(model, OperandLifeTime::MODEL_INPUT); in addOperationInputTest()
1198 uint32_t index = addOperand(model, OperandLifeTime::MODEL_OUTPUT); in addOperationOutputTest()