[DataFlow] Factor two worklist implementations out
authorGabor Horvath <xazax@google.com>
Wed, 8 Jan 2020 01:48:49 +0000 (17:48 -0800)
committerGabor Horvath <xazax@google.com>
Fri, 17 Jan 2020 16:11:15 +0000 (08:11 -0800)
commit05c7dc66480999574a599ac34d99a4c192d51ba7
tree87d6a5771bfc32260bd573616adf4b13a5088ca9
parent886f9071c63848e90fe0c2f3ad98a0a71aeffcd4
[DataFlow] Factor two worklist implementations out

Right now every dataflow algorithm uses its own worklist implementation.
This is a first step to reduce this duplication. Some upcoming
algorithms such as the lifetime analysis is going to use the factored
out implementations.

Differential Revision: https://reviews.llvm.org/D72380
clang/include/clang/Analysis/FlowSensitive/DataflowValues.h
clang/include/clang/Analysis/FlowSensitive/DataflowWorklist.h [new file with mode: 0644]
clang/lib/Analysis/LiveVariables.cpp
clang/lib/Analysis/UninitializedValues.cpp
clang/unittests/Analysis/CFGBuildResult.h
clang/unittests/Analysis/CFGTest.cpp