llvm/llvm/unittests/FuzzMutate/RandomIRBuilderTest.cpp

//===- RandomIRBuilderTest.cpp - Tests for injector strategy --------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#include "llvm/FuzzMutate/RandomIRBuilder.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/AsmParser/Parser.h"
#include "llvm/AsmParser/SlotMapping.h"
#include "llvm/FuzzMutate/IRMutator.h"
#include "llvm/FuzzMutate/OpDescriptor.h"
#include "llvm/FuzzMutate/Operations.h"
#include "llvm/FuzzMutate/Random.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Verifier.h"
#include "llvm/Support/SourceMgr.h"

#include "gtest/gtest.h"

usingnamespacellvm;

static constexpr int Seed =;

namespace {

std::unique_ptr<Module> parseAssembly(const char *Assembly,
                                      LLVMContext &Context) {}

TEST(RandomIRBuilderTest, ShuffleVectorIncorrectOperands) {}

TEST(RandomIRBuilderTest, InsertValueIndexes) {}

TEST(RandomIRBuilderTest, ShuffleVectorSink) {}

TEST(RandomIRBuilderTest, InsertValueArray) {}

TEST(RandomIRBuilderTest, Invokes) {}

TEST(RandomIRBuilderTest, SwiftError) {}

TEST(RandomIRBuilderTest, dontConnectToSwitch) {}

TEST(RandomIRBuilderTest, createStackMemory) {}

TEST(RandomIRBuilderTest, findOrCreateGlobalVariable) {}

/// Checks if the source and sink we find for an instruction has correct
/// domination relation.
TEST(RandomIRBuilderTest, findSourceAndSink) {}
TEST(RandomIRBuilderTest, sinkToInstrinsic) {}

TEST(RandomIRBuilderTest, DoNotCallPointerWhenSink) {}

TEST(RandomIRBuilderTest, SrcAndSinkWOrphanBlock) {}
} // namespace