[Mlir-commits] [mlir] [mlir][linalg] Expose getPreservedProducerResults method from ElementwiseOpFusion file (PR #73850)
Amir Bishara
llvmlistbot at llvm.org
Wed Nov 29 22:24:06 PST 2023
================
@@ -493,6 +493,8 @@ LogicalResult dropUnitDims(RewriterBase &rewriter, GenericOp genericOp,
struct ElementwiseOpFusionResult {
Operation *fusedOp;
llvm::DenseMap<Value, Value> replacements;
+ static llvm::SmallDenseSet<int>
----------------
amirBish wrote:
Thanks Mahesh for the quick response!
The `replacements` usage should be after/within applying the fusion.
However, I want to use this function/util as part of the `ControlFusionFn` which is being passed to the
```
void populateElementwiseOpsFusionPatterns(
RewritePatternSet &patterns,
const ControlFusionFn &controlElementwiseOpFusion);
````
https://github.com/llvm/llvm-project/pull/73850
More information about the Mlir-commits
mailing list