[Mlir-commits] [mlir] c8be701 - Add a conversion from TransitiveFilter to SliceOptions.
Johannes Reifferscheid
llvmlistbot at llvm.org
Fri Jun 9 03:46:54 PDT 2023
Author: Johannes Reifferscheid
Date: 2023-06-09T12:46:48+02:00
New Revision: c8be70132de95281f73f0493480236cbbf703002
URL: https://github.com/llvm/llvm-project/commit/c8be70132de95281f73f0493480236cbbf703002
DIFF: https://github.com/llvm/llvm-project/commit/c8be70132de95281f73f0493480236cbbf703002.diff
LOG: Add a conversion from TransitiveFilter to SliceOptions.
The previous attempt at backwards compatibility was insufficient.
Reviewed By: akuegel
Differential Revision: https://reviews.llvm.org/D152514
Added:
Modified:
mlir/include/mlir/Analysis/SliceAnalysis.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/Analysis/SliceAnalysis.h b/mlir/include/mlir/Analysis/SliceAnalysis.h
index 4f548b2440a92..27d4836af7403 100644
--- a/mlir/include/mlir/Analysis/SliceAnalysis.h
+++ b/mlir/include/mlir/Analysis/SliceAnalysis.h
@@ -31,6 +31,10 @@ struct SliceOptions {
/// Include the top level op in the slice.
bool inclusive = false;
+
+ // TODO: Remove this alias once downstream users are updated.
+ SliceOptions() {}
+ SliceOptions(TransitiveFilter filter) : filter(std::move(filter)) {}
};
// TODO: Remove this alias once downstream users are updated.
More information about the Mlir-commits
mailing list