#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>
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) { … }
}
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) { … }
}