[all-commits] [llvm/llvm-project] bcfa7b: [mlir][CAPI] Add CAPI bindings for the sparse_tens...
Stella Laurenzo via All-commits
all-commits at lists.llvm.org
Mon May 10 09:55:41 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bcfa7baec8bbf45b98bcde60305efa23df7399e6
https://github.com/llvm/llvm-project/commit/bcfa7baec8bbf45b98bcde60305efa23df7399e6
Author: Stella Laurenzo <stellaraccident at gmail.com>
Date: 2021-05-10 (Mon, 10 May 2021)
Changed paths:
A mlir/include/mlir-c/Dialect/SparseTensor.h
M mlir/lib/CAPI/Dialect/CMakeLists.txt
A mlir/lib/CAPI/Dialect/SparseTensor.cpp
M mlir/test/CAPI/CMakeLists.txt
A mlir/test/CAPI/sparse_tensor.c
M mlir/test/CMakeLists.txt
Log Message:
-----------
[mlir][CAPI] Add CAPI bindings for the sparse_tensor dialect.
* Adds dialect registration, hand coded 'encoding' attribute and test.
* An MLIR CAPI tablegen backend for attributes does not exist, and this is a relatively complicated case. I opted to hand code it in a canonical way for now, which will provide a reasonable blueprint for building out the tablegen version in the future.
* Also added a (local) CMake function for declaring new CAPI tests, since it was getting repetitive/buggy.
Differential Revision: https://reviews.llvm.org/D102141
More information about the All-commits
mailing list