diff options
| author | Sean Silva <silvasean@google.com> | 2021-05-12 14:59:12 -0700 |
|---|---|---|
| committer | Sean Silva <silvasean@google.com> | 2021-05-13 12:42:10 -0700 |
| commit | 12874e93a15219ccfaff42a0536b2b5368c6f304 (patch) | |
| tree | 376c8ff65dc73e9fb5843e481de67362378d8687 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | b42fb6811e25322f7e55d3f76fe13a6829202219 (diff) | |
[mlir][NFC] Add helper for common pattern of replaceAllUsesExcept
This covers the extremely common case of replacing all uses of a Value
with a new op that is itself a user of the original Value.
This should also be a little bit more efficient than the
`SmallPtrSet<Operation *, 1>{op}` idiom that was being used before.
Differential Revision: https://reviews.llvm.org/D102373
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
