[mlir][sparse] Using x-macros in the function-suffix functions
authorwren romano <2998727+wrengr@users.noreply.github.com>
Tue, 31 May 2022 21:39:34 +0000 (14:39 -0700)
committerwren romano <2998727+wrengr@users.noreply.github.com>
Wed, 1 Jun 2022 00:36:43 +0000 (17:36 -0700)
commit98e142cd4fa4bc2371ea483ba2c82f88f99a5cf3
tree114a0978b9f7713d51b903d25842aea71dd9e06d
parentf46dd19b480496d2ba0a57d12935882e530f2b93
[mlir][sparse] Using x-macros in the function-suffix functions

By defining the `{primary,overhead}TypeFunctionSuffix` functions via the same x-macros used to generate the runtime library's functions themselves, this helps avoid bugs from typos or things getting out of sync.

Reviewed By: bixia

Differential Revision: https://reviews.llvm.org/D126720
mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.cpp