[all-commits] [llvm/llvm-project] 93ce23: [clang][dataflow] Add initial sign analysis

Gabor Marton via All-commits all-commits at lists.llvm.org
Wed Oct 26 06:20:07 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 93ce23adb548240f3907e7dc0690a82cce060a96
      https://github.com/llvm/llvm-project/commit/93ce23adb548240f3907e7dc0690a82cce060a96
  Author: Gabor Marton <gabor.marton at ericsson.com>
  Date:   2022-10-26 (Wed, 26 Oct 2022)

  Changed paths:
    M clang/unittests/Analysis/FlowSensitive/CMakeLists.txt
    A clang/unittests/Analysis/FlowSensitive/SignAnalysisTest.cpp

  Log Message:
  -----------
  [clang][dataflow] Add initial sign analysis

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.

Differential Revision: https://reviews.llvm.org/D136668




More information about the All-commits mailing list