[PATCH] D135964: [clang][dataflow] Add `operator==` for `Value` type.

Yitzhak Mandelbaum via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 14 09:07:44 PDT 2022


ymandel created this revision.
ymandel added reviewers: xazax.hun, sgatev, gribozavr2.
Herald added subscribers: martong, rnkovacs.
Herald added a reviewer: NoQ.
Herald added a project: All.
ymandel requested review of this revision.
Herald added a project: clang.

Defines `operator==` as an equivalence relation on the `Value` type. It standardizes
several places in the code where we replicate the ~same equivalence comparison.

NOTE: It may be better to define this as a named method, rather than overriding
the operator, given that it is a (weak) equivalence relation rather than a
(deep) equality relation.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D135964

Files:
  clang/include/clang/Analysis/FlowSensitive/Value.h
  clang/lib/Analysis/FlowSensitive/CMakeLists.txt
  clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
  clang/lib/Analysis/FlowSensitive/Value.cpp
  clang/unittests/Analysis/FlowSensitive/CMakeLists.txt
  clang/unittests/Analysis/FlowSensitive/TypeErasedDataflowAnalysisTest.cpp
  clang/unittests/Analysis/FlowSensitive/ValueTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135964.467792.patch
Type: text/x-patch
Size: 8521 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221014/dc0afb85/attachment-0001.bin>


More information about the cfe-commits mailing list