[PATCH] D136668: [clang][dataflow] Add initial sign analysis

Gabor Marton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 25 02:04:41 PDT 2022


martong created this revision.
martong added reviewers: xazax.hun, gribozavr2, sgatev, ymandel.
Herald added subscribers: steakhal, rnkovacs.
Herald added a reviewer: Szelethus.
Herald added a project: All.
martong requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This patch adds an initial implementation for sign analysis, with the
following lattice (T: top, N: negative, Z: zero, P: positive, B: bottom):

  T

/ | \
N Z P
\ | /

  B

The lattice is implemented with `BoolValue` properties attached to other
`Value`s.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136668

Files:
  clang/unittests/Analysis/FlowSensitive/CMakeLists.txt
  clang/unittests/Analysis/FlowSensitive/SignAnalysisTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136668.470418.patch
Type: text/x-patch
Size: 32761 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221025/d795a883/attachment-0001.bin>


More information about the cfe-commits mailing list