llvm-project/llvm/unittests/Transforms
Alina Sbirlea bd541b217f [NewPassManager] Add assertions when getting statefull cached analysis.
Summary:
Analyses that are statefull should not be retrieved through a proxy from
an outer IR unit, as these analyses are only invalidated at the end of
the inner IR unit manager.
This patch disallows getting the outer manager and provides an API to
get a cached analysis through the proxy. If the analysis is not
stateless, the call to getCachedResult will assert.

Reviewers: chandlerc

Subscribers: mehdi_amini, eraman, hiraditya, zzheng, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D72893
2020-05-13 12:38:38 -07:00
..
IPO Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Scalar [NewPassManager] Add assertions when getting statefull cached analysis. 2020-05-13 12:38:38 -07:00
Utils SplitIndirectBrCriticalEdges: Fix Branch Probability update 2020-05-07 15:31:44 +07:00
Vectorize [VPlan] Move test strs to variables, silence spurious C4129 (NFC). 2020-03-31 13:18:15 +01:00
CMakeLists.txt