#include "llvm/Transforms/Vectorize/SandboxVectorizer/DependencyGraph.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Analysis/AssumptionCache.h"
#include "llvm/Analysis/BasicAliasAnalysis.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/AsmParser/Parser.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/Dominators.h"
#include "llvm/SandboxIR/Context.h"
#include "llvm/SandboxIR/Function.h"
#include "llvm/SandboxIR/Instruction.h"
#include "llvm/Support/SourceMgr.h"
#include "gmock/gmock-matchers.h"
#include "gtest/gtest.h"
usingnamespacellvm;
struct DependencyGraphTest : public testing::Test { … };
TEST_F(DependencyGraphTest, isStackSaveOrRestoreIntrinsic) { … }
TEST_F(DependencyGraphTest, Instruction_isMemDepCandidate) { … }
TEST_F(DependencyGraphTest, Instruction_isMemIntrinsic) { … }
TEST_F(DependencyGraphTest, MemDGNode) { … }
TEST_F(DependencyGraphTest, Basic) { … }
TEST_F(DependencyGraphTest, Preds) { … }
TEST_F(DependencyGraphTest, MemDGNode_getPrevNode_getNextNode) { … }
TEST_F(DependencyGraphTest, DGNodeRange) { … }
TEST_F(DependencyGraphTest, AliasingStores) { … }
TEST_F(DependencyGraphTest, NonAliasingStores) { … }
TEST_F(DependencyGraphTest, VolatileLoads) { … }
TEST_F(DependencyGraphTest, VolatileSotres) { … }
TEST_F(DependencyGraphTest, Call) { … }
TEST_F(DependencyGraphTest, StackSaveRestoreInAlloca) { … }
TEST_F(DependencyGraphTest, StackSaveRestoreDependOnOtherMem) { … }
TEST_F(DependencyGraphTest, StackRestoreAndInAlloca) { … }
TEST_F(DependencyGraphTest, StackSaveAndInAlloca) { … }
TEST_F(DependencyGraphTest, StackSaveRestoreNoInAlloca) { … }
TEST_F(DependencyGraphTest, Extend) { … }