[Mlir-commits] [mlir] a9e354c - [mlir][sparse] complex lowering
Aart Bik
llvmlistbot at llvm.org
Tue May 24 16:06:24 PDT 2022
Author: Aart Bik
Date: 2022-05-24T16:06:16-07:00
New Revision: a9e354c83b9e158c690d83c69ad6f8b5c8d1daa6
URL: https://github.com/llvm/llvm-project/commit/a9e354c83b9e158c690d83c69ad6f8b5c8d1daa6
DIFF: https://github.com/llvm/llvm-project/commit/a9e354c83b9e158c690d83c69ad6f8b5c8d1daa6.diff
LOG: [mlir][sparse] complex lowering
Reviewed By: bixia
Differential Revision: https://reviews.llvm.org/D126335
Added:
Modified:
mlir/lib/Dialect/SparseTensor/Pipelines/CMakeLists.txt
mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/SparseTensor/Pipelines/CMakeLists.txt b/mlir/lib/Dialect/SparseTensor/Pipelines/CMakeLists.txt
index 4b20a31572d9b..d8158a04ec205 100644
--- a/mlir/lib/Dialect/SparseTensor/Pipelines/CMakeLists.txt
+++ b/mlir/lib/Dialect/SparseTensor/Pipelines/CMakeLists.txt
@@ -9,6 +9,7 @@ add_mlir_dialect_library(MLIRSparseTensorPipelines
MLIRAffineToStandard
MLIRBufferizationTransforms
MLIRComplexToLLVM
+ MLIRComplexToLibm
MLIRComplexToStandard
MLIRFuncTransforms
MLIRLinalgTransforms
diff --git a/mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp b/mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp
index 1e817d1a68a49..04898102433b8 100644
--- a/mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp
@@ -50,8 +50,9 @@ void mlir::sparse_tensor::buildSparseCompiler(
pm.addPass(createMemRefToLLVMPass());
pm.addNestedPass<func::FuncOp>(createConvertComplexToStandardPass());
pm.addNestedPass<func::FuncOp>(createConvertMathToLLVMPass());
- pm.addPass(createConvertComplexToLLVMPass());
pm.addPass(createConvertMathToLibmPass());
+ pm.addPass(createConvertComplexToLibmPass());
+ pm.addPass(createConvertComplexToLLVMPass());
pm.addPass(createConvertFuncToLLVMPass());
pm.addPass(createReconcileUnrealizedCastsPass());
}
More information about the Mlir-commits
mailing list