[Mlir-commits] [mlir] bb8632c - [mlir][sparse] fix broken build

Aart Bik llvmlistbot at llvm.org
Tue Dec 7 11:14:29 PST 2021


Author: Aart Bik
Date: 2021-12-07T11:14:21-08:00
New Revision: bb8632c1efcec3e52fb3a9e96681a06c7db012e1

URL: https://github.com/llvm/llvm-project/commit/bb8632c1efcec3e52fb3a9e96681a06c7db012e1
DIFF: https://github.com/llvm/llvm-project/commit/bb8632c1efcec3e52fb3a9e96681a06c7db012e1.diff

LOG: [mlir][sparse] fix broken build

rebase and commit crossed the getFunc change

Reviewed By: Chia-hungDuan

Differential Revision: https://reviews.llvm.org/D115270

Added: 
    

Modified: 
    mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp
index c694371cc982..92a1c49213c5 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp
@@ -983,9 +983,8 @@ class SparseTensorCompressConverter : public OpConversionPattern<CompressOp> {
     else
       return failure();
     TypeRange noTp;
-    auto fn =
-        getFunc(op, name, noTp, adaptor.getOperands(), /*emitCInterface=*/true);
-    rewriter.replaceOpWithNewOp<CallOp>(op, noTp, fn, adaptor.getOperands());
+    replaceOpWithFuncCall(rewriter, op, name, noTp, adaptor.getOperands(),
+                          EmitCInterface::On);
     return success();
   }
 };


        


More information about the Mlir-commits mailing list