//===- ListReducer.h - Trim down list while retaining property --*- C++ -*-===// // // 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 class is to be used as a base class for operations that want to zero in // on a subset of the input which still causes the bug we are tracking. // //===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_BUGPOINT_LISTREDUCER_H #define LLVM_TOOLS_BUGPOINT_LISTREDUCER_H #include "llvm/Support/Error.h" #include "llvm/Support/raw_ostream.h" #include <algorithm> #include <cstdlib> #include <random> #include <vector> namespace llvm { extern bool BugpointIsInterrupted; template <typename ElTy> struct ListReducer { … }; } // End llvm namespace #endif