mlirAffineMapCompressUnusedSymbols(
maps.data(), maps.size(), compressed.data(), populate);
std::vector<PyAffineMap> res;
+ res.reserve(compressed.size());
for (auto m : compressed)
res.push_back(PyAffineMap(context->getRef(), m));
return res;
if (frames.empty())
throw py::value_error("No caller frames provided");
MlirLocation caller = frames.back().get();
- for (PyLocation frame :
+ for (const PyLocation &frame :
llvm::reverse(llvm::makeArrayRef(frames).drop_back()))
caller = mlirLocationCallSiteGet(frame.get(), caller);
return PyLocation(context->getRef(),