Home
last modified time | relevance | path

Searched refs:TestLattice (Results 1 – 2 of 2) sorted by relevance

/llvm-project/clang/unittests/Analysis/FlowSensitive/
H A DTransferBranchTest.cpp28 struct TestLattice { struct
30 static TestLattice bottom() { return {}; } in bottom() argument
33 LatticeJoinEffect join(const TestLattice &Other) { in join() argument
36 friend bool operator==(const TestLattice &Lhs, const TestLattice &Rhs) { in operator ==()
42 : public DataflowAnalysis<TestPropagationAnalysis, TestLattice> {
45 : DataflowAnalysis<TestPropagationAnalysis, TestLattice>(Context) {} in TestPropagationAnalysis()
46 static TestLattice initialElement() { return TestLattice::bottom(); } in initialElement()
47 void transfer(const CFGElement &, TestLattice &, Environment &) {} in transfer() argument
48 void transferBranch(bool Branch, const Stmt *S, TestLattice &L, in transferBranch()
100 [](const llvm::StringMap<DataflowAnalysisState<TestLattice>> &Results, in TEST()
[all …]
H A DLoggerTest.cpp13 struct TestLattice { struct
18 LatticeJoinEffect join(const TestLattice &Other) { in join() argument
27 friend bool operator==(const TestLattice &LHS, const TestLattice &RHS) { in operator ==()
33 class TestAnalysis : public DataflowAnalysis<TestAnalysis, TestLattice> {
37 static TestLattice initialElement() { return TestLattice{}; } in initialElement()
38 void transfer(const CFGElement &, TestLattice &L, Environment &E) { in transfer()
43 void transferBranch(bool Branch, const Stmt *S, TestLattice &L, in transferBranch()
79 const TestLattice &L = llvm::any_cast<TestLattice>(S.Lattice.Value); in recordState()