[all-commits] [llvm/llvm-project] ff1002: [Attributor][NFC][AAPotentialValues] Change interf...
Shinji Okumura via All-commits
all-commits at lists.llvm.org
Sun Aug 9 17:27:49 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: ff1002aab0911c585a9850fe7315b1e604c271f9
https://github.com/llvm/llvm-project/commit/ff1002aab0911c585a9850fe7315b1e604c271f9
Author: Shinji Okumura <okuraofvegetable at gmail.com>
Date: 2020-08-10 (Mon, 10 Aug 2020)
Changed paths:
M llvm/include/llvm/Transforms/IPO/Attributor.h
Log Message:
-----------
[Attributor][NFC][AAPotentialValues] Change interface of PotentialValuesState
Previously `PotentialValuesState` inherited `BooleanState`.
We have to add `getAssumed` to the state in order to use `clampStateAndIndicateChange` (which will be used in `AAPotentialValuesArgument`).
However `BooleanState::getAssumed` is not a virtual function and we cannot override it.
Therefore, I changed the state not to inherit `BooleanState` and add `getAssumed` to it.
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D85610
More information about the All-commits
mailing list