[Mlir-commits] [mlir] [mlir, python] Expose replaceAllUsesExcept to Python bindings (PR #115850)
Maksim Levental
llvmlistbot at llvm.org
Tue Nov 12 04:10:49 PST 2024
================
@@ -1009,6 +1010,31 @@ void mlirValueReplaceAllUsesOfWith(MlirValue oldValue, MlirValue newValue) {
unwrap(oldValue).replaceAllUsesWith(unwrap(newValue));
}
+void mlirValueReplaceAllUsesExceptWithSet(MlirValue oldValue,
+ MlirValue newValue,
+ MlirOperation *exceptions,
+ intptr_t numExceptions) {
+ auto oldValueCpp = unwrap(oldValue);
+ auto newValueCpp = unwrap(newValue);
----------------
makslevental wrote:
nit: please spell out auto (this is an LLVM wide code style thing)
https://github.com/llvm/llvm-project/pull/115850
More information about the Mlir-commits
mailing list