[PATCH] D124965: [clang][dataflow] Centralize expression skipping logic
Eric Li via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 4 14:47:17 PDT 2022
li.zhe.hua created this revision.
li.zhe.hua added reviewers: sgatev, ymandel.
Herald added subscribers: tschuett, steakhal.
Herald added a project: All.
li.zhe.hua requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
A follow-up to 62b2a47 <https://reviews.llvm.org/rG62b2a47a9f15ed2f1dc4b39c924341c7b9bd7cf8> to centralize the logic that skips expressions
that the CFG does not emit. This allows client code to avoid
sprinkling this logic everywhere.
Add redirects in the transfer function to similarly skip such
expressions by forwarding the visit to the sub-expression.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D124965
Files:
clang/include/clang/Analysis/FlowSensitive/DataflowAnalysisContext.h
clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h
clang/include/clang/Analysis/FlowSensitive/Transfer.h
clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp
clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
clang/lib/Analysis/FlowSensitive/Transfer.cpp
clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124965.427146.patch
Type: text/x-patch
Size: 12751 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220504/b6f80f09/attachment.bin>
More information about the cfe-commits
mailing list