diff options
author | wren romano <2998727+wrengr@users.noreply.github.com> | 2023-05-30 13:31:49 -0700 |
---|---|---|
committer | wren romano <2998727+wrengr@users.noreply.github.com> | 2023-05-30 17:30:55 -0700 |
commit | 7a1077baa01cd66afa193276796ee6679954d4e5 (patch) | |
tree | a76a7d8f834d3a5917ec61d102b522fc1b577c88 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | be9b79fb14ce0776e147860c9fbffc84ea7b39e6 (diff) | |
download | llvm-7a1077baa01cd66afa193276796ee6679954d4e5.zip llvm-7a1077baa01cd66afa193276796ee6679954d4e5.tar.gz llvm-7a1077baa01cd66afa193276796ee6679954d4e5.tar.bz2 |
[mlir][sparse] Improving SparseTensorDimSliceAttr methods
This patch makes the following changes to `SparseTensorDimSliceAttr` methods:
* Mark `isDynamic` constexpr.
* Add new helpers `getStatic` and `getStaticString` to avoid repetition.
* Moved the definitions for `getStatic{Offset,Stride,Size}` and `isCompletelyDynamic` out of the class declaration; because there's no benefit to inlining them.
* Changed `parse` to use `kDynamic` rather than literals.
* Changed `verify` to use the `isDynamic` helper.
Reviewed By: aartbik
Differential Revision: https://reviews.llvm.org/D150919
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions