//===-- FindBugs.cpp - Run Many Different Optimizations -------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file defines an interface that allows bugpoint to choose different // combinations of optimizations to run on the selected input. Bugpoint will // run these optimizations and record the success/failure of each. This way // we can hopefully spot bugs in the optimizations. // //===----------------------------------------------------------------------===// #include "BugDriver.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/raw_ostream.h" #include <random> usingnamespacellvm; Error BugDriver::runManyPasses(const std::vector<std::string> &AllPasses) { … }