[all-commits] [llvm/llvm-project] 1a7464: [Attributor] Make IntegerState more flexible

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Mon Oct 28 18:35:59 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1a74645a70b38b48ff93251f7e7e51b2ab2ab403
      https://github.com/llvm/llvm-project/commit/1a74645a70b38b48ff93251f7e7e51b2ab2ab403
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2019-10-28 (Mon, 28 Oct 2019)

  Changed paths:
    M llvm/include/llvm/Transforms/IPO/Attributor.h
    M llvm/lib/Transforms/IPO/Attributor.cpp

  Log Message:
  -----------
  [Attributor] Make IntegerState more flexible

To make IntegerState more flexible but also less error prone we split it
up into (1) incrementing, (2) decrementing, and (3) bit-tracking states.
This adds functionality compared to before and disallows misuse, e.g.,
"incrementing" updates on a bit-tracking state.

Part of the change is a single operator in the base class which
simplifies helper functions that deal with states.

There are certain functional changes but all of which should actually be
corrections.




More information about the All-commits mailing list