diff options
author | Matthias Springer <me@m-sp.org> | 2024-02-23 10:31:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-23 10:31:55 +0100 |
commit | a622b21f4607ee787c6fe63032a849c24374882b (patch) | |
tree | c91a33fe8ae4c29f0dc4b3eff98f0bf99e6d727f /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp | |
parent | 335d34d9eae8c943e2164373c7eab1e450eaf435 (diff) | |
download | llvm-a622b21f4607ee787c6fe63032a849c24374882b.zip llvm-a622b21f4607ee787c6fe63032a849c24374882b.tar.gz llvm-a622b21f4607ee787c6fe63032a849c24374882b.tar.bz2 |
[mlir][Transforms] Make `ConversionPatternRewriter` constructor private (#82244)
`ConversionPatternRewriter` objects should not be constructed outside of
dialect conversions. Some IR modifications performed through a
`ConversionPatternRewriter` are reflected in the IR in a delayed fashion
(e.g., only when the dialect conversion is guaranteed to succeed). Using
a `ConversionPatternRewriter` outside of the dialect conversion is
incorrect API usage and can bring the IR in an inconsistent state.
Migration guide: Use `IRRewriter` instead of
`ConversionPatternRewriter`.
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions