Lines Matching defs:maps
207 /// * (d0, d1, d2) -> (0, d1) maps to minor identity (d1, 0 = d2) with
211 /// * (d0, d1, d2, d3) -> (0, d1, d3) maps to minor identity (d1, 0 = d2, d3)
213 /// * (d0, d1) -> (d1, 0, 0, d0) maps to minor identity (d0, d1) with extra
303 SmallVector<AffineMap, 4> maps;
304 maps.reserve(exprsList.size());
306 maps.push_back(AffineMap::get(/*dimCount=*/maxDim + 1,
308 return maps;
683 /// Implementation detail to compress multiple affine maps with a compressionFun
686 /// affine maps.
688 ArrayRef<AffineMap> maps,
690 if (maps.empty())
693 allExprs.reserve(maps.size() * maps.front().getNumResults());
694 unsigned numDims = maps.front().getNumDims(),
695 numSymbols = maps.front().getNumSymbols();
696 for (auto m : maps) {
698 "expected maps with same num dims and symbols");
702 AffineMap::get(numDims, numSymbols, allExprs, maps.front().getContext()));
707 res.reserve(maps.size());
708 for (auto m : maps) {
726 SmallVector<AffineMap> mlir::compressUnusedDims(ArrayRef<AffineMap> maps) {
728 maps, [](AffineMap m) { return compressUnusedDims(m); });
740 SmallVector<AffineMap> mlir::compressUnusedSymbols(ArrayRef<AffineMap> maps) {
742 maps, [](AffineMap m) { return compressUnusedSymbols(m); });
836 AffineMap mlir::concatAffineMaps(ArrayRef<AffineMap> maps,
838 if (maps.empty())
841 for (auto m : maps)
845 for (auto m : maps) {
930 llvm::SmallBitVector mlir::getUnusedDimsBitVector(ArrayRef<AffineMap> maps) {
931 unsigned numDims = maps[0].getNumDims();
933 for (AffineMap m : maps) {
942 llvm::SmallBitVector mlir::getUnusedSymbolsBitVector(ArrayRef<AffineMap> maps) {
943 unsigned numSymbols = maps[0].getNumSymbols();
945 for (AffineMap m : maps) {