Lines Matching +defs:region +defs:end
143 // Put metadata at the end.
590 if (it == keys.end()) {
794 auto *it = std::find_if(lvlTypes.begin(), lvlTypes.end(), isSingletonLT);
795 while (it != lvlTypes.end()) {
801 auto *curCOOEnd = std::find_if_not(it, lvlTypes.end(), isSingletonLT);
814 it = std::find_if(curCOOEnd, lvlTypes.end(), isSingletonLT);
832 if (auto it = std::find_if(lvlTypes.begin(), lvlTypes.end(), isNOutOfMLT);
833 it != std::end(lvlTypes)) {
834 if (it != lvlTypes.end() - 1)
971 auto end = std::find_if(cur + 1, lts.end(), [](LevelType lt) {
974 unsigned cooLen = std::distance(cur, end);
1073 assert(lvlExprComponents.find(pos) == lvlExprComponents.end() &&
1084 assert(lvlExprComponents.find(pos) != lvlExprComponents.end() &&
1153 if (it == coeffientMap.end())
1443 results.assign(getInCrds().begin(), getInCrds().end());
1482 results.append(def.getInCrds().begin(), def.getInCrds().end());
1603 RegionRange region,
1605 typename ToBufferOp::Adaptor adaptor(ops, attr, prop, region);
1644 OpaqueProperties prop, RegionRange region,
1646 return inferSparseBufferType<ToPositionsOp>(ops, attr, prop, region, ret);
1661 OpaqueProperties prop, RegionRange region,
1663 return inferSparseBufferType<ToCoordinatesOp>(ops, attr, prop, region, ret);
1669 return emitError("expected sparse tensor with a COO region");
1675 DictionaryAttr attr, OpaqueProperties prop, RegionRange region,
1677 return inferSparseBufferType<ToCoordinatesBufferOp>(ops, attr, prop, region,
1693 RegionRange region,
1695 return inferSparseBufferType<ToValuesOp>(ops, attr, prop, region, ret);
1737 static LogicalResult verifyNumBlockArgs(T *op, Region ®ion,
1740 unsigned numArgs = region.getNumArguments();
1743 return op->emitError() << regionName << " region must have exactly "
1747 Type typ = region.getArgument(i).getType();
1749 return op->emitError() << regionName << " region argument " << (i + 1)
1752 Operation *term = region.front().getTerminator();
1756 << " region must end with sparse_tensor.yield";
1759 return op->emitError() << regionName << " region yield type mismatch";
1774 // non-empty region.
1806 // non-empty region.
1825 return emitError("absent region cannot yield linalg argument");
1829 return emitError("absent region cannot yield locally computed value");
1948 blockArgTypes.append(initArgs.getTypes().begin(), initArgs.getTypes().end());
1953 auto ®ion = *result.regions.front();
1955 builder.createBlock(®ion, region.end(), blockArgTypes, blockArgLocs);
2359 DictionaryAttr attr, OpaqueProperties prop, RegionRange region,
2362 ExtractIterSpaceOp::Adaptor adaptor(ops, attr, prop, region);
2501 /// where 'inner' values are assumed to be region arguments and 'outer' values
2575 << "th iter region arg and defined value";
2609 // Both the operation itself and the region may be branching into the body
2650 // Parse one region per case.
2664 definedIts.insert(definedIts.begin(), blockArgs.begin(), blockArgs.end());
2729 << "th region";
2737 << "th iter operand and defined value on " << r << "th region";
2740 << "th iter region arg and defined value on " << r
2741 << "th region";
2745 << "th yield value and defined value on " << r << "th region";
2750 llvm::SmallSetVector<uint64_t, 8> set(cases.begin(), cases.end());