#include "llvm/Analysis/MLModelRunner.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Analysis/InteractiveModelRunner.h"
#include "llvm/Analysis/NoInferenceModelRunner.h"
#include "llvm/Analysis/ReleaseModeModelRunner.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Support/BinaryByteStream.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/FileUtilities.h"
#include "llvm/Support/JSON.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Testing/Support/SupportHelpers.h"
#include "gtest/gtest.h"
#include <atomic>
#include <thread>
usingnamespacellvm;
namespace llvm {
class MockAOTModelBase { … };
class AdditionAOTModel final : public MockAOTModelBase { … };
class DiffAOTModel final : public MockAOTModelBase { … };
static const char *M1Selector = …;
static const char *M2Selector = …;
static MD5::MD5Result Hash1 = …;
static MD5::MD5Result Hash2 = …;
class ComposedAOTModel final { … };
static EmbeddedModelRunnerOptions makeOptions() { … }
}
TEST(NoInferenceModelRunner, AccessTensors) { … }
TEST(ReleaseModeRunner, NormalUse) { … }
TEST(ReleaseModeRunner, ExtraFeatures) { … }
TEST(ReleaseModeRunner, ExtraFeaturesOutOfOrder) { … }
TEST(ReleaseModelRunner, ModelSelectorNoInputFeaturePresent) { … }
TEST(ReleaseModelRunner, ModelSelectorNoSelectorGiven) { … }
TEST(ReleaseModelRunner, ModelSelector) { … }
#if defined(LLVM_ON_UNIX)
TEST(InteractiveModelRunner, Evaluation) { … }
#endif