Lines Matching refs:passes
122 std::vector<std::unique_ptr<Pass>> passes; member
133 for (auto &pass : passes) in mergeInto()
134 rhs.passes.push_back(std::move(pass)); in mergeInto()
135 passes.clear(); in mergeInto()
165 passes.emplace_back(std::move(pass)); in addPass()
170 if (llvm::none_of(passes, [](std::unique_ptr<Pass> &pass) { in coalesceAdjacentAdaptorPasses()
177 for (auto it = passes.begin(), e = passes.end(); it != e; ++it) { in coalesceAdjacentAdaptorPasses()
207 llvm::erase_if(passes, std::logical_not<std::unique_ptr<Pass>>()); in coalesceAdjacentAdaptorPasses()
212 std::swap(passes, oldPasses); in splitAdaptorPasses()
225 for (std::unique_ptr<Pass> &nestedPass : adaptorPM.getImpl().passes) in splitAdaptorPasses()
243 for (auto &pass : rhs.impl->passes) in operator =()
244 impl->passes.emplace_back(pass->clone()); in operator =()
251 return MutableArrayRef<std::unique_ptr<Pass>>{impl->passes}.begin(); in begin()
254 return MutableArrayRef<std::unique_ptr<Pass>>{impl->passes}.end(); in end()
258 return ArrayRef<std::unique_ptr<Pass>>{impl->passes}.begin(); in begin()
261 return ArrayRef<std::unique_ptr<Pass>>{impl->passes}.end(); in end()
280 size_t OpPassManager::size() const { return impl->passes.size(); } in size()
294 static void printAsTextualPipeline(ArrayRef<std::unique_ptr<Pass>> passes, in printAsTextualPipeline() argument
296 llvm::interleaveComma(passes, os, [&](const std::unique_ptr<Pass> &pass) { in printAsTextualPipeline()
304 ::printAsTextualPipeline(impl->passes, os); in printAsTextualPipeline()
308 llvm::errs() << "Pass Manager with " << impl->passes.size() << " passes: "; in dump()
309 ::printAsTextualPipeline(impl->passes, llvm::errs()); in dump()
390 iterator_range<OpPassManager::pass_iterator> passes, Operation *op, in runPipeline() argument
401 for (Pass &pass : passes) in runPipeline()
615 RecoveryReproducerContext(MutableArrayRef<std::unique_ptr<Pass>> passes,
660 MutableArrayRef<std::unique_ptr<Pass>> passes, Operation *op, in RecoveryReproducerContext() argument
667 ::printAsTextualPipeline(passes, pipelineOS); in RecoveryReproducerContext()
731 return runWithCrashRecovery(impl->passes, op, am); in runWithCrashRecovery()
738 MutableArrayRef<std::unique_ptr<Pass>> passes = impl->passes; in runWithCrashRecovery() local
739 for (std::unique_ptr<Pass> &pass : passes) in runWithCrashRecovery()
747 PassManager::runWithCrashRecovery(MutableArrayRef<std::unique_ptr<Pass>> passes, in runWithCrashRecovery() argument
749 RecoveryReproducerContext context(passes, op, *crashReproducerFileName, in runWithCrashRecovery()
757 for (std::unique_ptr<Pass> &pass : passes) in runWithCrashRecovery()