This change adds automatic wrapper functoins with emit_c_interface
to all methods in the sparse support library that deal with MEMREFs.
The wrappers will take care of passing MEMREFs by value internally
and by pointer externally, thereby avoiding ABI issues across platforms.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/ExecutionEngine/SparseUtils.cpp | ||
---|---|---|
114–116 | Unrelated side question: shouldn't this file be named SparseTensorUtils.cpp? |
mlir/lib/ExecutionEngine/SparseUtils.cpp | ||
---|---|---|
114–116 | Yeah, I see this as a "sparse support library" but a "sparse tensor support library" would make sense too. Happy to rename (later). We will probably do some other cleanup too, such as adding a header. |
(naming convention: camelCase)