Skip to content

Commit d62d278

Browse files
committed
[mlir][sparse] Misc cleanup of MLIRSparseTensorRuntime
Removing an unnecessary import, and renaming some macros to match the style used elsewhere. Reviewed By: aartbik, bixia Differential Revision: https://reviews.llvm.org/D138158
1 parent 91e7b9e commit d62d278

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

mlir/include/mlir/ExecutionEngine/SparseTensor/COO.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
#ifndef MLIR_EXECUTIONENGINE_SPARSETENSOR_COO_H
1818
#define MLIR_EXECUTIONENGINE_SPARSETENSOR_COO_H
1919

20-
#include "mlir/ExecutionEngine/SparseTensor/PermutationRef.h"
21-
2220
#include <algorithm>
2321
#include <cassert>
2422
#include <cinttypes>

mlir/include/mlir/ExecutionEngine/SparseTensorRuntime.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,12 @@ MLIR_CRUNNERUTILS_EXPORT void _mlir_ciface_getSparseTensorReaderDimSizes(
244244
MLIR_CRUNNERUTILS_EXPORT void delSparseTensorReader(void *p);
245245

246246
/// Returns the next element for the sparse tensor being read.
247-
#define IMPL_GETNEXT(VNAME, V) \
247+
#define DECL_GETNEXT(VNAME, V) \
248248
MLIR_CRUNNERUTILS_EXPORT void _mlir_ciface_getSparseTensorReaderNext##VNAME( \
249249
void *p, StridedMemRefType<index_type, 1> *iref, \
250250
StridedMemRefType<V, 0> *vref);
251-
MLIR_SPARSETENSOR_FOREVERY_V(IMPL_GETNEXT)
252-
#undef IMPL_GETNEXT
251+
MLIR_SPARSETENSOR_FOREVERY_V(DECL_GETNEXT)
252+
#undef DECL_GETNEXT
253253

254254
using SparseTensorWriter = std::ostream;
255255

@@ -269,12 +269,12 @@ MLIR_CRUNNERUTILS_EXPORT void _mlir_ciface_outSparseTensorWriterMetaData(
269269
StridedMemRefType<index_type, 1> *dref);
270270

271271
/// Outputs an element for the sparse tensor.
272-
#define IMPL_OUTNEXT(VNAME, V) \
272+
#define DECL_OUTNEXT(VNAME, V) \
273273
MLIR_CRUNNERUTILS_EXPORT void _mlir_ciface_outSparseTensorWriterNext##VNAME( \
274274
void *p, index_type rank, StridedMemRefType<index_type, 1> *iref, \
275275
StridedMemRefType<V, 0> *vref);
276-
MLIR_SPARSETENSOR_FOREVERY_V(IMPL_OUTNEXT)
277-
#undef IMPL_OUTNEXT
276+
MLIR_SPARSETENSOR_FOREVERY_V(DECL_OUTNEXT)
277+
#undef DECL_OUTNEXT
278278

279279
} // extern "C"
280280

0 commit comments

Comments
 (0)