Lines Matching defs:mapOrSet

1320 static void canonicalizePromotedSymbols(MapOrSet *mapOrSet,
1322 if (!mapOrSet || operands->empty())
1325 assert(mapOrSet->getNumInputs() == operands->size() &&
1328 auto *context = mapOrSet->getContext();
1335 unsigned oldNumSyms = mapOrSet->getNumSymbols();
1336 SmallVector<AffineExpr, 8> dimRemapping(mapOrSet->getNumDims());
1337 for (unsigned i = 0, e = mapOrSet->getNumInputs(); i != e; ++i) {
1338 if (i < mapOrSet->getNumDims()) {
1354 *mapOrSet = mapOrSet->replaceDimsAndSymbols(dimRemapping, {}, nextDim,
1357 assert(mapOrSet->getNumInputs() == operands->size() &&
1363 static void canonicalizeMapOrSetAndOperands(MapOrSet *mapOrSet,
1368 if (!mapOrSet || operands->empty())
1371 assert(mapOrSet->getNumInputs() == operands->size() &&
1374 canonicalizePromotedSymbols<MapOrSet>(mapOrSet, operands);
1377 llvm::SmallBitVector usedDims(mapOrSet->getNumDims());
1378 llvm::SmallBitVector usedSyms(mapOrSet->getNumSymbols());
1379 mapOrSet->walkExprs([&](AffineExpr expr) {
1386 auto *context = mapOrSet->getContext();
1392 SmallVector<AffineExpr, 8> dimRemapping(mapOrSet->getNumDims());
1394 for (unsigned i = 0, e = mapOrSet->getNumDims(); i != e; ++i) {
1408 SmallVector<AffineExpr, 8> symRemapping(mapOrSet->getNumSymbols());
1410 for (unsigned i = 0, e = mapOrSet->getNumSymbols(); i != e; ++i) {
1417 if (matchPattern((*operands)[i + mapOrSet->getNumDims()],
1424 auto it = seenSymbols.find((*operands)[i + mapOrSet->getNumDims()]);
1427 resultOperands.push_back((*operands)[i + mapOrSet->getNumDims()]);
1428 seenSymbols.insert(std::make_pair((*operands)[i + mapOrSet->getNumDims()],
1434 *mapOrSet = mapOrSet->replaceDimsAndSymbols(dimRemapping, symRemapping,