llvm/llvm/unittests/FuzzMutate/OperationsTest.cpp

//===- OperationsTest.cpp - Tests for fuzzer operations -------------------===//
//
// 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/Operations.h"
#include "llvm/AsmParser/Parser.h"
#include "llvm/FuzzMutate/OpDescriptor.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Verifier.h"
#include "llvm/Support/SourceMgr.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include <iostream>

// Define some pretty printers to help with debugging failures.
namespace llvm {
void PrintTo(Type *T, ::std::ostream *OS) {}

void PrintTo(BasicBlock *BB, ::std::ostream *OS) {}

void PrintTo(Value *V, ::std::ostream *OS) {}
void PrintTo(Constant *C, ::std::ostream *OS) {}

} // namespace llvm

usingnamespacellvm;

AllOf;
AnyOf;
Each;
ElementsAre;
Eq;
Ge;
PrintToString;
SizeIs;
Truly;

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

MATCHER_P(TypesMatch, V, "has type " + PrintToString(V->getType())) {}

MATCHER_P(HasType, T, "") {}

TEST(OperationsTest, SourcePreds) {}

TEST(OperationsTest, SplitBlock) {}

TEST(OperationsTest, SplitEHBlock) {}

TEST(OperationsTest, SplitBlockWithPhis) {}

TEST(OperationsTest, GEP) {}

TEST(OperationsTest, GEPPointerOperand) {}

TEST(OperationsTest, ExtractAndInsertValue) {}

} // namespace