#include "llvm/IR/Module.h"
#include "llvm/AsmParser/Parser.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/ModuleSummaryIndex.h"
#include "llvm/Pass.h"
#include "llvm/Support/RandomNumberGenerator.h"
#include "llvm/Support/SourceMgr.h"
#include "gtest/gtest.h"
#include <random>
usingnamespacellvm;
namespace {
bool sortByName(const GlobalVariable &L, const GlobalVariable &R) { … }
bool sortByNameReverse(const GlobalVariable &L, const GlobalVariable &R) { … }
TEST(ModuleTest, sortGlobalsByName) { … }
TEST(ModuleTest, randomNumberGenerator) { … }
TEST(ModuleTest, setModuleFlag) { … }
TEST(ModuleTest, setModuleFlagInt) { … }
const char *IRString = …;
TEST(ModuleTest, setProfileSummary) { … }
TEST(ModuleTest, setPartialSampleProfileRatio) { … }
TEST(ModuleTest, AliasList) { … }
TEST(ModuleTest, IFuncList) { … }
TEST(ModuleTest, NamedMDList) { … }
TEST(ModuleTest, GlobalList) { … }
}